Skip to content

I18n tests#61

Merged
DiogoRDuarte merged 6 commits into
developfrom
i18n-tests
Sep 9, 2025
Merged

I18n tests#61
DiogoRDuarte merged 6 commits into
developfrom
i18n-tests

Conversation

@DiogoRDuarte

Copy link
Copy Markdown
Contributor

In this MR:

  • Fixed i18n issue where, when having multiple charts with different languages, one of them would override all others. This would inevitably affect external components using i18n too.
  • Added i18n tests.

@DiogoRDuarte DiogoRDuarte changed the base branch from main to develop September 8, 2025 10:55
@DiogoRDuarte DiogoRDuarte self-assigned this Sep 8, 2025
@DiogoRDuarte DiogoRDuarte linked an issue Sep 8, 2025 that may be closed by this pull request
@DiogoRDuarte DiogoRDuarte marked this pull request as draft September 8, 2025 11:22
Comment thread src/AutoVizuA11y.tsx
const { t } = useIsolatedI18n(
internationalization?.language,
internationalization?.customTranslations,
);

@joaopalmeiro joaopalmeiro Sep 8, 2025

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Why not passing internationalization only and wrap all the logic? Any reasons?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Changed! nice point

Comment thread cypress/e2e/internationalization.cy.js Outdated
Comment thread src/hooks/useIsolatedI18n.ts Outdated
Comment thread src/hooks/useIsolatedI18n.ts
Comment thread CHANGELOG.md
@DiogoRDuarte DiogoRDuarte marked this pull request as ready for review September 9, 2025 08:45
@DiogoRDuarte DiogoRDuarte merged commit 7ccebb1 into develop Sep 9, 2025
4 checks passed
@DiogoRDuarte DiogoRDuarte deleted the i18n-tests branch September 11, 2025 11:10
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.

Tests: Further create more tests, especially for the new i18n props

2 participants