Compare non-specific language code for arabic numerals (#3055)

Otherwise, country-specific locales like `ar-sa` (Arabic, Saudi Arabia), end up using the default numerals
This commit is contained in:
Josh Barnes 2017-12-01 05:39:42 +00:00 committed by Grant Nestor
parent 7b8759fafb
commit cbf7db7449

View File

@ -19,7 +19,7 @@ define(['bidi/numericshaping'], function(numericshaping) {
console.log('Loaded moment locale', moment.locale(_uiLang()));
});
shaperType = _uiLang() == 'ar' ? 'national' : 'defaultNumeral';
shaperType = _uiLang().split('-')[0] == 'ar' ? 'national' : 'defaultNumeral';
};
var _isMirroringEnabled = function() {