Comparing version 2.2.5 to 2.3.0
@@ -5,2 +5,9 @@ # Changelog | ||
## [2.3.0](https://github.com/mastermunj/to-words/compare/v2.2.5...v2.3.0) (2020-11-20) | ||
### Features | ||
* add support for en-MM ([b48eade](https://github.com/mastermunj/to-words/commit/b48eade05b0b0272443ecf89acf6004c0d3f18aa)) | ||
### [2.2.5](https://github.com/mastermunj/to-words/compare/v2.2.4...v2.2.5) (2020-11-08) | ||
@@ -7,0 +14,0 @@ |
@@ -23,2 +23,4 @@ "use strict"; | ||
return require('./locales/en-IN').Locale; | ||
case 'en-MM': | ||
return require('./locales/en-MM').Locale; | ||
case 'en-MU': | ||
@@ -25,0 +27,0 @@ return require('./locales/en-MU').Locale; |
{ | ||
"name": "to-words", | ||
"version": "2.2.5", | ||
"version": "2.3.0", | ||
"description": "Converts numbers (including decimal points) into words & currency.", | ||
@@ -33,3 +33,3 @@ "keywords": [ | ||
"release:mock": "npm run release -- --dry-run", | ||
"test": "jest --detectOpenHandles --coverage", | ||
"test": "jest --detectOpenHandles --coverage --no-cache", | ||
"test:watch": "npm run test -- --watch" | ||
@@ -65,5 +65,5 @@ }, | ||
"lodash": "^4.17.15", | ||
"prettier": "^2.0.5", | ||
"prettier": "^2.2.0", | ||
"rimraf": "^3.0.2", | ||
"sort-package-json": "^1.46.1", | ||
"sort-package-json": "^1.48.0", | ||
"source-map-support": "^0.5.19", | ||
@@ -70,0 +70,0 @@ "standard-version": "^9.0.0", |
@@ -87,3 +87,3 @@ # Number to Words | ||
| ------------- | ------------- | ------------- | ------------- | | ||
| localeCode | string | 'en-IN' | Locale code for selecting i18n.<br/>Supported Locale: `en-IN`, `en-MU`, `en-US` and `fa-IR`.<br/>Please open PR if more needed. | | ||
| localeCode | string | 'en-IN' | Locale code for selecting i18n. | | ||
| currency | boolean | false | Whether the number to be converted into words written as currency.<br/>*Note: When currency:true, number will be rounded off to two decimals before converting to words* | | ||
@@ -93,4 +93,10 @@ | ignoreDecimal | boolean | false | Whether to ignore fractional unit of number while converting into words. | | ||
## Supported Locale | ||
* en-IN (default) | ||
* en-MM | ||
* en-MU | ||
* en-US | ||
* fa-IR | ||
## Inspiration for core logic | ||
[https://stackoverflow.com/a/46221860](https://stackoverflow.com/a/46221860) |
@@ -43,2 +43,4 @@ import { LocaleInterface } from './locales/locale.interface'; | ||
return require('./locales/en-IN').Locale; | ||
case 'en-MM': | ||
return require('./locales/en-MM').Locale; | ||
case 'en-MU': | ||
@@ -45,0 +47,0 @@ return require('./locales/en-MU').Locale; |
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
84287
40
2253
101