]> git.ipfire.org Git - thirdparty/vuejs/create-vue.git/commitdiff
chore: temporarily revert "feat: print warning messages for unsupported locale"
authorHaoqun Jiang <haoqunjiang@gmail.com>
Wed, 6 Dec 2023 06:23:19 +0000 (14:23 +0800)
committerHaoqun Jiang <haoqunjiang@gmail.com>
Wed, 6 Dec 2023 07:59:00 +0000 (15:59 +0800)
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.

utils/getLanguage.ts

index 0f13b66ed40eb8093c7b70cb682cedf70abde831..4f7ec42a60f1e6e5866f54e246db285d7eb9d2c8 100644 (file)
@@ -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'))