Skip to content

Commit c04fcc8

Browse files
yangyuanjieyangyuanjie
authored andcommitted
Fix bug when determining locale
1 parent be58822 commit c04fcc8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

client/galaxy/scripts/utils/localization.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ if( localeStrings.hasOwnProperty( '__root' ) ){
1313
typeof navigator === 'undefined' ? '__root'
1414
: ( navigator.language || navigator.userLanguage || '__root' ).toLowerCase()
1515
);
16-
localeStrings = localeStrings[ '__' + locale ] || localeStrings.__root;
16+
localeStrings = localeStrings[ '__' + locale ] || localeStrings[ '__' + locale.split('-')[0] ] ||localeStrings.__root;
1717

1818
// } else {
1919
// console.debug( 'i18n+requirejs localization for ' + locale + ' loaded' );

0 commit comments

Comments
 (0)