This reverts commit
83088cb44b5b074d8113c3a55b43cda5f6901965.
I'm afraid we are not ready to review the potential upcoming PRs for new
locales yet. Until we have more capacity, I think it's better to keep
a low profile and not to encourage people to submit new locales.
const languageFilePath = path.resolve(localesRoot, `${locale}.json`)
const doesLanguageExist = fs.existsSync(languageFilePath)
- if (!doesLanguageExist) {
- console.warn(
- `\x1B[33mThe locale langage "${locale}" is not supported, fallback to "en-US".\n\x1B[39m`
- )
- }
-
const lang: Language = doesLanguageExist
? require(languageFilePath)
: require(path.resolve(localesRoot, 'en-US.json'))