UNPKG

@formatjs/cli-lib

Version:
24 lines (23 loc) 659 B
import type { Comparator } from 'json-stable-stringify'; import { CompileFn, FormatFn } from './default'; export interface SmartlingDirectives { translate_paths: [ { path: string; key: string; instruction: string; } ]; variants_enabled: boolean; string_format: string; [k: string]: any; } export type SmartlingJson = { smartling: SmartlingDirectives; } & Record<string, { message: string; description?: string; }>; export declare const format: FormatFn<SmartlingJson>; export declare const compareMessages: Comparator; export declare const compile: CompileFn<SmartlingJson>;