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

Prevent literal interpolation on null translations & apply to collection translations #11482

Merged
merged 2 commits into from
Feb 16, 2022

Conversation

azrikahar
Copy link
Contributor

Sort of a follow up of #11287

Changes made

  • translation could be null if the user had only selected a language for translating a field/collection, so the regex replace will error. Added ternary operator to handle it. Fixes Missing field/collection translations causes app to crash #11458

  • Noticed the fix wasn't applied to collection translations, so I've added the same logic over there as well.

@rijkvanzanten rijkvanzanten merged commit e237f9f into main Feb 16, 2022
@rijkvanzanten rijkvanzanten deleted the fix/translation-interpolation branch February 16, 2022 14:31
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 3, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Missing field/collection translations causes app to crash
2 participants