called it volta because depending on the context in italian its "turn" and it turns the languages into others i guess?
locales | ||
.gitignore | ||
example.py | ||
main.py | ||
README.md | ||
validate_locales.py |
How To Use
Place your translation JSON files inside any locales
directory, anywhere within your project or working folder.
Each JSON file should be named after the language code, for example:
en.json
, es.json
, fr.json
.
(even calling it terrorism.json works)
Ensure you have a .env
file with a locale
variable that sets your default language code, like so:
locale=en
If you don't want to manually add keys to each file you can use ctih's translator compiler!