From ba2630c615c022da9c77ee8ce8dec6674da8a6fb Mon Sep 17 00:00:00 2001 From: syuilo Date: Sun, 5 Mar 2023 10:59:44 +0900 Subject: [PATCH] tweak of 8e5e6f90cb --- packages/backend/src/server/web/boot.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/backend/src/server/web/boot.js b/packages/backend/src/server/web/boot.js index 887a4c8e01..fd7f54da54 100644 --- a/packages/backend/src/server/web/boot.js +++ b/packages/backend/src/server/web/boot.js @@ -63,7 +63,10 @@ } // for https://github.com/misskey-dev/misskey/issues/10202 - if (lang == null || lang.toString == null || lang.toString() === 'null') lang = 'en-US'; + if (lang == null || lang.toString == null || lang.toString() === 'null') { + console.error('invalid lang value detected!!!', typeof lang, lang); + lang = 'en-US'; + } const localRes = await window.fetch(`/assets/locales/${lang}.${v}.json`); if (localRes.status === 200) {