UX: Make moment.js produce Arabic numerals instead of Hindi numerals in the Arabic locale (#11788)
Signed-off-by: OsamaSayegh <asooomaasoooma90@gmail.com>
This commit is contained in:
parent
53ab3dda5d
commit
5f410979e2
|
@ -1,3 +1,11 @@
|
|||
//= depend_on 'client.ar.yml'
|
||||
//= require locales/i18n
|
||||
<%= JsLocaleHelper.output_locale(:ar) %>
|
||||
|
||||
// original moment.js implementation can be found here:
|
||||
// https://github.com/moment/moment/blob/b7ec8e2ec068e03de4f832f28362675bb9e02261/locale/ar.js#L185-L191
|
||||
moment.updateLocale("ar", {
|
||||
postformat(string) {
|
||||
return string;
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue