Locale Config

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.

Options

OptionsTypeDefaultDescription
categoriesstringCategoriescategories
tagsstringTagstags
catalogTitlestringON THIS PAGEThe title of the table of contents on the right of the article
selectLanguageTextstringLanguagesSelect text from the language menu
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

Example

// .vuepress/config.ts

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

export default defineUserConfig({
  theme: recoTheme({
      tip: 'Tip',
      info: 'Info',
      danger: 'Danger',
      warning: 'Warning',
      details: 'Details',
      backToHome: 'Back To Home',
      catalogTitle: 'On This Page',
      editLinkText: 'Edit this page',
      notFound: 'Oops! Page does not exist.',
      selectLanguageText: 'Languages',
      lastUpdatedText: 'Last Updated',
      selectLanguageName: 'English',
  })
})
Last Updated 9/13/2024, 6:32:52 PM
ON THIS PAGE