1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- /*!
- * numbro.js language configuration
- * language : English
- * locale: United Kingdom of Great Britain and Northern Ireland
- * author : Dan Ristic : https://github.com/dristic
- */
- (function () {
- 'use strict';
- var language = {
- langLocaleCode: 'en-GB',
- cultureCode: 'en-GB',
- delimiters: {
- thousands: ',',
- decimal: '.'
- },
- abbreviations: {
- thousand: 'k',
- million: 'm',
- billion: 'b',
- trillion: 't'
- },
- ordinal: function (number) {
- var b = number % 10;
- return (~~ (number % 100 / 10) === 1) ? 'th' :
- (b === 1) ? 'st' :
- (b === 2) ? 'nd' :
- (b === 3) ? 'rd' : 'th';
- },
- currency: {
- symbol: '£',
- position: 'prefix'
- },
- 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));
|