UNPKG

445 BTypeScriptView Raw
1/**
2 * Normalizes language code into the format used internally.
3 *
4 * @param locales - All the available locales.
5 * @param rawCode - The original code as supplied by the user.
6 *
7 * @returns Language code in the format language-COUNTRY or language, eventually
8 * fallbacks to en.
9 */
10export declare function normalizeLanguageCode(locales: Record<string, undefined | object>, rawCode: string): string;
11//# sourceMappingURL=locale-utils.d.ts.map
\No newline at end of file