-
{{ theme.notFound?.code ?? '404' }}
-
{{ theme.notFound?.title ?? 'PAGE NOT FOUND' }}
+
{{ notFound.code }}
+
{{ notFound.title }}
-
- {{
- theme.notFound?.quote ??
- "But if you don't change your direction, and if you keep looking, you may end up where you are heading."
- }}
-
+
{{ notFound.quote }}
diff --git a/src/client/theme-default/composables/langs.ts b/src/client/theme-default/composables/langs.ts
index e29afe949be6..a6174b0e66e3 100644
--- a/src/client/theme-default/composables/langs.ts
+++ b/src/client/theme-default/composables/langs.ts
@@ -8,6 +8,7 @@ export function useLangs({
} = {}) {
const { site, localeIndex, page, theme, hash } = useData()
const currentLang = computed(() => ({
+ index: localeIndex.value,
label: site.value.locales[localeIndex.value]?.label,
link:
site.value.locales[localeIndex.value]?.link ||
@@ -19,6 +20,7 @@ export function useLangs({
removeCurrent && currentLang.value.label === value.label
? []
: {
+ index: key,
text: value.label,
link:
normalizeLink(