pluginpal / strapi-plugin-config-sync

:recycle: CLI & GUI for continuous migration of config data across environments
https://www.pluginpal.io/plugin/config-sync
MIT License
256 stars 36 forks source link

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

Closed mmb-michaelrazmgah closed 1 month ago

mmb-michaelrazmgah commented 1 month ago

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 commented 1 month ago

?

mmb-michaelrazmgah commented 1 month ago

?

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