import { AlwatrServiceResponseSuccessWithMeta } from './service-response.js'; import { StringifyableRecord } from './type-helper.js'; export type LocaleCode = `${Lowercase}-${Uppercase}`; export type L18eContext = AlwatrServiceResponseSuccessWithMeta, { code: LocaleCode; rev: number; }>; export interface LocaleContext extends StringifyableRecord { /** * fa-IR, en-US, ... */ code: LocaleCode; /** * fa, en, ... */ language: Lowercase; /** * ltr, rtl */ direction: 'rtl' | 'ltr'; } /** * Multi language string * * {fa: 'سلام', en: 'hello'} */ export type MultiLangStringObj = Record, string>; //# sourceMappingURL=i18n.d.ts.map