@quantlab/handsontable
Version:
Spreadsheet-like data grid editor that provides copy/paste functionality compatible with Excel/Google Docs
51 lines (48 loc) • 1.37 kB
JavaScript
/*!
* numbro.js language configuration
* language : French
* locale: Canada
* author : Léo Renaud-Allaire : https://github.com/renaudleo
*/
(function () {
'use strict';
var language = {
langLocaleCode: 'fr-CA',
cultureCode: 'fr-CA',
delimiters: {
thousands: ' ',
decimal: ','
},
abbreviations: {
thousand: 'k',
million: 'M',
billion: 'G',
trillion: 'T'
},
ordinal : function (number) {
return number === 1 ? 'er' : 'ème';
},
currency: {
symbol: '$',
position: 'postfix',
spaceSeparated : true
},
defaults: {
currencyFormat: ',4 a'
},
formats: {
fourDigits: '4 a',
fullWithTwoDecimals: '$ ,0.00',
fullWithTwoDecimalsNoCurrency: ',0.00',
fullWithNoDecimals: '$ ,0'
}
};
// CommonJS
if (typeof module !== 'undefined' && module.exports) {
module.exports = language;
}
// Browser
if (typeof window !== 'undefined' && window.numbro && window.numbro.culture) {
window.numbro.culture(language.cultureCode, language);
}
}.call(typeof window === 'undefined' ? this : window));