Closed pexposito closed 3 years ago
For:
writtenNumber(1101, { lang: "es" }) \\ it returns "mil ciento uno" -> CORRECT
for:
writtenNumber(1100, { lang: "es" }) \\ it returns "mil ciento" -> INCORRECT \\ it should be "mil cien"
The solution is to modify the first unit for "es.json" language file to add "useBaseExceptionWhenNoTrailingNumbers" property:
{ "singular": "ciento", "useBaseInstead": true, "useBaseException": [1], "useBaseExceptionWhenNoTrailingNumbers": true }
I've created a PR for this issue. https://github.com/yamadapc/js-written-number/pull/73 Cheers!!!
Fixed as of v0.11.1, thanks
For:
for:
The solution is to modify the first unit for "es.json" language file to add "useBaseExceptionWhenNoTrailingNumbers" property: