wuchale
Version:
Protobuf-like i18n from plain code
6 lines (5 loc) • 329 B
TypeScript
export type CompositePayload = number | string | Composite;
export type Composite = [number, ...CompositePayload[]];
export type Mixed = (string | number)[];
export type CompiledElement = string | Mixed | CompositePayload[];
export declare function compileTranslation(msgStr: string, fallback: CompiledElement): CompiledElement;