Translation issue #1023
Closed
xxxnewbiexxx
started this conversation in
General
Replies: 2 comments
-
You don't edit the loader.js.
|
Beta Was this translation helpful? Give feedback.
0 replies
-
Thank you so much Allan for your quick response! I added the code above in the index.html and it worked ;-) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi EmulatorJS support team,
I am trying to use the pt-BR translation, so I edited the loader.js as below:
if (typeof window.EJS_language === "string" && window.EJS_language !== "pt-BR") { try { let path; if ('undefined' != typeof EJS_paths && typeof EJS_paths[window.EJS_language] === 'string') { path = EJS_paths[window.EJS_language]; } else { path = scriptPath+"localization/"+window.EJS_language+".json"; } config.language = window.EJS_language; config.langJson = JSON.parse(await (await fetch(path)).text()); } catch(e) { config.langJson = {}; } }
But the emulator is still in English.
Am I missing something?
Not sure where to add the line to your code to use
EJS_language = 'pt-BR'; //language
Thanks in advance for your usual support!
Beta Was this translation helpful? Give feedback.
All reactions