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.
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.