--- title: Locales Configuration createTime: 2025/10/09 10:07:15 permalink: /en/config/locales/ --- These options are used to configure language-related text. If your site is served in languages other than the built-in supported languages, you should set these options for each language to provide translations. ## Built-in Language Support The theme has built-in support for the following languages: - Simplified Chinese (`zh-CN`) - `/zh/` - Traditional Chinese (`zh-TW`) - `/zh-tw/` - English (`en-US`) - `/en/` - French (`fr-FR`) - `/fr/` - German (`de-DE`) - `/de/` - Russian (`ru-RU`) - `/ru/` - Japanese (`ja-JP`) - `/ja/` - Korean (`ko-KR`) - `/ko/` ## Configuration You should write the configuration in `theme.locales`. You can configure it in `.vuepress/config.ts`, or in `.vuepress/plume.config.ts`: ::: code-tabs#configs @tab .vuepress/config.ts ```ts twoslash import { defineUserConfig } from 'vuepress' import { plumeTheme } from 'vuepress-theme-plume' export default defineUserConfig({ theme: plumeTheme({ locales: { // Language code for non-built-in languages '/xxx/': { // Language configuration } } }) }) ``` @tab .vuepress/plume.config.ts ```ts twoslash import { defineThemeConfig } from 'vuepress-theme-plume' export default defineThemeConfig({ locales: { // Language code for non-built-in languages '/xxx/': { // Language configuration } } }) ``` ::: For detailed configuration methods, please refer to: [Internationalization](../guide/quick-start/locales.md) ### appearanceText - Type: `string` - Default: `'Appearance'` - Details: The text for the theme toggle button in the navigation bar. ### selectLanguageName - Type: `string` - Default: `''` - Details: The language name for the locale. This configuration item **only takes effect inside the [locales](./theme.md#locales) of the theme configuration**. It will be used as the language name for the locale, displayed in the _Select Language Menu_. ### selectLanguageText - Type: `string` - Default: `''` - Details: The text for the _Select Language Menu_. If you set multiple [locales](./theme.md#locales) in the site configuration, the _Select Language Menu_ will be displayed next to the repository button in the navigation bar. ### selectLanguageAriaLabel - Type: `string` - Default: `''` - Details: The `aria-label` attribute for the _Select language menu_. It is primarily for site accessibility (a11y). ### homeText - Type: `string` - Default: `'Home'` - Details: The text for the home link. - The text for the home link in the theme's default navigation bar. - The text for the home link in breadcrumb navigation. ### postsText - Type: `string` - Default: `'Posts'` - Details: The text for the posts list page link. - The text for the posts list page link in the theme's default navigation bar. - The text for the posts list page link in breadcrumb navigation. ### tagText - Type: `string` - Default: `'Tags'` - Details: The text for the tags link. - The text for the tags link in the theme's default navigation bar. - The text for the tags link on blog pages. - The title on the blog tags page. ### categoryText - Type: `string` - Default: `'Categories'` - Details: The text for the categories link. - The text for the categories link in the theme's default navigation bar. - The text for the categories link on blog pages. - The title on the blog categories page. ### archiveText - Type: `string` - Default: `'Archives'` - Details: The text for the archives link. - The text for the archives link in the theme's default navigation bar. - The text for the archives link on blog pages. - The title on the blog archives page. ### archiveTotalText - Type: `string` - Default: `'{count} articles'` - Details: The text for the total article count on the archives page. ### sidebarMenuLabel - Type: `string` - Default: `'Menu'` - Details: The text for the menu option in the navigation bar on mobile devices. ### returnToTopLabel - Type: `string` - Default: `'return to top'` - Details: The text for returning to the top in the navigation bar on mobile devices. ### outlineLabel - Type: `string` - Default: `'On this page'` - Details: The text for the outline title in the navigation bar on mobile devices. ### editLinkText - Type: `string` - Default: `'Edit this page'` - Details: The edit link text. ### latestUpdatedText - Type: `string` - Default: `'Latest Updated'` - Details: The text for "Latest Updated". ### contributorsText - Type: `string` - Default: `'Contributors'` - Details: The text for contributors. ### changelogText - Type: `string` - Default: `'Changelog'` - Details: The text for changelog. ### changelogOnText - Type: `string` - Default: `'On'` - Details: The time text for a single changelog entry. ### changelogButtonText - Type: `string` - Default: `'View All Changelog'` - Details: The button text for changelog. ### copyrightText - Type: `string` - Default: `'Copyright'` - Details: The text for copyright. ### copyrightAuthorText - Type: `string` - Default: `'Copyright Ownership:'` - Details: The text for copyright owner. ### copyrightCreationOriginalText - Type: `string` - Default: `'This article link:'` - Details: The text for "This article link". ### copyrightCreationTranslateText - Type: `string` - Default: `'This article translated from:'` - Details: The text for "This article translated from". ### copyrightCreationReprintText - Type: `string` - Default: `'This article reprint from:'` - Details: The text for "This article reprint from". ### copyrightLicenseText - Type: `string` - Default: `'License under:'` - Details: The text for copyright license. ### prevPageLabel - Type: `string` - Default: `'Previous Page'` - Details: The text for previous page. ### nextPageLabel - Type: `string` - Default: `'Next Page'` - Details: The text for next page. ### notFound - Type: `NotFound | undefined` - Default: `undefined` - Details: 404 page configuration. ```ts interface NotFound { code?: string title?: string quote?: string linkLabel?: string linkText?: string } ```