Skip to content

Commit

Permalink
saving autodetected language in localstorage
Browse files Browse the repository at this point in the history
  • Loading branch information
wwwredfish committed Mar 8, 2014
1 parent b3d8889 commit f60cc00
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions app/scripts/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,9 @@ define([

App.settings = configs.getConfigs();

i18n.init({ lng: App.settings.appLang });
if (App.settings.appLang === '') {
i18n.init({debug: true});
} else {
i18n.init({lng: App.settings.appLang, debug: true});
configs.get('appLang').save({ 'value': i18n.lng() });
}
});

Expand Down

0 comments on commit f60cc00

Please sign in to comment.