Remove redundant i18n import triggered the Vite “dynamic + static import” warning
This commit is contained in:
parent
1334b3d896
commit
80f2e691fc
1 changed files with 0 additions and 6 deletions
|
|
@ -141,12 +141,6 @@ const useSettingsStoreBase = create<SettingsState>()(
|
|||
|
||||
setLanguage: (language: Language) => {
|
||||
set({ language })
|
||||
// Update i18n after state is updated
|
||||
import('i18next').then(({ default: i18n }) => {
|
||||
if (i18n.language !== language) {
|
||||
i18n.changeLanguage(language)
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
setGraphLayoutMaxIterations: (iterations: number) =>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue