RFC: Internationalization #579
Replies: 3 comments 3 replies
-
Maybe we can think about a way of separating the messages in a file by component so it doesn't become messy... Since it's a json I don't know if there's much we can do other than adding blank lines between groups or something A problem that happens a lot in apps in this model is that stale messages end up never getting deleted and it's a little hard to find what messages are not being used anymore. The file ends up growing "forever" |
Beta Was this translation helpful? Give feedback.
-
An alternative for having a single
// crowdin.yml file
files:
- source: /packages/admin-ui/src/search/messages/en.json
translation: /%original_path%/%two_letters_code%.%file_extension%
- source: /packages/admin-ui/src/filter/messages/en.json
translation: /%original_path%/%two_letters_code%.%file_extension%
... Pros
Cons
Unresolved questions
|
Beta Was this translation helpful? Give feedback.
-
Implemented |
Beta Was this translation helpful? Give feedback.
-
Problem
In the design system, we have internal translations to help our users by previously defining common messages in different apps and letting them use the messages.
The main issue is that we created a pattern to reuse the i18n behavior along the projects, but this is still experimental, and the way of adding, removing, and updating messages is not scalable.
Why this matters?
Proposal
IMO there are two problems to be solved by this RFC, which are:
App set up proposal
Before
After
Messages evolution proposal
Two issues make it harder for the localization team to maintain those translations:
crowdin
, and this makes the team have to manually open PRs in the project instead of using the translation tool.Before
After
Pros
Cons
ThemeProvider
component with alocale
property doesn’t make much sense, we’ll probably need to change it which will cause a breaking change.Unresolved questions
ThemeProvider
to something different? What do you think of creating an RFC about it?What's next
Beta Was this translation helpful? Give feedback.
All reactions