UNPKG

xliff-generator

Version:

A simple module to create xliff files

33 lines (32 loc) 1.33 kB
export declare class TranslationContainer { private productName; private sourceLanguageKey; private translationUnits; private supportedLanguageKeys; private original; private datatype; constructor(original: string, productName: string, datatype: string, sourceLanguageKey: string, supportedLanguageKeys: string[]); getSourceLanguageKey(): string; getProductName(): string; getOriginal(): string; getDatatype(): string; getSupportedLanguageKeys(): Set<string>; isLanguageKeySupported(languageKey: string): boolean; /** * Add a translation value * @param translationId {string} * @param languageKey {string} * @param value {string} */ addTranslation(translationId: string, languageKey: string, value: string): void; getTranslationIds(): string[]; /** * get the translations of all language keys by translation id. * @param translationId {string} id to identify the translations * @returns a map of all tranlations. * The key of the map is the language key und the corresponding value is the translation value * @throws InvalidArgumentError will be thrown if the submitted translationId does not exist */ getTranslationsById(translationId: string): Map<string, string>; private getTranslationValuesById; }