diff --git a/src/App.vue b/src/App.vue
index 8e65335d..03cb4fc1 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -13,10 +13,15 @@ const theme = computed(() => (styleStore.isDarkTheme ? darkTheme : null));
const themeOverrides = computed(() => (styleStore.isDarkTheme ? darkThemeOverrides : lightThemeOverrides));
const { locale } = useI18n();
+const localeStorage = useStorage('locale', 'zh');
+
+if (!['zh', 'en'].includes(localeStorage.value)) {
+ localeStorage.value = 'zh';
+}
syncRef(
locale,
- useStorage('locale', locale),
+ localeStorage,
);
diff --git a/src/components/NavbarButtons.vue b/src/components/NavbarButtons.vue
index 0a2af0f0..a825cdd0 100644
--- a/src/components/NavbarButtons.vue
+++ b/src/components/NavbarButtons.vue
@@ -1,5 +1,5 @@
@@ -9,32 +9,18 @@ import { IconBrandGithub, IconBrandX, IconInfoCircle } from '@tabler/icons-vue';
circle
size="small"
variant="text"
- href="https://github.com/CorentinTh/it-tools"
+ href="https://github.com/shake/it-tools"
target="_blank"
rel="noopener noreferrer"
:aria-label="$t('home.nav.githubRepository')"
>
-
-
-
-
-
-
-
+
-
+
@@ -44,5 +30,6 @@ import { IconBrandGithub, IconBrandX, IconInfoCircle } from '@tabler/icons-vue';
.navbar-buttons {
display: flex;
align-items: center;
+ gap: 4px;
}
diff --git a/src/layouts/base.layout.vue b/src/layouts/base.layout.vue
index fb5c3177..b34bfe2b 100644
--- a/src/layouts/base.layout.vue
+++ b/src/layouts/base.layout.vue
@@ -96,18 +96,18 @@ const tools = computed(() => [
:aria-label="$t('home.toggleMenu')"
@click="styleStore.isMenuCollapsed = !styleStore.isMenuCollapsed"
>
-
+
-
+
-
+
@@ -189,6 +189,6 @@ const tools = computed(() => [
}
.top-right-actions {
- gap: 6px;
+ gap: 4px;
}
diff --git a/src/modules/i18n/components/locale-selector.vue b/src/modules/i18n/components/locale-selector.vue
index 3fef72ab..a664aa3b 100644
--- a/src/modules/i18n/components/locale-selector.vue
+++ b/src/modules/i18n/components/locale-selector.vue
@@ -1,32 +1,17 @@
diff --git a/src/plugins/i18n.plugin.ts b/src/plugins/i18n.plugin.ts
index f3e8f0e5..106f7d82 100644
--- a/src/plugins/i18n.plugin.ts
+++ b/src/plugins/i18n.plugin.ts
@@ -5,7 +5,7 @@ import { createI18n } from 'vue-i18n';
const i18n = createI18n({
legacy: false,
- locale: 'en',
+ locale: 'zh',
messages,
});