I18n

reco_luan2022-06-07 22:30:37

These options configure locale-related texts.

If your site is served in a different language besides English, you should set these options per locale to provide translations.

Please refer to Official Documentationopen in new window for detailed i18n config.

Options

OptionsTypeDefaultDescription
categoriesTextstringCategoriescategories
tagsTextstringTagstags
catalogTitlestringON THIS PAGEThe title of the table of contents on the right of the article
selectLanguageNamestring${lang}Language name of Locale
editLinkTextstringEdit this pageEdit the text of the link on this pag
lastUpdatedTextstringLast UpdatedThe text of the recently updated timestamp label
tipstringTIPCustomize the title of the tip container
infostringINFOCustomize the title of the info container
warningstringWARNINGCustomize the title of the warning container
dangerstringDANGERCustomize the title of the danger container
detailsstringDETAILSCustomize the title of the details container
notFoundstringOops! Page does not exist.404 page text
backToHomestringBack To Home404 page returns to the home page
inputPasswordTextstringPlease enter the passwordPassword entry prompt
unlockSucessTextstringSuccess, enjoy it!Prompt for successful password entry
unlockFailuerTextstringFailed, please enter again!Password entry error prompt

Example

// .vuepress/config.ts

import { defineUserConfig } from 'vuepress'
import { recoTheme } from 'vuepress-theme-reco'

export default defineUserConfig({
  theme: recoTheme({
      tip: 'Tip',
      info: 'Info',
      tagsText: 'Tags',
      danger: 'Danger',
      warning: 'Warning',
      details: 'Details',
      backToHome: 'Back To Home',
      categoriesText: 'Categories',
      catalogTitle: 'On This Page',
      selectLanguageName: 'English',
      editLinkText: 'Edit this page',
      lastUpdatedText: 'Last Updated',
      notFound: 'Oops! Page does not exist.',
      inputPasswordText: 'Please enter the password',
      unlockSucessText: 'Success, enjoy it!',
      unlockFailuerText: 'Failed, please enter again!'
  })
})
Last Updated 11/26/2024, 10:43:06 AM
ON THIS PAGE