Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
chore(ai): mention instructions for adding new locale
Elian Doran543438bca0fe
diff --git a/.github/copilot-instructions.md b/.github/copilot-instructions.mdindex a573d1938c..017e5b6205 100644--- a/.github/copilot-instructions.md+++ b/.github/copilot-instructions.md@@ -320,6 +320,7 @@ Trilium provides powerful user scripting capabilities:- Use translation system via `t()` function- Automatic pluralization: Add `_other` suffix to translation keys (e.g., `item` and `item_other` for singular/plural)- When a translated string contains **interpolated components** (e.g. links, note references) whose order may vary across languages, use `<Trans>` from `react-i18next` instead of `t()`. This lets translators reorder components freely (e.g. `"<Note/> in <Parent/>"` vs `"in <Parent/>, <Note/>"`)+- When adding a new locale, follow the step-by-step guide in `docs/Developer Guide/Developer Guide/Concepts/Internationalisation Translations/Adding a new locale.md`## Testing Conventionsdiff --git a/CLAUDE.md b/CLAUDE.mdindex acec08b8ae..70d9757ae5 100644--- a/CLAUDE.md+++ b/CLAUDE.md@@ -121,6 +121,7 @@ Trilium provides powerful user scripting capabilities:- **Only add new translation keys to `en/translation.json`** — translations for other languages are managed via Weblate and will be contributed by the community- Third-party components (e.g., mind-map context menu) should use i18next `t()` for their labels, with the English strings added to `en/translation.json` under a dedicated namespace (e.g., `"mind-map"`)- When a translated string contains **interpolated components** (e.g. links, note references) whose order may vary across languages, use `<Trans>` from `react-i18next` instead of `t()`. This lets translators reorder components freely (e.g. `"<Note/> in <Parent/>"` vs `"in <Parent/>, <Note/>"`)+- When adding a new locale, follow the step-by-step guide in `docs/Developer Guide/Developer Guide/Concepts/Internationalisation Translations/Adding a new locale.md`### Security Considerations- Per-note encryption with granular protected sessions