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

Add i18n support #4

Open
mpoehler opened this issue Sep 21, 2014 · 4 comments
Open

Add i18n support #4

mpoehler opened this issue Sep 21, 2014 · 4 comments

Comments

@mpoehler
Copy link
Owner

Add it in the angular app, but what about the backend?

@mpoehler
Copy link
Owner Author

mpoehler commented Oct 7, 2014

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.

@mpoehler
Copy link
Owner Author

mpoehler commented Oct 7, 2014

Maybe it is a good idea to place a Location / Language instance in the session scope

@mpoehler
Copy link
Owner Author

The solution for angular is: https://github.com/angular-translate/angular-translate

@mpoehler
Copy link
Owner Author

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.

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

1 participant