Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add fallback lng #5222

Conversation

ainouzgali
Copy link
Contributor

What change does this PR introduce?

enterprise PR

When a subscriber has a locale set for him - but there is no such locale for the translation group -> use the default locale of the organization as a fallback.

Currently - it shows the translation keys in the content.

For example:

Organization default locale is en_US

The subscriber locale is en_CA

In the editor there is {{i18n group.key}}and the group has a translation file for en_US but not one for en_CA.

Currently, for this subscriber it will show in the message the text group.key

It should show the translation provided for the default locale

Why was this change needed?

Other information (Screenshots)

Copy link

linear bot commented Feb 20, 2024

Base automatically changed from nv-3511-implement-avatar-and-cta-buttons-preview-for-in-app to nv-2993-reusable-in-app-preview-component February 20, 2024 11:57
@ainouzgali ainouzgali merged commit c627999 into nv-2993-reusable-in-app-preview-component Feb 20, 2024
18 checks passed
@ainouzgali ainouzgali deleted the nv-3520-use-default-locale-of-the-organization-as-fallback branch February 20, 2024 12:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants