Summary: | Allow translation context in vue files | ||
---|---|---|---|
Product: | Koha | Reporter: | Caroline Cyr La Rose <caroline.cyr-la-rose> |
Component: | I18N/L10N | Assignee: | Jonathan Druart <jonathan.druart> |
Status: | Pushed to main --- | QA Contact: | Martin Renvoize (ashimema) <martin.renvoize> |
Severity: | enhancement | ||
Priority: | P5 - low | CC: | f.demians, jonathan.druart, martin.renvoize |
Version: | unspecified | ||
Hardware: | All | ||
OS: | All | ||
GIT URL: | Change sponsored?: | --- | |
Patch complexity: | --- | Documentation contact: | |
Documentation submission: | Text to go in the release notes: | ||
Version(s) released in: |
25.05.00
|
Circulation function: | |
Bug Depends on: | |||
Bug Blocks: | 38828, 39045 | ||
Attachments: |
Bug 39061: Allow translation context in vue files
Bug 39061: Export all functions from i18n.js Bug 39061: Allow translation context in vue files Bug 39061: Export all functions from i18n.js |
Description
Caroline Cyr La Rose
2025-02-06 21:09:46 UTC
Created attachment 177600 [details] [review] Bug 39061: Allow translation context in vue files This patch adds the possibility to add translation context clues in vue files. Syntax is $__p("context","term") To test, see bug 39045. I think we should provide all the functions defined in i18n.js here. Created attachment 177693 [details] [review] Bug 39061: Export all functions from i18n.js Created attachment 180236 [details] [review] Bug 39061: Allow translation context in vue files This patch adds the possibility to add translation context clues in vue files. Syntax is $__p("context","term") To test, see bug 39045. Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> Created attachment 180237 [details] [review] Bug 39061: Export all functions from i18n.js Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> Important, but clear and trivial, improvement. Going straight for a QA here.. I'd love to see some basic unit tests, but we're well covered on the imported functions and this is just bringing them into the Vue space so I think we're OK without. Passing QA Pushed for 25.05! Well done everyone, thank you! |