From: Haoqun Jiang Date: Wed, 6 Dec 2023 06:23:19 +0000 (+0800) Subject: chore: temporarily revert "feat: print warning messages for unsupported locale" X-Git-Tag: v3.9.0~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5031ad869b839efc02fbae7d4fbbce9ee1384eeb;p=thirdparty%2Fvuejs%2Fcreate-vue.git chore: temporarily revert "feat: print warning messages for unsupported locale" 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. --- diff --git a/utils/getLanguage.ts b/utils/getLanguage.ts index 0f13b66e..4f7ec42a 100644 --- a/utils/getLanguage.ts +++ b/utils/getLanguage.ts @@ -66,12 +66,6 @@ export default function getLanguage() { 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'))