Skip to content

Commit cbf7db7

Browse files
jcb91gnestor
authored andcommitted
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
1 parent 7b8759f commit cbf7db7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

notebook/static/bidi/bidi.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ define(['bidi/numericshaping'], function(numericshaping) {
1919
console.log('Loaded moment locale', moment.locale(_uiLang()));
2020
});
2121

22-
shaperType = _uiLang() == 'ar' ? 'national' : 'defaultNumeral';
22+
shaperType = _uiLang().split('-')[0] == 'ar' ? 'national' : 'defaultNumeral';
2323
};
2424

2525
var _isMirroringEnabled = function() {

0 commit comments

Comments
 (0)