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

Multi Language Support #85

Open
tomdreamevil opened this issue Apr 10, 2022 · 0 comments
Open

Multi Language Support #85

tomdreamevil opened this issue Apr 10, 2022 · 0 comments

Comments

@tomdreamevil
Copy link

Would be good to have a localization.json file or similar that can be dynamically referenced in the app and referenced on a per language selection basis ie:

///Json file:

[
   {
      "en-gb" : {
         "welcomeMessage": "Welcome"
      },
      "de-DE": {
         "welcomeMessage": "Willkommen"
      }
   }
]

///Used in the components/pages as:

import strings from './localization.json'

<h1>{strings.welcomeMessage}</h1>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant