Go to file
Ali dee31d739b feat(i18n): English source-string overrides + clear translation cache
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>
2026-07-13 10:54:44 +00:00
az_locale feat(i18n): English source-string overrides + clear translation cache 2026-07-13 10:54:44 +00:00
.editorconfig feat: Initialize App 2025-03-04 17:32:00 +04:00
.eslintrc feat: Initialize App 2025-03-04 17:32:00 +04:00
.gitignore feat: Initialize App 2025-03-04 17:32:00 +04:00
.pre-commit-config.yaml feat: Initialize App 2025-03-04 17:32:00 +04:00
README.md chore: use native Azərbaycan spelling in app description 2026-05-14 10:57:28 +00:00
license.txt feat: Initialize App 2025-03-04 17:32:00 +04:00
pyproject.toml chore: use native Azərbaycan spelling in app description 2026-05-14 10:57:28 +00:00

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