UNPKG

@crowdin/crowdin-apps-functions

Version:

Utility library to easily and quickly develop Crowdin App

28 lines (27 loc) 722 B
interface SerializationConfig { placeholders: 'xlf' | 'mustache'; plurals?: 'icu' | 'concat'; } declare type StringText = { [key: string]: string; } | string; interface InputString { translations?: { [languageId: string]: { text: StringText; }; }; text?: StringText; hasPlurals?: boolean; identifier?: string; } /** * Function to convert source or translation according to specified config * * @param config conversion settings * @param string string * @param languageId language id * @returns converted string */ export declare function convertString(config: SerializationConfig, string: InputString, languageId?: string): string | undefined; export {};