travis-ci/travis-web — pull request #78 by randym (2012-12-11 04:36:30+00:00)
Title: Updates and Fixes for Profile and UI to properly handle locale switching

![Screen Shot 2012-12-11 at 1 29 25 PM](https://f.cloud.github.com/assets/870812/5130/6a3f395a-434b-11e2-86a7-a4aa4b715c70.png)

**Updates to I18n behavior**:
Refresh/view reload no longer required. localizations are now 'locale bound' and update instantaneously when the locale is changed.

**Fixes the locale update on startup/login/logout/change from profile**:
The application will start in English. Once the user logs in it will switch to the user's locale, automatically updates when they select another locale, and when they logout, it reverts back to English.
For testing, you can hit this directly via Travis.setLocale('ru') as well.

**Fixes the Profile**:
With this change the locale selection automatically updates localized strings in the app and automatically updates the user's locale via the api.

While I was in there, I noticed we do not connect the flash outlet on the profile page, so this fixes that as well.

https://github.com/travis-ci/travis-web/issues/60
https://github.com/travis-ci/travis-web/issues/34

One thing bothering me is that PUT for the user with "pt-BR" or "nb" returns a 'Your profile could not be updated.' message so a bit of info from the logs (sorry, no access) would be a great help.