From c08aca510516fd0abd4bc47290d4f89d27a84229 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D8=AD=D9=85=DB=8C=D8=AF=20=D9=85=D9=84=DA=A9=20=D9=85?= =?UTF-8?q?=D8=AD=D9=85=D8=AF=DB=8C?= Date: Tue, 7 Jun 2022 15:29:26 +0430 Subject: [PATCH] Create fa.js --- locales/fa.js | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 locales/fa.js diff --git a/locales/fa.js b/locales/fa.js new file mode 100644 index 00000000..296a8690 --- /dev/null +++ b/locales/fa.js @@ -0,0 +1,32 @@ +// numeral.js locale configuration +// locale : farsi Iran (fa) +// author : Hamid Malek Mohammadi : https://github.com/hmmftg + +(function (global, factory) { + if (typeof define === 'function' && define.amd) { + define(['../numeral'], factory); + } else if (typeof module === 'object' && module.exports) { + factory(require('../numeral')); + } else { + factory(global.numeral); + } +}(this, function (numeral) { + numeral.register('locale', 'fa-ir', { + delimiters: { + thousands: '.', + decimal: '.' + }, + abbreviations: { + thousand: 'هزار', + million: 'میلیون', + billion: 'میلیارد', + trillion: 'تریلیارد' + }, + ordinal: function (number) { + return '' + }, + currency: { + symbol: '﷼' + } + }); +}));