Skip to content

Commit

Permalink
hotfix: update default spanish-language demo prompt
Browse files Browse the repository at this point in the history
  • Loading branch information
dgkf committed Feb 20, 2024
1 parent 4eb939a commit 4f99013
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -304,16 +304,6 @@

const params = new URLSearchParams(window.location.search);
const locale = params.get('locale');

var prompt = "";
switch(locale) {
case "es":
prompt = "suma <- 0\npara (i en 1:10) {\n si (i %% 2 == 0) {\n suma <- suma + i\n }\n}";
break;
case "en":
prompt = "sum <- 0\nfor (i in 1:10) {\n if (i %% 2 == 0) {\n sum <- sum + i\n }\n}";
break;
};

window.r = await init().then(() => {
const args = r.wasm_cli_args(false, locale);
Expand Down Expand Up @@ -370,7 +360,7 @@
si (i %% 3 == 0) {
continuar
} sino si (i %% 5 == 0) {
romper
interrumpir
}
suma <- suma + i
}
Expand Down

0 comments on commit 4f99013

Please sign in to comment.