Comparing version 3.0.3 to 3.1.0
@@ -5,2 +5,9 @@ # Changelog | ||
## [3.1.0](https://github.com/mastermunj/to-words/compare/v3.0.3...v3.1.0) (2022-02-09) | ||
### Features | ||
* **GB:** added tests for GB support ([b9f488f](https://github.com/mastermunj/to-words/commit/b9f488f6fd787666c3f164db834763d76cdbca09)) | ||
### [3.0.3](https://github.com/mastermunj/to-words/compare/v3.0.2...v3.0.3) (2022-01-06) | ||
@@ -7,0 +14,0 @@ |
@@ -14,2 +14,3 @@ "use strict"; | ||
const en_US_1 = __importDefault(require("./locales/en-US")); | ||
const en_GB_1 = __importDefault(require("./locales/en-GB")); | ||
const fa_IR_1 = __importDefault(require("./locales/fa-IR")); | ||
@@ -54,2 +55,4 @@ const fr_FR_1 = __importDefault(require("./locales/fr-FR")); | ||
return en_US_1.default; | ||
case 'en-GB': | ||
return en_GB_1.default; | ||
case 'fa-IR': | ||
@@ -56,0 +59,0 @@ return fa_IR_1.default; |
{ | ||
"name": "to-words", | ||
"version": "3.0.3", | ||
"version": "3.1.0", | ||
"description": "Converts numbers (including decimal points) into words & currency.", | ||
@@ -44,27 +44,27 @@ "keywords": [ | ||
"devDependencies": { | ||
"@commitlint/cli": "^16.0.1", | ||
"@commitlint/cli": "^16.1.0", | ||
"@commitlint/config-conventional": "^16.0.0", | ||
"@types/jest": "^27.4.0", | ||
"@types/lodash": "^4.14.178", | ||
"@types/node": "^17.0.8", | ||
"@types/node": "^17.0.16", | ||
"@types/source-map-support": "^0.5.4", | ||
"@typescript-eslint/eslint-plugin": "^5.9.0", | ||
"@typescript-eslint/parser": "^5.9.0", | ||
"@typescript-eslint/eslint-plugin": "^5.11.0", | ||
"@typescript-eslint/parser": "^5.11.0", | ||
"cz-conventional-changelog": "^3.3.0", | ||
"eslint": "^8.6.0", | ||
"eslint": "^8.8.0", | ||
"eslint-config-prettier": "^8.3.0", | ||
"eslint-plugin-import": "^2.25.4", | ||
"eslint-plugin-jest": "^25.3.4", | ||
"eslint-plugin-jest": "^26.1.0", | ||
"eslint-plugin-prettier": "^4.0.0", | ||
"husky": "^7.0.4", | ||
"jest": "^27.4.7", | ||
"lint-staged": "^12.1.5", | ||
"jest": "^27.5.1", | ||
"lint-staged": "^12.3.3", | ||
"lodash": "^4.17.21", | ||
"prettier": "^2.5.1", | ||
"rimraf": "^3.0.2", | ||
"sort-package-json": "^1.53.1", | ||
"sort-package-json": "^1.54.0", | ||
"source-map-support": "^0.5.21", | ||
"standard-version": "^9.3.2", | ||
"ts-jest": "^27.1.2", | ||
"typescript": "^4.5.4" | ||
"ts-jest": "^27.1.3", | ||
"typescript": "^4.5.5" | ||
}, | ||
@@ -71,0 +71,0 @@ "engines": { |
@@ -98,17 +98,17 @@ # Number to Words | ||
| Bangladesh | English | en-BD | | ||
| France | French | fr-FR | | ||
| Ghana | English | en-GH | | ||
| India | English | en-IN (default) | | ||
| Myanmar | English | en-MM | | ||
| Mauritius | English | en-MU | | ||
| Nigeria | English | en-NG | | ||
| Ghana | English | en-GH | | ||
| USA | English | en-US | | ||
| Iran | Persian | fa-IR | | ||
| France | French | fr-FR | | ||
| India | Gujarati | gu-IN | | ||
| India | Hindi | hi-IN | | ||
| India | Marathi | mr-IN | | ||
| Iran | Persian | fa-IR | | ||
| Mauritius | English | en-MU | | ||
| Myanmar | English | en-MM | | ||
| Nigeria | English | en-NG | | ||
| Turkey | Turkish | tr-TR | | ||
| UK | English | en-GB | | ||
| USA | English | en-US | | ||
## Inspiration for core logic | ||
[https://stackoverflow.com/a/46221860](https://stackoverflow.com/a/46221860) |
@@ -9,2 +9,3 @@ import { ConstructorOf, ConverterOptions, LocaleInterface, NumberWordMap, ToWordsOptions } from './types'; | ||
import enUs from './locales/en-US'; | ||
import enGb from './locales/en-GB'; | ||
import faIr from './locales/fa-IR'; | ||
@@ -55,2 +56,4 @@ import frFr from './locales/fr-FR'; | ||
return enUs; | ||
case 'en-GB': | ||
return enGb; | ||
case 'fa-IR': | ||
@@ -57,0 +60,0 @@ return faIr; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
251801
81
5853