-
Notifications
You must be signed in to change notification settings - Fork 1
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
Add i18n support #4
Comments
The detection of the users location can be done using appengine headers like in this example: http://mylocationtest.appspot.com/ But also the preferred language from the browser (ServletRequest.getLocale) should be taken into account. For logged in users, the selected language should overwrite everything else. |
Maybe it is a good idea to place a Location / Language instance in the session scope |
The solution for angular is: https://github.com/angular-translate/angular-translate |
Some decisions, after some reading:For authenticated users we need a setting where we set the language/country settings for each user. We can init it with the browser locale when the user logs in the first time. That locale will be stored as property of the user and will affect the language of emails and used as initial locale when the user logs in again. For not authenticated users we detect the browser locale and use it for i18n. |
Add it in the angular app, but what about the backend?
The text was updated successfully, but these errors were encountered: