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
pull/3100/merge
Josh Barnes 8 years ago committed by Grant Nestor
parent 7b8759fafb
commit cbf7db7449

@ -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() {

Loading…
Cancel
Save