diff --git a/src/components/TabSidebar.vue b/src/components/TabSidebar.vue
index ef62b814c2..58db10ee84 100644
--- a/src/components/TabSidebar.vue
+++ b/src/components/TabSidebar.vue
@@ -2,6 +2,7 @@
import { watch } from 'vue'
import { useRouter } from 'vue-router'
import type { Tab } from './comp_def'
+import { useI18n } from 'vue-i18n';
const props = defineProps<{
tabs: Tab[]
@@ -11,6 +12,7 @@ const props = defineProps<{
const emit = defineEmits(['update:activeTab'])
const router = useRouter()
+const { t } = useI18n()
function openLink(link: string) {
emit('update:activeTab', link)
@@ -47,7 +49,7 @@ watch(props, (p) => {
diff --git a/src/layouts/settings.vue b/src/layouts/settings.vue
index ad6fe15cb8..9236afd7cb 100644
--- a/src/layouts/settings.vue
+++ b/src/layouts/settings.vue
@@ -24,29 +24,29 @@ const ActiveTab = ref('')
const tabs = ref([
{
- label: t('account'),
+ label: 'account',
icon: shallowRef(IconAcount),
key: '/dashboard/settings/account',
},
{
- label: t('password'),
+ label: 'password',
icon: shallowRef(IconPassword),
key: '/dashboard/settings/changepassword',
},
{
- label: t('notifications'),
+ label: 'notifications',
icon: shallowRef(IconNotification),
key: '/dashboard/settings/notifications',
},
{
- label: t('plans'),
+ label: 'plans',
icon: shallowRef(IconPlans),
key: '/dashboard/settings/plans',
},
])
if (!Capacitor.isNativePlatform()) {
tabs.value.push({
- label: t('billing'),
+ label: 'billing',
icon: shallowRef(IconBilling) as any,
key: '/billing',
onClick: openPortal,
@@ -56,7 +56,7 @@ if (main.user?.id) {
isAdmin(main.user?.id).then((res) => {
if (!!res || isSpoofed()) {
tabs.value.push({
- label: t('admin'),
+ label: 'admin',
icon: shallowRef(IconAdmin) as any,
key: '/dashboard/settings/admin',
})