lokalise-mcp
Version:
The Lokalise MCP Server brings Lokalise's localization power to Claude and AI assistants—manage projects, keys, and translations by chat.
47 lines (46 loc) • 1.74 kB
TypeScript
/**
* Glossary Service
*
* Service layer for interacting with Lokalise Glossary API.
* Handles all API communication and data transformation.
*/
import type { BulkResult, CursorPaginatedResult, GlossaryTerm } from "@lokalise/node-api";
import type { CreateGlossaryToolArgsType, DeleteGlossaryToolArgsType, GetGlossaryToolArgsType, ListGlossaryToolArgsType, TermsDeleted, UpdateGlossaryToolArgsType } from "./glossary.types.js";
/**
* Glossary service for Lokalise API operations
*/
export declare const glossaryService: {
/**
* List glossary terms for a project with cursor pagination
*/
list(args: ListGlossaryToolArgsType): Promise<CursorPaginatedResult<GlossaryTerm>>;
/**
* Get a specific glossary term
*/
get(args: GetGlossaryToolArgsType): Promise<GlossaryTerm>;
/**
* Create glossary terms (bulk operation)
*/
create(args: CreateGlossaryToolArgsType): Promise<BulkResult<GlossaryTerm>>;
/**
* Update glossary terms (bulk operation)
*/
update(args: UpdateGlossaryToolArgsType): Promise<BulkResult<GlossaryTerm>>;
/**
* Delete glossary terms (bulk operation)
*/
delete(args: DeleteGlossaryToolArgsType): Promise<TermsDeleted>;
};
/**
* Glossary Service Implementation
*
* This service implements all glossary term operations using the Lokalise API.
* Glossary terms help maintain consistency by defining key terminology with
* specific translation guidelines.
*
* Key features:
* - Cursor-based pagination for efficient large dataset handling
* - Bulk operations for create, update, and delete
* - Support for term translations in multiple languages
* - Configurable term properties (case sensitivity, translatable, forbidden)
*/