Skip to content

Commit

Permalink
fix: add dist
Browse files Browse the repository at this point in the history
  • Loading branch information
mastermunj committed Nov 10, 2022
1 parent 9e3d5a8 commit ca7e4c9
Show file tree
Hide file tree
Showing 3 changed files with 69 additions and 0 deletions.
3 changes: 3 additions & 0 deletions dist/ToWords.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.ToWords = exports.DefaultToWordsOptions = exports.DefaultConverterOptions = void 0;
const en_AE_1 = __importDefault(require("./locales/en-AE"));
const en_BD_1 = __importDefault(require("./locales/en-BD"));
const en_GH_1 = __importDefault(require("./locales/en-GH"));
const en_IN_1 = __importDefault(require("./locales/en-IN"));
Expand Down Expand Up @@ -38,6 +39,8 @@ class ToWords {
getLocaleClass() {
/* eslint-disable @typescript-eslint/no-var-requires */
switch (this.options.localeCode) {
case 'en-AE':
return en_AE_1.default;
case 'en-BD':
return en_BD_1.default;
case 'en-GH':
Expand Down
4 changes: 4 additions & 0 deletions dist/locales/en-AE.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import { LocaleConfig, LocaleInterface } from '../types';
export default class Locale implements LocaleInterface {
config: LocaleConfig;
}
62 changes: 62 additions & 0 deletions dist/locales/en-AE.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
class Locale {
constructor() {
this.config = {
currency: {
name: 'Dirham',
plural: 'Dirhams',
symbol: '',
fractionalUnit: {
name: 'Fil',
plural: 'Fils',
symbol: '',
},
},
texts: {
and: 'And',
minus: 'Minus',
only: 'Only',
point: 'Point',
},
numberWordsMapping: [
{ number: 1000000000000000, value: 'Quadrillion' },
{ number: 1000000000000, value: 'Trillion' },
{ number: 1000000000, value: 'Billion' },
{ number: 1000000, value: 'Million' },
{ number: 1000, value: 'Thousand' },
{ number: 100, value: 'Hundred' },
{ number: 90, value: 'Ninety' },
{ number: 80, value: 'Eighty' },
{ number: 70, value: 'Seventy' },
{ number: 60, value: 'Sixty' },
{ number: 50, value: 'Fifty' },
{ number: 40, value: 'Forty' },
{ number: 30, value: 'Thirty' },
{ number: 20, value: 'Twenty' },
{ number: 19, value: 'Nineteen' },
{ number: 18, value: 'Eighteen' },
{ number: 17, value: 'Seventeen' },
{ number: 16, value: 'Sixteen' },
{ number: 15, value: 'Fifteen' },
{ number: 14, value: 'Fourteen' },
{ number: 13, value: 'Thirteen' },
{ number: 12, value: 'Twelve' },
{ number: 11, value: 'Eleven' },
{ number: 10, value: 'Ten' },
{ number: 9, value: 'Nine' },
{ number: 8, value: 'Eight' },
{ number: 7, value: 'Seven' },
{ number: 6, value: 'Six' },
{ number: 5, value: 'Five' },
{ number: 4, value: 'Four' },
{ number: 3, value: 'Three' },
{ number: 2, value: 'Two' },
{ number: 1, value: 'One' },
{ number: 0, value: 'Zero' },
],
exactWordsMapping: [{ number: 100, value: 'One Hundred' }],
};
}
}
exports.default = Locale;

0 comments on commit ca7e4c9

Please sign in to comment.