Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions locales/fa.js
Original file line number Diff line number Diff line change
@@ -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: '﷼'
}
});
}));