Skip to content

Commit

Permalink
Merge pull request #2213 from xiaojay/dev
Browse files Browse the repository at this point in the history
Fix bug when determining locale
  • Loading branch information
dannon committed Apr 21, 2016
2 parents be58822 + 18dcf10 commit 266a45a
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion client/galaxy/scripts/utils/localization.js
Expand Up @@ -13,7 +13,7 @@ if( localeStrings.hasOwnProperty( '__root' ) ){
typeof navigator === 'undefined' ? '__root'
: ( navigator.language || navigator.userLanguage || '__root' ).toLowerCase()
);
localeStrings = localeStrings[ '__' + locale ] || localeStrings.__root;
localeStrings = localeStrings[ '__' + locale ] || localeStrings[ '__' + locale.split('-')[0] ] ||localeStrings.__root;

// } else {
// console.debug( 'i18n+requirejs localization for ' + locale + ' loaded' );
Expand Down
2 changes: 1 addition & 1 deletion static/maps/utils/localization.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion static/scripts/bundled/libs.bundled.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion static/scripts/bundled/libs.bundled.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion static/scripts/utils/localization.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 266a45a

Please sign in to comment.