mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-16 10:33:09 +02:00
9 lines
218 B
TypeScript
9 lines
218 B
TypeScript
import { markRaw } from 'vue';
|
|
import { locale } from '@/config';
|
|
import { I18n } from '@/scripts/i18n';
|
|
|
|
export const i18n = markRaw(new I18n(locale));
|
|
|
|
export function updateI18n(newLocale) {
|
|
i18n.ts = newLocale;
|
|
}
|