Skip to content

Commit 6d09987

Browse files
authored
Added Chinese Translation Support (.po) (#4773)
* Added Chinese Po file * changed the - to _ for chinese language * changed the - to _ for chinese language * changed the - to _ for chinese language * Add files via upload * Added Trans Comments for Machine Translation
1 parent e72aacb commit 6d09987

File tree

4 files changed

+15722
-14634
lines changed

4 files changed

+15722
-14634
lines changed

js/__tests__/languagebox.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,12 +171,12 @@ describe("LanguageBox Class", () => {
171171
expect(hideSpy).toHaveBeenCalled();
172172
});
173173

174-
it("should set language to zhCN and call hide when zhCN_onclick is called", () => {
174+
it("should set language to zh_CN and call hide when zhCN_onclick is called", () => {
175175
const hideSpy = jest.spyOn(languageBox, "hide").mockImplementation();
176176

177177
languageBox.zhCN_onclick();
178178

179-
expect(languageBox._language).toBe("zhCN");
179+
expect(languageBox._language).toBe("zh_CN");
180180
expect(hideSpy).toHaveBeenCalled();
181181
});
182182

js/languagebox.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ class LanguageBox {
9393
* @returns {void}
9494
*/
9595
zhCN_onclick() {
96-
this._language = "zhCN";
96+
this._language = "zh_CN";
9797
this.hide();
9898
}
9999

@@ -218,7 +218,7 @@ class LanguageBox {
218218
ko: "언어 기본 설정을 변경하려면 브라우저를 새로 고치십시오.",
219219
es: "Actualice su navegador para cambiar su preferencia de idioma.",
220220
pt: "Atualize seu navegador para alterar sua preferência de idioma.",
221-
zhCN: "刷新浏览器以更改您的语言偏好",
221+
zh_CN: "刷新浏览器以更改您的语言偏好",
222222
th: "รีเฟรชเบราเซอร์เพื่อเปลี่ยนการตั้งค่าภาษาของคุณ",
223223
hi: "अपनी भाषा की वरीयता बदलने के लिए अपना ब्राउज़र ताज़ा करें",
224224
te: "మీ భాష ప్రాధాన్యతను మార్చడానికి మీ బ్రౌజర్‌ని రిఫ్రెష్ చేయండి.",

0 commit comments

Comments
 (0)