Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions js/__tests__/languagebox.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -171,12 +171,12 @@ describe("LanguageBox Class", () => {
expect(hideSpy).toHaveBeenCalled();
});

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

languageBox.zhCN_onclick();

expect(languageBox._language).toBe("zhCN");
expect(languageBox._language).toBe("zh_CN");
expect(hideSpy).toHaveBeenCalled();
});

Expand Down
6 changes: 3 additions & 3 deletions js/languagebox.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ class LanguageBox {
* @returns {void}
*/
zhCN_onclick() {
this._language = "zhCN";
this._language = "zh_CN";
this.hide();
}

Expand Down Expand Up @@ -218,7 +218,7 @@ class LanguageBox {
ko: "언어 기본 설정을 변경하려면 브라우저를 새로 고치십시오.",
es: "Actualice su navegador para cambiar su preferencia de idioma.",
pt: "Atualize seu navegador para alterar sua preferência de idioma.",
zhCN: "刷新浏览器以更改您的语言偏好",
zh_CN: "刷新浏览器以更改您的语言偏好",
th: "รีเฟรชเบราเซอร์เพื่อเปลี่ยนการตั้งค่าภาษาของคุณ",
hi: "अपनी भाषा की वरीयता बदलने के लिए अपना ब्राउज़र ताज़ा करें",
te: "మీ భాష ప్రాధాన్యతను మార్చడానికి మీ బ్రౌజర్‌ని రిఫ్రెష్ చేయండి.",
Expand Down Expand Up @@ -264,4 +264,4 @@ class LanguageBox {
}
if (typeof module !== "undefined" && module.exports) {
module.exports = LanguageBox;
}
}
12 changes: 6 additions & 6 deletions locales/ayc.json
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@
"store in box": "tawa k’uchupi waqaychay",
"box1": "caja1",
"box2": "caja2",
"store in": "imapi waqaychanki\" \"maypi waqaychanki",
"store in": "imapi waqaychanki maypi waqaychanki",
"name": "suti",
"value": "tupu",
"Forever loop detected inside a note value block. Unexpected things may happen.": "Forever loop detected inside a note value block. Unexpected things may happen.",
Expand Down Expand Up @@ -579,9 +579,9 @@
"value1": "chanin",
"Block does not support incrementing.": "Block does not support incrementing.",
"The Add-1-to block adds one to the value stored in a box.": "Yapay-1 t’aqa hukta tawa k’uchu wayqaychasqaman yapan",
"add 1 to": "1 yapay\" \"hukta yapay",
"add 1 to": "1 yapay hukta yapay",
"The Subtract-1-from block subtracts one from the value stored in a box.": "El bloque restar-1-de resta uno al valor almacenado en un cuadro.",
"subtract 1 from": "1 qichuy\" \"hukta qichuy",
"subtract 1 from": "1 qichuy hukta qichuy",
"The Box block returns the value stored in a box.": "El bloque Caja devuelve el valor almacenado en una caja .",
"The Store in block will store a value in a box.": "El bloque Guardar en caja se utiliza para almacenar un valor en una caja.",
"name1": "Suti",
Expand Down Expand Up @@ -982,7 +982,7 @@
"The Listen block is used to listen for an event such as a mouse click.": "The Listen block is used to listen for an event such as a mouse click.",
"When the event happens, an action is taken.": "Sichus kanqa ruray, chayqa kuyukachay kanqa",
"on": "on qhantayaña",
"event": "riqsichi\"",
"event": "riqsichi",
"The Broadcast block is used to trigger an event.": "El bloque Emitir se utiliza para desencadenar un evento.",
"broadcast": "lluqsichiy",
"Each Start block is a separate voice.": "Cada bloque de inicio es una voz separada.",
Expand Down Expand Up @@ -1120,7 +1120,7 @@
"The Set heading block sets the heading of the turtle.": "The Set heading block sets the heading of the turtle.",
"The Set XY block moves the mouse to a specific position on the screen.": "The Set XY block moves the mouse to a specific position on the screen.",
"The Set XY block moves the turtle to a specific position on the screen.": "The Set XY block moves the turtle to a specific position on the screen.",
"set xy": "xy nisqata churay\" \"xy k’askachiy",
"set xy": "set xy",
"The Right block turns the mouse to the right.": "El bloque Derecha gira el ratón hacia la derecha.",
"The Right block turns the turtle to the right.": "The Right block turns the turtle to the right.",
"right1": "paña",
Expand Down Expand Up @@ -1228,7 +1228,7 @@
"The Click block triggers an event if a turtle has been clicked.": "The Click block triggers an event if a turtle has been clicked.",
"cursor over": "cursor sobre",
"cursor out": "cursor fuera",
"cursor button down": "el botón presionado\" ",
"cursor button down": "el botón presionado",
"cursor button up": "el botón arriba",
"The Get red block returns the red component of the pixel under the mouse.": "The Get red block returns the red component of the pixel under the mouse.",
"The Get red block returns the red component of the pixel under the turtle.": "The Get red block returns the red component of the pixel under the turtle.",
Expand Down
2 changes: 1 addition & 1 deletion locales/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"My Project": "Mon projet",
"No description provided": "Aucune description fournie",
"Your recording is in progress.": "Votre enregistrement est en cours.",
"File name": "om de fichier\"",
"File name": "om de fichier",
"Project title": "Titre du projet",
"Project author": "Auteur du projet",
"Include MIDI output?": "Inclure une sortie MIDI ?",
Expand Down
Loading