Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Currency verbalization can be bricked by environment locales #33

Open
RadekKazbundaAtMama opened this issue Dec 5, 2022 · 0 comments
Open

Comments

@RadekKazbundaAtMama
Copy link

On my local machine normalization of English currencies does not work, because by linux installation is set non US locales:

gruut -l en-us "\$10"
{"idx": 0, "text": "$10", "text_with_ws": "$10", "text_spoken": "$10", "par_idx": 0, "lang": "en-us", "voice": "", "words": [{"idx": 0, "text": "$10", "text_with_ws": "$10", "leading_ws": "", "trailing_ws": "", "sent_idx": 0, "par_idx": 0, "lang": "en-us", "voice": "", "pos": "NN", "phonemes": [], "is_major_break": false, "is_minor_break": false, "is_punctuation": false, "is_break": false, "is_spoken": true, "pause_before_ms": 0, "pause_after_ms": 0, "marks_before": null, "marks_after": null}], "pause_before_ms": 0, "pause_after_ms": 0, "marks_before": null, "marks_after": null}

If I set local LC_NUMERIC to en_US locale, then it will work. The problem is called by using default babel locale when configuring gruut. I can make a PR with fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant