| 123456789101112131415161718192021222324252627282930313233343536 |
- // numeral.js locale configuration
- // locale : english united kingdom (uk)
- // author : Dan Ristic : https://github.com/dristic
- (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', '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: '£'
- }
- });
- }));
|