@phensley/cldr-core
Version:
Core library for @phensley/cldr
21 lines (20 loc) • 602 B
TypeScript
export declare type FastTag = (string | number)[];
export declare type FastTagPair = {
type: FastTag;
repl: FastTag;
};
export declare type LanguageAliasMap = {
[x: string]: FastTagPair[];
};
export declare type TerritoryAliasMap = {
[x: string]: string[];
};
/**
* Helper for the language tag parser to fix overlong region fields that may
* or may not be variants.
*/
export declare const replaceRegion: (region: string) => string | undefined;
/**
* Substitute territory subtag aliases, if any.
*/
export declare const substituteRegionAliases: (dst: (string | number)[]) => void;