()
| 57 | }, |
| 58 | actions: { |
| 59 | async initialize(): Promise<void> { |
| 60 | if (this.initialized) { |
| 61 | return; |
| 62 | } |
| 63 | |
| 64 | const session = useSessionStore(); |
| 65 | await session.initialize(); |
| 66 | |
| 67 | this.initialized = true; |
| 68 | }, |
| 69 | async useLocale(locale: Locale, persist = false): Promise<void> { |
| 70 | const isLoadedLocale = i18n.global.availableLocales.includes(locale); |
| 71 | if (isLoadedLocale && i18n.global.locale.value === locale) { |
nothing calls this directly
no test coverage detected