babel
babel copied to clipboard
How to pass separator for language/territory in CLI ?
Hello! How can i pass the separator for update and compile commands in cli-mode?
By default language and territory separated by "_", but i need the "-" symbol.
Can you explain your use case a little more?
i have a locale folders like: en en-in en-nz
But pybabel want it like this: en en_in en_nz
I can not change folder names, cause it may broke the app.
And when i try to update or compile, for example:
$ pybabel compile -f -d ./locale)
got exception this exciption:
...
File "/Users/x0139/workspace/env/lib/python3.7/site-packages/babel/core.py", line 1094, in parse_locale
raise ValueError('expected only letters, got %r' % lang)
ValueError: expected only letters, got 'en-in'
I also ran into this exact issue.
The translation management platform my team uses exports locale folders with - as separators.