🐛(frontend) add fallback for unsupported blocknote languages
We had a bug when user selected a language that is not supported by BlockNote editor, the app would crash. If the language is not supported by BlockNote, we now fallback Blocknote editor to English.
This commit is contained in:
@@ -330,6 +330,10 @@ export const TestLanguage = {
|
||||
label: 'Deutsch',
|
||||
expectedLocale: ['de-de'],
|
||||
},
|
||||
Swedish: {
|
||||
label: 'Svenska',
|
||||
expectedLocale: ['sv-se'],
|
||||
},
|
||||
} as const;
|
||||
|
||||
type TestLanguageKey = keyof typeof TestLanguage;
|
||||
|
||||
Reference in New Issue
Block a user