From f7ca4a2eb18d9e19e728e2acc8e927a89c0e6b92 Mon Sep 17 00:00:00 2001 From: Josh Barnes Date: Fri, 17 Nov 2017 15:27:22 +0000 Subject: [PATCH] Compare non-specific language code for arabic numerals Otherwise, country-specific locales like `ar-sa` (Arabic, Saudi Arabia), end up using the default numerals --- notebook/static/bidi/bidi.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/notebook/static/bidi/bidi.js b/notebook/static/bidi/bidi.js index 9ace652e0a..4998dc80d4 100644 --- a/notebook/static/bidi/bidi.js +++ b/notebook/static/bidi/bidi.js @@ -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() {