Refine i18n support (#236)

This commit is contained in:
Germey authored and GitHub committed 2025-07-27 18:57:31 +08:00
1 parent f256e2059e
commit 0c0eea7483
15 files changed
+139 -186

No files matched your search

+1 -1
View File
@@ -1,12 +1,12 @@
import { getCookie, setCookie } from 'typescript-cookie';
import favicon from '@/assets/images/favicon.ico';
import { getLocale } from '@/i18n';
import { applyTheme } from './theme';
import store from '@/store';
import { IToken } from '@/models';
import { parse } from 'psl';
import { BASE_HOST_HUB, LOCALE_CURRENCY_MAPPING } from '@/constants';
import { isOfficial, isSubOfficial, isWechatBrowser } from './is';
import { getLocale } from '@/i18n';
export const getDomain = (host: string = window.location.hostname) => {
const parsed = parse(host);