From 5031ad869b839efc02fbae7d4fbbce9ee1384eeb Mon Sep 17 00:00:00 2001 From: Haoqun Jiang Date: Wed, 6 Dec 2023 14:23:19 +0800 Subject: [PATCH] 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. --- utils/getLanguage.ts | 6 ------ 1 file changed, 6 deletions(-) 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')) -- 2.39.5