mirror of
https://github.com/jupyter/notebook.git
synced 2025-03-19 13:20:36 +08:00
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:
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…
x
Reference in New Issue
Block a user