123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113 |
- if (!process.env.npm_lifecycle_event) {
- throw Error("You should only run this from npm script contexts");
- }
- exports.DEFAULT_LOCALE = process.env.npm_package_config_default_locale;
- exports.LOCALES_SOURCE_DIRECTORY = process.env.npm_package_config_locales_dir;
- // This locales list is to find any similar locales that we can reuse strings
- // instead of falling back to the default, e.g., use bn-BD strings for bn-IN.
- // https://hg.mozilla.org/mozilla-central/file/tip/browser/locales/l10n.toml
- exports.CENTRAL_LOCALES = [
- "ach",
- "af",
- "an",
- "ar",
- "ast",
- "az",
- "be",
- "bg",
- "bn",
- "br",
- "bs",
- "ca",
- "cak",
- "crh",
- "cs",
- "cy",
- "da",
- "de",
- "dsb",
- "el",
- "en-CA",
- "en-GB",
- "eo",
- "es-AR",
- "es-CL",
- "es-ES",
- "es-MX",
- "et",
- "eu",
- "fa",
- "ff",
- "fi",
- "fr",
- "fy-NL",
- "ga-IE",
- "gd",
- "gl",
- "gn",
- "gu-IN",
- "he",
- "hi-IN",
- "hr",
- "hsb",
- "hu",
- "hy-AM",
- "ia",
- "id",
- "is",
- "it",
- "ja",
- "ja-JP-mac",
- "ka",
- "kab",
- "kk",
- "km",
- "kn",
- "ko",
- "lij",
- "lo",
- "lt",
- "ltg",
- "lv",
- "mk",
- "mr",
- "ms",
- "my",
- "nb-NO",
- "ne-NP",
- "nl",
- "nn-NO",
- "oc",
- "pa-IN",
- "pl",
- "pt-BR",
- "pt-PT",
- "rm",
- "ro",
- "ru",
- "si",
- "sk",
- "sl",
- "son",
- "sq",
- "sr",
- "sv-SE",
- "ta",
- "te",
- "th",
- "tl",
- "tr",
- "trs",
- "uk",
- "ur",
- "uz",
- "vi",
- "wo",
- "xh",
- "zh-CN",
- "zh-TW",
- ];
|