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

fix: Fixing bug where Strapi UI is crashing when no locale is found #149

Conversation

mmb-michaelrazmgah
Copy link

What does it do?

Adding a try-catch if unable to load correct translations - will now fallback to english.

Why is it needed?

I have swedish locale 'sv' in my Strapi app, but it makes the app crash since it is not translated in the plugin

How to test it?

Change locale to 'sv' or another missing translation, it should load 'en' translations

Related issue(s)/PR(s)

Let us know if this is related to any issue/pull request

@boazpoolman
Copy link
Member

?

@mmb-michaelrazmgah
Copy link
Author

?

Sorry, I used wrong github account. I've opened a new PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants