Add locale/translations_en/{frappe,erpnext}/en.po so we can rewrite English
source strings we are not happy with. English is not special-cased anywhere in
Frappe's runtime, so setup_locale() picks these up with no changes: it derives
the locale from the translations_<lang> folder name, copies each en.po into the
target app and compiles it to sites/assets/locale/en/LC_MESSAGES/<app>.mo.
Both files ship empty (header only) for now.
Also clear the merged-translation cache once all .mo files are written.
bench migrate clears that cache *before* running after_migrate hooks, and it
refills during migration (patches and syncs call _() under lang "en"), so the
.mo files we write afterwards stayed invisible until someone ran
`bench clear-cache` by hand. This affected az/ru too.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
|
||
|---|---|---|
| az_locale | ||
| .editorconfig | ||
| .eslintrc | ||
| .gitignore | ||
| .pre-commit-config.yaml | ||
| README.md | ||
| license.txt | ||
| pyproject.toml | ||
README.md
Az Locale
This app adds Azərbaycan language and currency
Installation
You can install this app using the bench CLI:
cd $PATH_TO_YOUR_BENCH
bench get-app $URL_OF_THIS_REPO --branch develop
bench install-app az_locale
Contributing
This app uses pre-commit for code formatting and linting. Please install pre-commit and enable it for this repository:
cd apps/az_locale
pre-commit install
Pre-commit is configured to use the following tools for checking and formatting your code:
- ruff
- eslint
- prettier
- pyupgrade
License
unlicense