@alauda-fe/common
Version:
Alauda frontend team common codes.
21 lines (20 loc) • 600 B
TypeScript
/**
* @packageDocumentation
* @module translate
*/
import { Arrayable } from '../core/public-api';
export type TranslationValue = Arrayable<string | number | boolean | Translation>;
export interface Translation {
[key: string]: TranslationValue;
}
export type Translations = Record<string, Translation>;
export type TranslateKey = string | Translation;
export interface TranslateOptions {
locale?: string;
fallbackLocale?: string;
locales?: string[];
translations?: Translations;
loose?: boolean;
remoteTranslations?: Translations;
remoteUrl?: string | string[];
}