feat: i18n selectText

pull/91/head
Spice-Z 5 years ago
parent 690325074c
commit da6df7a12c

@ -64,9 +64,13 @@ export default {
link: `${v}${currentContentPath}` link: `${v}${currentContentPath}`
} }
}) })
const currentLangKey = currentLangBase ? currentLangBase : '/'
const selectText = siteData.value.locales[currentLangKey].selectText
? siteData.value.locales[currentLangKey].selectText
: 'Languages'
return { return {
// TODO i18n text text: selectText,
text: 'Languages',
items: candidates items: candidates
} }
}) })

1
types/shared.d.ts vendored

@ -2,6 +2,7 @@
export interface LocaleConfig { export interface LocaleConfig {
lang: string lang: string
selectText?: string
label?: string label?: string
title?: string title?: string
description?: string description?: string

Loading…
Cancel
Save