feat(i18n): language selector

This commit is contained in:
Corentin Thomasset 2023-10-31 23:51:16 +01:00
parent e164afb664
commit fe085d1502
No known key found for this signature in database
GPG key ID: DBD997E935996158
12 changed files with 182 additions and 46 deletions

View file

@ -36,7 +36,7 @@ const menuOptions = computed(() =>
tools: components.map(tool => ({
label: makeLabel(tool),
icon: makeIcon(tool),
key: tool.name,
key: tool.path,
})),
})),
);
@ -62,7 +62,7 @@ const themeVars = useThemeVars();
<n-menu
class="menu"
:value="route.name as string"
:value="route.path"
:collapsed-width="64"
:collapsed-icon-size="22"
:options="tools"