Skip to content

Commit

Permalink
mastermunj#735 Latvian language support
Browse files Browse the repository at this point in the history
  • Loading branch information
Oskars Pakers committed Mar 17, 2023
1 parent ea04fdb commit 1bed03f
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ let words = toWords.convert(0.572, { currency: true, ignoreZeroCurrency: true })
| Suriname | Dutch | nl-SR |
| Brazil | Portuguese | pt-BR |
| Turkey | Turkish | tr-TR |
| Latvia | Latvian | lv-LR |
| Latvia | Latvian | lv-LV |


## Inspiration for core logic
Expand Down
12 changes: 11 additions & 1 deletion dist/locales/lv-LV.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,17 @@ class Locale {
{ number: 1, value: 'viens' },
{ number: 0, value: 'nulle' },
],
ignoreOneForWords: ['simti'],
ignoreOneForWords: [
'simtu',
'divi simti',
'trīs simti',
'četri simti',
'pieci simti',
'seši simti',
'septiņi simti',
'astoņi simti',
'deviņi simti',
],
};
}
}
Expand Down
12 changes: 11 additions & 1 deletion src/locales/lv-LV.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,16 @@ export default class Locale implements LocaleInterface {
{ number: 1, value: 'viens' },
{ number: 0, value: 'nulle' },
],
ignoreOneForWords: ['simti'],
ignoreOneForWords: [
'simtu',
'divi simti',
'trīs simti',
'četri simti',
'pieci simti',
'seši simti',
'septiņi simti',
'astoņi simti',
'deviņi simti',
],
};
}

0 comments on commit 1bed03f

Please sign in to comment.