Skip to content

Conversation

Tristan-WorkGH
Copy link
Contributor

@Tristan-WorkGH Tristan-WorkGH commented Mar 12, 2025

References:

One specific for aggrid locales is that

  1. they don't use the ICU messages syntax used by react-intl, so a transformation is necessary.
    https://github.com/ag-grid/ag-grid/blob/v33.1.1/community-modules/locale/src/en-US.ts#L91
  2. we also need to add a prefix to aggrid keys to not mix with (or worse override) others translations keys.

To not have this unnecessary work each time the page load in the browser, this transformation is done at compile time once, and have in the build just an object per language exported like for our translations.

@Tristan-WorkGH Tristan-WorkGH requested a review from sBouzols March 12, 2025 16:38
@Tristan-WorkGH Tristan-WorkGH self-assigned this Mar 12, 2025
@Tristan-WorkGH Tristan-WorkGH force-pushed the intl/fix-missing branch 2 times, most recently from 4771577 to 043cdfc Compare March 12, 2025 17:03
Copy link

@Tristan-WorkGH Tristan-WorkGH merged commit 414e966 into main Apr 23, 2025
5 checks passed
@Tristan-WorkGH Tristan-WorkGH deleted the intl/fix-missing branch April 23, 2025 10:57
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.

2 participants