mirror of
https://github.com/invoke-ai/InvokeAI.git
synced 2026-02-13 22:14:59 -05:00
- Apparently locales must use hyphens instead of underscores. This must have been a fairly recent change that we didn't catch. It caused i18n to throw for Brasilian Portuguese and both Simplified and Traditional Mandarin. Change the locales to use the right strings. - Move the theme + locale provider inside of the error boundary. This allows errors with locals to be caught by the error boundary instead of hard-crashing the app. The error screen is unstyled if this happens but at least it has the reset button. - Add a migration for the system slice to fix existing users' language selections. For example, if the user had an incorrect language setting of `zh_CN`, it will be changed to the correct `zh-CN`.