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 support SPA #176

Open
meryllblanchet opened this issue Oct 11, 2021 · 4 comments
Open

Multilingual support SPA #176

meryllblanchet opened this issue Oct 11, 2021 · 4 comments
Labels
enhancement New feature or request

Comments

@meryllblanchet
Copy link

A recurring ask from our users is whether do we support internationalization for the front-end or not.
React-Spectrum does support it, and we should either document how to enable this for a custom SPA, or showcase the multilingual support in our React-Spectrum 3 generator.

The raw HTML generator should be excluded from this enhancement.

@meryllblanchet meryllblanchet added the enhancement New feature or request label Oct 11, 2021
@purplecabbage
Copy link
Member

purplecabbage commented Oct 11, 2021

I do not see this as an issue for the tooling/generator/framework, this is an easy to solve user-land issue.

  1. put all your strings in separate files, 1 per supported language, and export each string via a well defined key eg. LocalizedString.WelcomeMessage
  2. load the language file according to the user's locale

@meryllblanchet
Copy link
Author

Everything we bring in generators are easy to solve user-land issue, but the purpose is to show users how to instead of letting them guess.

Now as I mentioned above, this could also fit into a documentation guide, or an open sourced sample app.

@purplecabbage
Copy link
Member

+1 for docs or a guide

@aiojbot
Copy link
Collaborator

aiojbot commented Oct 13, 2021

JIRA issue created: https://jira.corp.adobe.com/browse/ACNA-1376

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants