@particular.cloud/i18n-js
Version:
The i18n javascript and typescript sdk of particular.cloud
13 lines (12 loc) • 894 B
TypeScript
import { Locale, TranslationRecords } from './types';
/**
* fetchTranslationRecord: fetch the application text for specific language from your Particular.Cloud project
* @param locale the locale of the language. If acceptLanguage parameter is provided, locale is used as the default/fallback locale
* @param stringOnly if set to true, every value will be of type string. Arrays will be resolved based on your config settings.
*/
export declare function fetchTranslationRecord(locale: Locale, stringOnly?: boolean): Promise<TranslationRecords>;
/**
* fetchTranslationRecords: fetch all application text records from your Particular.Cloud project
* @param stringOnly if set to true, every value will be of type string. Arrays will be resolved based on your config settings.
*/
export declare function fetchTranslationRecords(stringOnly?: boolean): Promise<TranslationRecords>;