Skip to content

Initial implementation of https://github.com/rpbouman/huey/issues/581 - #616

Merged
rpbouman merged 1 commit into
devfrom
issue-581-add-support-for-translation-files
Sep 3, 2025
Merged

rpbouman merged 1 commit into
devfrom
issue-581-add-support-for-translation-files

Conversation

@rpbouman

@rpbouman rpbouman commented Sep 3, 2025

Copy link
Copy Markdown
Owner
  • add new translations files in src/Internationalization/i18n
  • internationalization files are json files, having the locale as name, and js as extension
  • internationalization files contain a single call to Internationalization.setTexts()
  • pass a object to Internationalization.setTexts() with the english language label as key, and the translation as value
  • To create a new translation, you can use src/Internationalization/huey.i18n.labels.template.js as starting point.
  • To keep the template up to date, you can call Internationalization.getTextsTemplate(), which returns an empty template.

- add new translations files in src/Internationalization/i18n
- internationalization files are json files, having the locale as name, and js as extension
- internationalization files contain a single call to Internationalization.setTexts()
- pass a object to Internationalization.setTexts() with the english language label as key, and the translation as value
- To create a new translation, you can use src/Internationalization/huey.i18n.labels.template.js as starting point.
- To keep the template up to date, you can call Internationalization.getTextsTemplate(), which returns an empty template.
@rpbouman
rpbouman merged commit 0096f9c into dev Sep 3, 2025
@rpbouman
rpbouman deleted the issue-581-add-support-for-translation-files branch September 3, 2025 20:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant