mirror of
https://github.com/InvoiceShelf/InvoiceShelf.git
synced 2026-04-19 03:04:05 +00:00
Fix language switching. It now switches instantly
This commit is contained in:
@@ -79,8 +79,10 @@ export const useGlobalStore = (useWindow = false) => {
|
||||
companyStore.selectedCompanyCurrency =
|
||||
response.data.current_company_currency
|
||||
|
||||
global.locale.value =
|
||||
response.data.current_user_settings.language || 'en'
|
||||
if(typeof global.locale !== 'string') {
|
||||
global.locale.value =
|
||||
response.data.current_user_settings.language || 'en'
|
||||
}
|
||||
|
||||
this.isAppLoaded = true
|
||||
resolve(response)
|
||||
|
||||
Reference in New Issue
Block a user