Skip to content

Conversation

@HenriRabalais
Copy link
Collaborator

Summary

This PR adds translation support to the biobank module. All user-facing strings in JSX components are now wrapped in translation functions and integrated with.po and .pot files.

Changes

  • Updated JSX components to use t('string', {ns: 'biobank'}) for translations.
  • Added locale/fr/LC_MESSAGES/biobank.po and biobank.pot files with initial translation entries.
  • Ensured translations work in class components using withTranslation.

Testing

  • Verified that npm run watch compiles without errors.
  • Checked that translated strings are displayed correctly in the UI when switching locales.

@HenriRabalais HenriRabalais marked this pull request as draft December 3, 2025 16:25
@github-actions github-actions bot added Language: Javascript PR or issue that update Javascript code Multilingual Any tasks related to making LORIS multilingual labels Dec 3, 2025
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=CHARSET\n"
"Content-Transfer-Encoding: 8bit\n"

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing "Biobank" and "Biospecimens" (for the loris menu)?

@HenriRabalais HenriRabalais marked this pull request as ready for review December 5, 2025 15:59
@HenriRabalais HenriRabalais force-pushed the 2025-12-02_biobank-translation branch from 266623e to 2c376f9 Compare December 10, 2025 13:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Language: Javascript PR or issue that update Javascript code Multilingual Any tasks related to making LORIS multilingual

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants