-
Notifications
You must be signed in to change notification settings - Fork 43
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
Can't retrieve translation #26
Comments
Hi, Not the maintainer but was facing the same issue. Switching to json worked for me (see You will need to set
and finally of course for this to work. I would however be really interested in the correct YAML solution which I couldn't get to work either. |
I actually achieved to make it work with YAML. By default, python-i18n uses YAML for external files. I just removed the i18n.set format thingy. Also, I struggled a little bit with the path structure (and It's not that easy to find the issue because if the code does not find the right translation, It will print you the path that you're searching and not something like "Error translation not found" ^^) Here is my code:
And my paths structured like this: |
Hi!
I'm trying to implement i18n in one of my python script. I tried to figure out how this lib works but I'm facing an issue. I didn't find how to retrieve the desired value in my yml file:
python script:
yaml file (template.en.yml):
But my script only prints "template.subject" and not the string.
What am I missing here ?
Thanks!
The text was updated successfully, but these errors were encountered: