You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
All the applications are running on instances (from R studio to the voila based app). meaning that at the moment they all fallback in english as it's the instance default language.
We worked to ensure that the rest of the website is translated in both Spanish and French and the procedure would be quite easy if one would like to add an extra language: add a file with the language iso code and copy and translate all the keys from en.json (https://github.com/openforis/sepal/tree/master/modules/gui/frontend/src/locale).
Problem being that this translation mechanism is not transmitted to the instances forcing the applications to fallback to english. As it's a web server Shiny is the only one that can jump from one language to another by reserving the app after clicking on a button.
For Rstudio, JupyterLab and Jupyter Notebook, the LANG (currently defaulting to en_US.UTF-8) need to be changed (the languages are all already internally supported). In the app based on the sepal_ui framework the Translator object can listen to any env variable to guess the language to use.
Would it be possible to align the LANG env variable to the one used in SEPAL when we open a new instance?
If not would it be possible to automatically create a custom variable that we can listen to when a new instance is opened?
If you have any other idea to translate the tools available in the app dashboard please add a comment
The text was updated successfully, but these errors were encountered:
multiple issues are opened on sepal_ui to improve language support (subvariety of langs, multiple key files...)
I tried to get the language stored in LocalStorage but as JS is asynchronous I cannot get it when using a voila based App (davidbrochart/ipyurl#2 (comment))
We ended up creating a config file for sepal_ui based applications (openforis/sepal_ui#413). I don't know why we didn't think about that earlier and it works quite well. now it's just a matter of upgrading applications venvs.
All the applications are running on instances (from R studio to the voila based app). meaning that at the moment they all fallback in english as it's the instance default language.
We worked to ensure that the rest of the website is translated in both Spanish and French and the procedure would be quite easy if one would like to add an extra language: add a file with the language iso code and copy and translate all the keys from en.json (https://github.com/openforis/sepal/tree/master/modules/gui/frontend/src/locale).
Problem being that this translation mechanism is not transmitted to the instances forcing the applications to fallback to english. As it's a web server Shiny is the only one that can jump from one language to another by reserving the app after clicking on a button.
For Rstudio, JupyterLab and Jupyter Notebook, the
LANG
(currently defaulting toen_US.UTF-8
) need to be changed (the languages are all already internally supported). In the app based on thesepal_ui
framework theTranslator
object can listen to any env variable to guess the language to use.Would it be possible to align the LANG env variable to the one used in SEPAL when we open a new instance?
If not would it be possible to automatically create a custom variable that we can listen to when a new instance is opened?
If you have any other idea to translate the tools available in the app dashboard please add a comment
The text was updated successfully, but these errors were encountered: