generaltranslation
Version:
A language toolkit for AI developers
6 lines (5 loc) • 454 B
TypeScript
import { LocaleProperties } from './getLocaleProperties';
export type FullCustomMapping = Record<string, LocaleProperties>;
export type CustomMapping = Record<string, string | Partial<LocaleProperties>>;
export declare const getCustomProperty: (customMapping: CustomMapping, locale: string, property: keyof LocaleProperties) => string | undefined;
export declare const shouldUseCanonicalLocale: (locale: string, customMapping: CustomMapping) => boolean;