mirror of
https://bitbucket.org/studiotem/jandl-taskmanager-app.git
synced 2026-10-22 14:59:34 +00:00
team table, create team modal, delete team modal
This commit is contained in:
1 parent
0e33d86c98
commit
f6d0764969
24 files changed
+1750
-886
No files matched your search
@@ -2,7 +2,7 @@ import { Language, Options } from "../types"
|
||||
import { Ref, ref } from 'vue'
|
||||
import axios from 'axios'
|
||||
import { createI18n, I18n as I18nType } from 'vue-i18n'
|
||||
import { Storage } from '@capacitor/storage'
|
||||
import { Preferences } from '@capacitor/preferences'
|
||||
|
||||
|
||||
export class I18n {
|
||||
@@ -30,7 +30,7 @@ export class I18n {
|
||||
}
|
||||
|
||||
public async initCurrentLanguage() {
|
||||
const { value } = await Storage.get({ key: this.languageKey })
|
||||
const { value } = await Preferences.get({ key: this.languageKey })
|
||||
|
||||
if (value) {
|
||||
this.currentLanguage.value = JSON.parse(value)
|
||||
@@ -58,7 +58,7 @@ export class I18n {
|
||||
this.currentLanguage.value = language
|
||||
this._addAxiosHeaders()
|
||||
|
||||
Storage.set({
|
||||
Preferences.set({
|
||||
key: this.languageKey,
|
||||
value: JSON.stringify(language)
|
||||
})
|
||||
|
||||
Reference in new issue
Block a user