UNPKG

@owja/i18n

Version:

lightweight internationalization library for javascript

11 lines (10 loc) 445 B
import { ParsedTranslations, Translations } from "./types"; export declare function _maximize(locale: string | Intl.Locale): Intl.Locale; export declare function _parse(translations: Translations, base: string): ParsedTranslations; /** * Tests if a string is a valid language tag * returns the formatted tag * * https://en.wikipedia.org/wiki/IETF_language_tag */ export declare function _validateLanguageTag(tag: string): string;