opral / inlang-message-ui-components

Issue tracker for UI components
0 stars 0 forks source link

Add filteredLocales as prop for bundle component #95

Closed NilsJacobsen closed 4 months ago

NilsJacobsen commented 4 months ago

I tried to prevent it with a reduced bundle with the query.modify() function. It worked well, it was possible to filter out languages.

Problem:

The UI doesn't know if the message of a removed language is missing or filtered out, so we need to provide it with that information.

Rule:
Whenever we want to reduce a bundle, this info needs to be provided in the component. Happily, it is only the locales. When we sort bundles using the query work just fine.