Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

multilingual shiny apps #965

Open
FrissAnalytics opened this issue Sep 23, 2015 · 5 comments
Open

multilingual shiny apps #965

FrissAnalytics opened this issue Sep 23, 2015 · 5 comments

Comments

@FrissAnalytics
Copy link

FrissAnalytics commented Sep 23, 2015

Hi,

we are developing a large shiny app that requires multilingual support. An obvious, but perhaps naive, method would be to create all texts server side, say via a lookup table, and use appropriate render functions. An alternative would be to use a client side js library like I18n. However, adding i18n attributes to already existing shiny functions etc. would be quite some work and extra code, which doesn't seem like the right approach. Furthermore, in ggplot2 labels etc. that approach wouldn't work and probably must be done server side.

Could you comment on what would be a fruitful way to approach this in a shiny context?

kind regards, Herman

ps: I'm aware of a previous item by Yihui i.e. (#547) , but in that post there seemed no definite answer yet.

@jcheng5
Copy link
Member

jcheng5 commented Sep 23, 2015

How are you envisioning the user would specify their language? A language chooser in the corner, perhaps?

@FrissAnalytics
Copy link
Author

something like that indeed. Typically a user will only use the app in one language i.e. we don't need to switch languages once the app runs.

@nuest
Copy link

nuest commented Sep 6, 2016

The language could also be automatically detected based on the browser settings.

Is this item on the agenda for RStudio?

@asmuelle
Copy link

I would love to see I18N support in shiny.

@motin
Copy link

motin commented Sep 2, 2018

The projects I have found around solving this issue:

It seems shiny.i18n is the best bet at the moment. I added an issue requesting support for gettext Appsilon/shiny.i18n#15 as per the link in @yihui's comment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants