From b8ba980a20ecff61f8dffc362da5d96a4b3f23c9 Mon Sep 17 00:00:00 2001 From: BioTheWolff <47079795+BioTheWolff@users.noreply.github.com> Date: Sun, 15 Dec 2024 17:20:04 +0100 Subject: [PATCH] fix: Chinese (Simplified) translation showing up twice (#2006) ### Problem description As described in issue #1841, there was a duplicate on the `Chinese (Simplified)` translation. After closer inspection, this came from an i18n file (Script loader, specifically) having a bad ISO code (`zh_CN` instead of the expected `zh-CN`). This also caused a big impact on end users, as loading the latter (`zh_CN`) would cause the whole UI to be displayed in English (the fallback language), and only the script loader being translated into Chinese. ### Implementation description Fixed the i18n code in the Script loader file. ### Additional things Closes issue #1841 Signed-off-by: BioTheWolff <47079795+BioTheWolff@users.noreply.github.com> --- plugins/script_loader/romfs/lang/zh_CN.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/script_loader/romfs/lang/zh_CN.json b/plugins/script_loader/romfs/lang/zh_CN.json index 2ca04d53f..080a0ed55 100644 --- a/plugins/script_loader/romfs/lang/zh_CN.json +++ b/plugins/script_loader/romfs/lang/zh_CN.json @@ -1,5 +1,5 @@ { - "code": "zh_CN", + "code": "zh-CN", "country": "China", "language": "Chinese (Simplified)", "translations": {