mirror of
https://github.com/pengzhanbo/vuepress-theme-plume.git
synced 2026-04-23 10:58:13 +08:00
134 lines
95 KiB
JavaScript
134 lines
95 KiB
JavaScript
import{$ as e,B as t,P as ee,_ as n,f as te,g as r,h as i,l as a}from"./runtime-core.esm-bundler-CZvn3YaB.js";import{t as ne}from"./plugin-vue_export-helper-CxTVcLa7.js";var o=JSON.parse(`{"path":"/guide/locales/","title":"国际化 | 指南","lang":"zh-CN","frontmatter":{"title":"国际化","icon":"material-symbols-light:language","createTime":"2024/03/05 10:01:26","permalink":"/guide/locales/","tags":["指南","i18n"],"description":"本指南将帮助您快速为 VuePress 主题配置多语言支持。通过简单的目录结构和配置调整,即可实现专业的国际化站点。 目录结构规划 首先创建符合多语言要求的目录结构。以下示例展示支持中文、英文和法文的项目布局: 目录结构说明: docs/en/ - 存储英文版本文档 docs/fr/ - 存储法文版本文档 docs/ - 存储默认语言(中文)文档 保持...","head":[["script",{"type":"application/ld+json"},"{\\"@context\\":\\"https://schema.org\\",\\"@type\\":\\"Article\\",\\"headline\\":\\"国际化\\",\\"image\\":[\\"\\"],\\"dateModified\\":\\"2025-10-07T15:13:09.000Z\\",\\"author\\":[]}"],["meta",{"property":"og:url","content":"https://theme-plume.vuejs.press/guide/locales/"}],["meta",{"property":"og:site_name","content":"Plume 主题"}],["meta",{"property":"og:title","content":"国际化"}],["meta",{"property":"og:description","content":"本指南将帮助您快速为 VuePress 主题配置多语言支持。通过简单的目录结构和配置调整,即可实现专业的国际化站点。 目录结构规划 首先创建符合多语言要求的目录结构。以下示例展示支持中文、英文和法文的项目布局: 目录结构说明: docs/en/ - 存储英文版本文档 docs/fr/ - 存储法文版本文档 docs/ - 存储默认语言(中文)文档 保持..."}],["meta",{"property":"og:type","content":"article"}],["meta",{"property":"og:locale","content":"zh-CN"}],["meta",{"property":"og:locale:alternate","content":"en-US"}],["meta",{"property":"og:updated_time","content":"2025-10-07T15:13:09.000Z"}],["meta",{"property":"article:tag","content":"i18n"}],["meta",{"property":"article:tag","content":"指南"}],["meta",{"property":"article:modified_time","content":"2025-10-07T15:13:09.000Z"}],["link",{"rel":"alternate","hreflang":"en-us","href":"https://theme-plume.vuejs.press/en/guide/locales/"}]]},"readingTime":{"minutes":2.89,"words":867},"git":{"createdTime":1759849989000,"updatedTime":1759849989000,"contributors":[{"name":"pengzhanbo","username":"pengzhanbo","email":"volodymyr@foxmail.com","commits":1,"avatar":"https://avatars.githubusercontent.com/pengzhanbo?v=4","url":"https://github.com/pengzhanbo"}],"changelog":[{"hash":"4d2361a7046214fe0f4e4af01831107fd00e38ad","time":1759849989000,"email":"volodymyr@foxmail.com","author":"pengzhanbo","message":"feat(theme)!: add collections support (#704)"}]},"autoDesc":true,"filePathRelative":"guide/quick-start/locales.md","headers":[],"bulletin":false}`),re={name:`locales.md`},ie={class:`vp-file-tree`},ae={class:`code-block-title`,"data-title":`.vuepress/config.ts`},s={class:`code-block-title-bar`},c={class:`title`},l={class:`language-ts`,"data-highlighter":`shiki`,"data-ext":`ts`,style:{"--shiki-light":`#393a34`,"--shiki-dark":`#dbd7caee`,"--shiki-light-bg":`#ffffff`,"--shiki-dark-bg":`#121212`}},u={class:`shiki shiki-themes vitesse-light vitesse-dark has-diff vp-code twoslash lsp`},d={class:`language-ts`},f={class:`line`},p={style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},m={class:`line`},h={style:{"--shiki-light":`#59873A`,"--shiki-dark":`#80A665`}},g={class:`line diff add`},_={style:{"--shiki-light":`#998418`,"--shiki-dark":`#B8A965`}},v={class:`line`},y={style:{"--shiki-light":`#998418`,"--shiki-dark":`#B8A965`}},b={class:`line`},x={style:{"--shiki-light":`#998418`,"--shiki-dark":`#B8A965`}},S={style:{"--shiki-light":`#998418`,"--shiki-dark":`#B8A965`}},C={class:`code-block-title`,"data-title":`.vuepress/config.ts`},w={class:`code-block-title-bar`},T={class:`title`},E={class:`language-ts`,"data-highlighter":`shiki`,"data-ext":`ts`,style:{"--shiki-light":`#393a34`,"--shiki-dark":`#dbd7caee`,"--shiki-light-bg":`#ffffff`,"--shiki-dark-bg":`#121212`}},D={class:`shiki shiki-themes vitesse-light vitesse-dark has-diff vp-code twoslash lsp`},O={class:`language-ts`},k={class:`line`},A={style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},j={class:`line`},M={style:{"--shiki-light":`#59873A`,"--shiki-dark":`#80A665`}},N={class:`line`},P={style:{"--shiki-light":`#998418`,"--shiki-dark":`#B8A965`}},F={class:`line`},I={style:{"--shiki-light":`#998418`,"--shiki-dark":`#B8A965`}},L={class:`line`},R={style:{"--shiki-light":`#998418`,"--shiki-dark":`#B8A965`}},z={style:{"--shiki-light":`#998418`,"--shiki-dark":`#B8A965`}},B={class:`line diff add`},V={style:{"--shiki-light":`#998418`,"--shiki-dark":`#B8A965`}},H={style:{"--shiki-light":`#998418`,"--shiki-dark":`#B8A965`}},U={class:`line diff add`},W={style:{"--shiki-light":`#998418`,"--shiki-dark":`#B8A965`}},G={style:{"--shiki-light":`#998418`,"--shiki-dark":`#B8A965`}},K={class:`code-block-title`,"data-title":`.vuepress/config.ts`},q={class:`code-block-title-bar`},J={class:`title`},oe={class:`language-ts`,"data-highlighter":`shiki`,"data-ext":`ts`,style:{"--shiki-light":`#393a34`,"--shiki-dark":`#dbd7caee`,"--shiki-light-bg":`#ffffff`,"--shiki-dark-bg":`#121212`}},se={class:`shiki shiki-themes vitesse-light vitesse-dark has-focused-lines vp-code twoslash lsp`},ce={class:`language-ts`},le={class:`line`},ue={style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},de={class:`line`},fe={style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},pe={class:`line`},me={style:{"--shiki-light":`#59873A`,"--shiki-dark":`#80A665`}},he={class:`line has-focus`},ge={style:{"--shiki-light":`#998418`,"--shiki-dark":`#B8A965`}},_e={class:`line has-focus`},ve={style:{"--shiki-light":`#998418`,"--shiki-dark":`#B8A965`}},ye={class:`line has-focus`},be={style:{"--shiki-light":`#998418`,"--shiki-dark":`#B8A965`}},xe={style:{"--shiki-light":`#998418`,"--shiki-dark":`#B8A965`}},Se={class:`line has-focus`},Ce={style:{"--shiki-light":`#998418`,"--shiki-dark":`#B8A965`}},we={style:{"--shiki-light":`#998418`,"--shiki-dark":`#B8A965`}},Te={class:`line has-focus`},Ee={style:{"--shiki-light":`#998418`,"--shiki-dark":`#B8A965`}},De={style:{"--shiki-light":`#998418`,"--shiki-dark":`#B8A965`}},Oe={class:`line`},ke={style:{"--shiki-light":`#998418`,"--shiki-dark":`#B8A965`}},Ae={style:{"--shiki-light":`#59873A`,"--shiki-dark":`#80A665`}},je={class:`line has-focus`},Me={style:{"--shiki-light":`#998418`,"--shiki-dark":`#B8A965`}},Ne={class:`line has-focus`},Pe={style:{"--shiki-light":`#998418`,"--shiki-dark":`#B8A965`}},Fe={class:`line has-focus`},Ie={style:{"--shiki-light":`#998418`,"--shiki-dark":`#B8A965`}},Le={class:`line has-focus`},Re={style:{"--shiki-light":`#998418`,"--shiki-dark":`#B8A965`}},ze={style:{"--shiki-light":`#998418`,"--shiki-dark":`#B8A965`}},Be={class:`line has-focus`},Ve={style:{"--shiki-light":`#998418`,"--shiki-dark":`#B8A965`}},He={style:{"--shiki-light":`#998418`,"--shiki-dark":`#B8A965`}},Ue={class:`line has-focus`},We={style:{"--shiki-light":`#998418`,"--shiki-dark":`#B8A965`}},Ge={class:`line has-focus`},Ke={style:{"--shiki-light":`#998418`,"--shiki-dark":`#B8A965`}},qe={class:`line has-focus`},Je={style:{"--shiki-light":`#998418`,"--shiki-dark":`#B8A965`}},Ye={style:{"--shiki-light":`#998418`,"--shiki-dark":`#B8A965`}},Xe={class:`line has-focus`},Ze={style:{"--shiki-light":`#998418`,"--shiki-dark":`#B8A965`}},Qe={style:{"--shiki-light":`#998418`,"--shiki-dark":`#B8A965`}},$e={class:`line has-focus`},et={style:{"--shiki-light":`#998418`,"--shiki-dark":`#B8A965`}},tt={class:`line has-focus`},nt={style:{"--shiki-light":`#998418`,"--shiki-dark":`#B8A965`}},rt={class:`line has-focus`},it={style:{"--shiki-light":`#998418`,"--shiki-dark":`#B8A965`}},at={style:{"--shiki-light":`#998418`,"--shiki-dark":`#B8A965`}},Y={class:`line has-focus`},ot={style:{"--shiki-light":`#998418`,"--shiki-dark":`#B8A965`}},st={style:{"--shiki-light":`#998418`,"--shiki-dark":`#B8A965`}};function ct(ne,o,re,ct,lt,ut){let dt=t(`VPCopyButton`),X=t(`VPIcon`),Z=t(`FileTreeNode`),Q=t(`v-menu`),$=t(`VPLink`);return ee(),te(`div`,null,[o[279]||=a(`p`,null,`本指南将帮助您快速为 VuePress 主题配置多语言支持。通过简单的目录结构和配置调整,即可实现专业的国际化站点。`,-1),o[280]||=a(`h2`,{id:`目录结构规划`,tabindex:`-1`},[a(`a`,{class:`header-anchor`,href:`#目录结构规划`},[a(`span`,null,`目录结构规划`)])],-1),o[281]||=a(`p`,null,`首先创建符合多语言要求的目录结构。以下示例展示支持中文、英文和法文的项目布局:`,-1),a(`div`,ie,[n(dt,{text:`eJzT43o0ZcqjKQ1ApJCSn1zMpQAEj6bMgQql5kEFmlCE0/Lz9XJTUKRghgS5Orr4uiJk4VqKqGYSshYMxQBV11b7`,encode:``,"aria-label":`复制`,"data-copied":`已复制`}),n(Z,{expanded:``,type:`folder`,filename:`docs`,level:0},{icon:e(()=>[n(X,{provider:`iconify`,name:`vscode-icons:folder-type-docs`})]),default:e(()=>[n(Z,{expanded:``,focus:``,type:`folder`,filename:`en`,level:1},{icon:e(()=>[n(X,{provider:`iconify`,name:`vscode-icons:default-folder`})]),comment:e(()=>[...o[0]||=[r(`# 英文文档目录`,-1)]]),default:e(()=>[n(Z,{type:`file`,filename:`foo.md`,level:2},{icon:e(()=>[n(X,{provider:`iconify`,name:`vscode-icons:file-type-markdown`})]),_:1}),n(Z,{type:`file`,filename:`README.md`,level:2},{icon:e(()=>[n(X,{provider:`iconify`,name:`flat-color-icons:info`})]),comment:e(()=>[...o[1]||=[r(`# 英文首页`,-1)]]),_:1})]),_:1}),n(Z,{expanded:``,focus:``,type:`folder`,filename:`fr`,level:1},{icon:e(()=>[n(X,{provider:`iconify`,name:`vscode-icons:default-folder`})]),comment:e(()=>[...o[2]||=[r(`# 法文文档目录`,-1)]]),default:e(()=>[n(Z,{type:`file`,filename:`foo.md`,level:2},{icon:e(()=>[n(X,{provider:`iconify`,name:`vscode-icons:file-type-markdown`})]),_:1}),n(Z,{type:`file`,filename:`README.md`,level:2},{icon:e(()=>[n(X,{provider:`iconify`,name:`flat-color-icons:info`})]),comment:e(()=>[...o[3]||=[r(`# 法文首页`,-1)]]),_:1})]),_:1}),n(Z,{type:`file`,filename:`foo.md`,level:1},{icon:e(()=>[n(X,{provider:`iconify`,name:`vscode-icons:file-type-markdown`})]),_:1}),n(Z,{type:`file`,filename:`README.md`,level:1},{icon:e(()=>[n(X,{provider:`iconify`,name:`flat-color-icons:info`})]),comment:e(()=>[...o[4]||=[r(`# 中文首页`,-1)]]),_:1})]),_:1})]),o[282]||=i(`<p><strong>目录结构说明</strong>:</p><ul><li><code>docs/en/</code> - 存储英文版本文档</li><li><code>docs/fr/</code> - 存储法文版本文档</li><li><code>docs/</code> - 存储默认语言(中文)文档</li></ul><div class="hint-container important"><p class="hint-container-title">保持文件结构一致性</p><p>在不同语言目录中,请保持相同的文件名和目录结构。这确保主题能够在语言切换时正确导航到对应语言的文档版本。</p></div><h2 id="vuepress-基础配置" tabindex="-1"><a class="header-anchor" href="#vuepress-基础配置"><span>VuePress 基础配置</span></a></h2><h3 id="设置默认语言" tabindex="-1"><a class="header-anchor" href="#设置默认语言"><span>设置默认语言</span></a></h3><p>在配置文件 <code>.vuepress/config.ts</code> 中声明默认语言:</p>`,6),a(`div`,ae,[a(`div`,s,[a(`span`,c,[n(X,{provider:`iconify`,name:`vscode-icons:file-type-typescript`}),o[5]||=r(`.vuepress/config.ts`,-1)])]),a(`div`,l,[a(`pre`,u,[a(`code`,d,[a(`span`,f,[o[8]||=a(`span`,{style:{"--shiki-light":`#1E754F`,"--shiki-dark":`#4D9375`}},`import`,-1),o[9]||=a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},` {`,-1),o[10]||=a(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},` `,-1),a(`span`,p,[n(Q,{class:`twoslash-hover`,"popper-class":`shiki twoslash-floating vp-copy-ignore vp-code`,theme:`twoslash`},{popper:e(({})=>[...o[6]||=[a(`span`,{class:`twoslash-popup-container vp-copy-ignore`},[a(`code`,{class:`twoslash-popup-code`},[a(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},`const `),a(`span`,{style:{"--shiki-light":`#59873A`,"--shiki-dark":`#80A665`}},`defineUserConfig`),a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`: (`),a(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},`config`),a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`: `),a(`span`,{style:{"--shiki-light":`#2E8F82`,"--shiki-dark":`#5DA994`}},`UserConfig`),a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`) => `),a(`span`,{style:{"--shiki-light":`#2E8F82`,"--shiki-dark":`#5DA994`}},`UserConfig`)])],-1)]]),default:e(()=>[o[7]||=a(`span`,null,`defineUserConfig`,-1)]),_:1})]),o[11]||=i(`<span style="--shiki-light:#999999;--shiki-dark:#666666;"> }</span><span style="--shiki-light:#1E754F;--shiki-dark:#4D9375;"> from</span><span style="--shiki-light:#B5695977;--shiki-dark:#C98A7D77;"> '</span><span style="--shiki-light:#B56959;--shiki-dark:#C98A7D;">vuepress</span><span style="--shiki-light:#B5695977;--shiki-dark:#C98A7D77;">'</span>`,5)]),o[36]||=r(`
|
||
`,-1),o[37]||=a(`span`,{class:`line`},null,-1),o[38]||=r(`
|
||
`,-1),a(`span`,m,[o[14]||=a(`span`,{style:{"--shiki-light":`#1E754F`,"--shiki-dark":`#4D9375`}},`export`,-1),o[15]||=a(`span`,{style:{"--shiki-light":`#1E754F`,"--shiki-dark":`#4D9375`}},` default`,-1),o[16]||=a(`span`,{style:{"--shiki-light":`#59873A`,"--shiki-dark":`#80A665`}},` `,-1),a(`span`,h,[n(Q,{class:`twoslash-hover`,"popper-class":`shiki twoslash-floating vp-copy-ignore vp-code`,theme:`twoslash`},{popper:e(({})=>[...o[12]||=[a(`span`,{class:`twoslash-popup-container vp-copy-ignore`},[a(`code`,{class:`twoslash-popup-code`},[a(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},`function`),a(`span`,{style:{"--shiki-light":`#59873A`,"--shiki-dark":`#80A665`}},` defineUserConfig`),a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`(`),a(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},`config`),a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`: `),a(`span`,{style:{"--shiki-light":`#2E8F82`,"--shiki-dark":`#5DA994`}},`UserConfig`),a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`):`),a(`span`,{style:{"--shiki-light":`#2E8F82`,"--shiki-dark":`#5DA994`}},` UserConfig`)])],-1)]]),default:e(()=>[o[13]||=a(`span`,null,`defineUserConfig`,-1)]),_:1})]),o[17]||=a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`({`,-1)]),o[39]||=r(`
|
||
`,-1),o[40]||=a(`span`,{class:`line`},[a(`span`,{style:{"--shiki-light":`#A0ADA0`,"--shiki-dark":`#758575DD`}},` // 设置默认语言代码`)],-1),o[41]||=r(`
|
||
`,-1),a(`span`,g,[o[20]||=a(`span`,{style:{"--shiki-light":`#998418`,"--shiki-dark":`#B8A965`}},` `,-1),a(`span`,_,[n(Q,{class:`twoslash-hover`,"popper-class":`shiki twoslash-floating vp-copy-ignore vp-code`,theme:`twoslash`},{popper:e(({})=>[...o[18]||=[a(`span`,{class:`twoslash-popup-container vp-copy-ignore`},[a(`code`,{class:`twoslash-popup-code`},[a(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},`lang`),a(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},`?:`),a(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},` string`),a(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},` |`),a(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},` undefined`)]),a(`div`,{class:`twoslash-popup-docs vp-doc`,"vp-content":``},[a(`p`,null,`Language for the site`)]),a(`div`,{class:`twoslash-popup-docs twoslash-popup-docs-tags vp-doc`,"vp-content":``},[a(`span`,{class:`twoslash-popup-docs-tag`},[a(`span`,{class:`twoslash-popup-docs-tag-name`},`@default`),a(`span`,{class:`twoslash-popup-docs-tag-value`},`'en-US'`)])])],-1)]]),default:e(()=>[o[19]||=a(`span`,null,`lang`,-1)]),_:1})]),o[21]||=i(`<span style="--shiki-light:#999999;--shiki-dark:#666666;">: </span><span style="--shiki-light:#B5695977;--shiki-dark:#C98A7D77;">'</span><span style="--shiki-light:#B56959;--shiki-dark:#C98A7D;">zh-CN</span><span style="--shiki-light:#B5695977;--shiki-dark:#C98A7D77;">'</span><span style="--shiki-light:#999999;--shiki-dark:#666666;">, </span>`,5)]),o[42]||=r(`
|
||
`,-1),o[43]||=a(`span`,{class:`line`},[a(`span`,{style:{"--shiki-light":`#A0ADA0`,"--shiki-dark":`#758575DD`}},` // 配置多语言支持`)],-1),o[44]||=r(`
|
||
`,-1),a(`span`,v,[o[24]||=a(`span`,{style:{"--shiki-light":`#998418`,"--shiki-dark":`#B8A965`}},` `,-1),a(`span`,y,[n(Q,{class:`twoslash-hover`,"popper-class":`shiki twoslash-floating vp-copy-ignore vp-code`,theme:`twoslash`},{popper:e(({})=>[...o[22]||=[a(`span`,{class:`twoslash-popup-container vp-copy-ignore`},[a(`code`,{class:`twoslash-popup-code`},[a(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},`locales`),a(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},`?:`),a(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},` SiteLocaleConfig`),a(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},` |`),a(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},` undefined`)]),a(`div`,{class:`twoslash-popup-docs vp-doc`,"vp-content":``},[a(`p`,null,`Specify locales for i18n support`),r(`
|
||
`),a(`p`,null,`It will override the root-level site data in different subpath`)]),a(`div`,{class:`twoslash-popup-docs twoslash-popup-docs-tags vp-doc`,"vp-content":``},[a(`span`,{class:`twoslash-popup-docs-tag`},[a(`span`,{class:`twoslash-popup-docs-tag-name`},`@example`),a(`span`,{class:`twoslash-popup-docs-tag-value`},`{
|
||
'/en/': {
|
||
lang: 'en-US',
|
||
title: 'Hello',
|
||
description: 'This will take effect under /en/ subpath',
|
||
},
|
||
'/zh/': {
|
||
lang: 'zh-CN',
|
||
title: '你好',
|
||
description: '它将会在 /zh/ 子路径下生效',
|
||
}
|
||
}`)])])],-1)]]),default:e(()=>[o[23]||=a(`span`,null,`locales`,-1)]),_:1})]),o[25]||=a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`: {`,-1)]),o[45]||=r(`
|
||
`,-1),a(`span`,b,[o[30]||=a(`span`,{style:{"--shiki-light":`#B5695977`,"--shiki-dark":`#C98A7D77`}},` '`,-1),o[31]||=a(`span`,{style:{"--shiki-light":`#B56959`,"--shiki-dark":`#C98A7D`}},`/`,-1),o[32]||=a(`span`,{style:{"--shiki-light":`#B5695977`,"--shiki-dark":`#C98A7D77`}},`'`,-1),o[33]||=a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`: { `,-1),a(`span`,x,[n(Q,{class:`twoslash-hover`,"popper-class":`shiki twoslash-floating vp-copy-ignore vp-code`,theme:`twoslash`},{popper:e(({})=>[...o[26]||=[a(`span`,{class:`twoslash-popup-container vp-copy-ignore`},[a(`code`,{class:`twoslash-popup-code`},[a(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},`lang`),a(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},`?:`),a(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},` string`),a(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},` |`),a(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},` undefined`)]),a(`div`,{class:`twoslash-popup-docs vp-doc`,"vp-content":``},[a(`p`,null,`Language for the site`)]),a(`div`,{class:`twoslash-popup-docs twoslash-popup-docs-tags vp-doc`,"vp-content":``},[a(`span`,{class:`twoslash-popup-docs-tag`},[a(`span`,{class:`twoslash-popup-docs-tag-name`},`@default`),a(`span`,{class:`twoslash-popup-docs-tag-value`},`'en-US'`)])])],-1)]]),default:e(()=>[o[27]||=a(`span`,null,`lang`,-1)]),_:1})]),o[34]||=i(`<span style="--shiki-light:#999999;--shiki-dark:#666666;">: </span><span style="--shiki-light:#B5695977;--shiki-dark:#C98A7D77;">'</span><span style="--shiki-light:#B56959;--shiki-dark:#C98A7D;">zh-CN</span><span style="--shiki-light:#B5695977;--shiki-dark:#C98A7D77;">'</span><span style="--shiki-light:#999999;--shiki-dark:#666666;">, </span>`,5),a(`span`,S,[n(Q,{class:`twoslash-hover`,"popper-class":`shiki twoslash-floating vp-copy-ignore vp-code`,theme:`twoslash`},{popper:e(({})=>[...o[28]||=[a(`span`,{class:`twoslash-popup-container vp-copy-ignore`},[a(`code`,{class:`twoslash-popup-code`},[a(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},`title`),a(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},`?:`),a(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},` string`),a(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},` |`),a(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},` undefined`)]),a(`div`,{class:`twoslash-popup-docs vp-doc`,"vp-content":``},[a(`p`,null,`Title for the site`)]),a(`div`,{class:`twoslash-popup-docs twoslash-popup-docs-tags vp-doc`,"vp-content":``},[a(`span`,{class:`twoslash-popup-docs-tag`},[a(`span`,{class:`twoslash-popup-docs-tag-name`},`@default`),a(`span`,{class:`twoslash-popup-docs-tag-value`},`''`)])])],-1)]]),default:e(()=>[o[29]||=a(`span`,null,`title`,-1)]),_:1})]),o[35]||=i(`<span style="--shiki-light:#999999;--shiki-dark:#666666;">: </span><span style="--shiki-light:#B5695977;--shiki-dark:#C98A7D77;">'</span><span style="--shiki-light:#B56959;--shiki-dark:#C98A7D;">博客</span><span style="--shiki-light:#B5695977;--shiki-dark:#C98A7D77;">'</span><span style="--shiki-light:#999999;--shiki-dark:#666666;"> }, </span><span style="--shiki-light:#A0ADA0;--shiki-dark:#758575DD;">// 简体中文作为默认语言</span>`,6)]),o[46]||=r(`
|
||
`,-1),o[47]||=a(`span`,{class:`line`},[a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},` }`)],-1),o[48]||=r(`
|
||
`,-1),o[49]||=a(`span`,{class:`line`},[a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`})`)],-1)])])])]),o[283]||=a(`h3`,{id:`添加其他语言支持`,tabindex:`-1`},[a(`a`,{class:`header-anchor`,href:`#添加其他语言支持`},[a(`span`,null,`添加其他语言支持`)])],-1),o[284]||=a(`p`,null,[r(`扩展 `),a(`code`,null,`locales`),r(` 配置来支持更多语言:`)],-1),a(`div`,C,[a(`div`,w,[a(`span`,T,[n(X,{provider:`iconify`,name:`vscode-icons:file-type-typescript`}),o[50]||=r(`.vuepress/config.ts`,-1)])]),a(`div`,E,[a(`pre`,D,[a(`code`,O,[a(`span`,k,[o[53]||=a(`span`,{style:{"--shiki-light":`#1E754F`,"--shiki-dark":`#4D9375`}},`import`,-1),o[54]||=a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},` {`,-1),o[55]||=a(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},` `,-1),a(`span`,A,[n(Q,{class:`twoslash-hover`,"popper-class":`shiki twoslash-floating vp-copy-ignore vp-code`,theme:`twoslash`},{popper:e(({})=>[...o[51]||=[a(`span`,{class:`twoslash-popup-container vp-copy-ignore`},[a(`code`,{class:`twoslash-popup-code`},[a(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},`const `),a(`span`,{style:{"--shiki-light":`#59873A`,"--shiki-dark":`#80A665`}},`defineUserConfig`),a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`: (`),a(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},`config`),a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`: `),a(`span`,{style:{"--shiki-light":`#2E8F82`,"--shiki-dark":`#5DA994`}},`UserConfig`),a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`) => `),a(`span`,{style:{"--shiki-light":`#2E8F82`,"--shiki-dark":`#5DA994`}},`UserConfig`)])],-1)]]),default:e(()=>[o[52]||=a(`span`,null,`defineUserConfig`,-1)]),_:1})]),o[56]||=i(`<span style="--shiki-light:#999999;--shiki-dark:#666666;"> }</span><span style="--shiki-light:#1E754F;--shiki-dark:#4D9375;"> from</span><span style="--shiki-light:#B5695977;--shiki-dark:#C98A7D77;"> '</span><span style="--shiki-light:#B56959;--shiki-dark:#C98A7D;">vuepress</span><span style="--shiki-light:#B5695977;--shiki-dark:#C98A7D77;">'</span>`,5)]),o[101]||=r(`
|
||
`,-1),o[102]||=a(`span`,{class:`line`},null,-1),o[103]||=r(`
|
||
`,-1),a(`span`,j,[o[59]||=a(`span`,{style:{"--shiki-light":`#1E754F`,"--shiki-dark":`#4D9375`}},`export`,-1),o[60]||=a(`span`,{style:{"--shiki-light":`#1E754F`,"--shiki-dark":`#4D9375`}},` default`,-1),o[61]||=a(`span`,{style:{"--shiki-light":`#59873A`,"--shiki-dark":`#80A665`}},` `,-1),a(`span`,M,[n(Q,{class:`twoslash-hover`,"popper-class":`shiki twoslash-floating vp-copy-ignore vp-code`,theme:`twoslash`},{popper:e(({})=>[...o[57]||=[a(`span`,{class:`twoslash-popup-container vp-copy-ignore`},[a(`code`,{class:`twoslash-popup-code`},[a(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},`function`),a(`span`,{style:{"--shiki-light":`#59873A`,"--shiki-dark":`#80A665`}},` defineUserConfig`),a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`(`),a(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},`config`),a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`: `),a(`span`,{style:{"--shiki-light":`#2E8F82`,"--shiki-dark":`#5DA994`}},`UserConfig`),a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`):`),a(`span`,{style:{"--shiki-light":`#2E8F82`,"--shiki-dark":`#5DA994`}},` UserConfig`)])],-1)]]),default:e(()=>[o[58]||=a(`span`,null,`defineUserConfig`,-1)]),_:1})]),o[62]||=a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`({`,-1)]),o[104]||=r(`
|
||
`,-1),a(`span`,N,[o[65]||=a(`span`,{style:{"--shiki-light":`#998418`,"--shiki-dark":`#B8A965`}},` `,-1),a(`span`,P,[n(Q,{class:`twoslash-hover`,"popper-class":`shiki twoslash-floating vp-copy-ignore vp-code`,theme:`twoslash`},{popper:e(({})=>[...o[63]||=[a(`span`,{class:`twoslash-popup-container vp-copy-ignore`},[a(`code`,{class:`twoslash-popup-code`},[a(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},`lang`),a(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},`?:`),a(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},` string`),a(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},` |`),a(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},` undefined`)]),a(`div`,{class:`twoslash-popup-docs vp-doc`,"vp-content":``},[a(`p`,null,`Language for the site`)]),a(`div`,{class:`twoslash-popup-docs twoslash-popup-docs-tags vp-doc`,"vp-content":``},[a(`span`,{class:`twoslash-popup-docs-tag`},[a(`span`,{class:`twoslash-popup-docs-tag-name`},`@default`),a(`span`,{class:`twoslash-popup-docs-tag-value`},`'en-US'`)])])],-1)]]),default:e(()=>[o[64]||=a(`span`,null,`lang`,-1)]),_:1})]),o[66]||=i(`<span style="--shiki-light:#999999;--shiki-dark:#666666;">: </span><span style="--shiki-light:#B5695977;--shiki-dark:#C98A7D77;">'</span><span style="--shiki-light:#B56959;--shiki-dark:#C98A7D;">zh-CN</span><span style="--shiki-light:#B5695977;--shiki-dark:#C98A7D77;">'</span><span style="--shiki-light:#999999;--shiki-dark:#666666;">,</span>`,5)]),o[105]||=r(`
|
||
`,-1),a(`span`,F,[o[69]||=a(`span`,{style:{"--shiki-light":`#998418`,"--shiki-dark":`#B8A965`}},` `,-1),a(`span`,I,[n(Q,{class:`twoslash-hover`,"popper-class":`shiki twoslash-floating vp-copy-ignore vp-code`,theme:`twoslash`},{popper:e(({})=>[...o[67]||=[a(`span`,{class:`twoslash-popup-container vp-copy-ignore`},[a(`code`,{class:`twoslash-popup-code`},[a(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},`locales`),a(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},`?:`),a(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},` SiteLocaleConfig`),a(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},` |`),a(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},` undefined`)]),a(`div`,{class:`twoslash-popup-docs vp-doc`,"vp-content":``},[a(`p`,null,`Specify locales for i18n support`),r(`
|
||
`),a(`p`,null,`It will override the root-level site data in different subpath`)]),a(`div`,{class:`twoslash-popup-docs twoslash-popup-docs-tags vp-doc`,"vp-content":``},[a(`span`,{class:`twoslash-popup-docs-tag`},[a(`span`,{class:`twoslash-popup-docs-tag-name`},`@example`),a(`span`,{class:`twoslash-popup-docs-tag-value`},`{
|
||
'/en/': {
|
||
lang: 'en-US',
|
||
title: 'Hello',
|
||
description: 'This will take effect under /en/ subpath',
|
||
},
|
||
'/zh/': {
|
||
lang: 'zh-CN',
|
||
title: '你好',
|
||
description: '它将会在 /zh/ 子路径下生效',
|
||
}
|
||
}`)])])],-1)]]),default:e(()=>[o[68]||=a(`span`,null,`locales`,-1)]),_:1})]),o[70]||=a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`: {`,-1)]),o[106]||=r(`
|
||
`,-1),a(`span`,L,[o[75]||=a(`span`,{style:{"--shiki-light":`#B5695977`,"--shiki-dark":`#C98A7D77`}},` '`,-1),o[76]||=a(`span`,{style:{"--shiki-light":`#B56959`,"--shiki-dark":`#C98A7D`}},`/`,-1),o[77]||=a(`span`,{style:{"--shiki-light":`#B5695977`,"--shiki-dark":`#C98A7D77`}},`'`,-1),o[78]||=a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`: { `,-1),a(`span`,R,[n(Q,{class:`twoslash-hover`,"popper-class":`shiki twoslash-floating vp-copy-ignore vp-code`,theme:`twoslash`},{popper:e(({})=>[...o[71]||=[a(`span`,{class:`twoslash-popup-container vp-copy-ignore`},[a(`code`,{class:`twoslash-popup-code`},[a(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},`lang`),a(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},`?:`),a(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},` string`),a(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},` |`),a(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},` undefined`)]),a(`div`,{class:`twoslash-popup-docs vp-doc`,"vp-content":``},[a(`p`,null,`Language for the site`)]),a(`div`,{class:`twoslash-popup-docs twoslash-popup-docs-tags vp-doc`,"vp-content":``},[a(`span`,{class:`twoslash-popup-docs-tag`},[a(`span`,{class:`twoslash-popup-docs-tag-name`},`@default`),a(`span`,{class:`twoslash-popup-docs-tag-value`},`'en-US'`)])])],-1)]]),default:e(()=>[o[72]||=a(`span`,null,`lang`,-1)]),_:1})]),o[79]||=i(`<span style="--shiki-light:#999999;--shiki-dark:#666666;">: </span><span style="--shiki-light:#B5695977;--shiki-dark:#C98A7D77;">'</span><span style="--shiki-light:#B56959;--shiki-dark:#C98A7D;">zh-CN</span><span style="--shiki-light:#B5695977;--shiki-dark:#C98A7D77;">'</span><span style="--shiki-light:#999999;--shiki-dark:#666666;">, </span>`,5),a(`span`,z,[n(Q,{class:`twoslash-hover`,"popper-class":`shiki twoslash-floating vp-copy-ignore vp-code`,theme:`twoslash`},{popper:e(({})=>[...o[73]||=[a(`span`,{class:`twoslash-popup-container vp-copy-ignore`},[a(`code`,{class:`twoslash-popup-code`},[a(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},`title`),a(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},`?:`),a(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},` string`),a(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},` |`),a(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},` undefined`)]),a(`div`,{class:`twoslash-popup-docs vp-doc`,"vp-content":``},[a(`p`,null,`Title for the site`)]),a(`div`,{class:`twoslash-popup-docs twoslash-popup-docs-tags vp-doc`,"vp-content":``},[a(`span`,{class:`twoslash-popup-docs-tag`},[a(`span`,{class:`twoslash-popup-docs-tag-name`},`@default`),a(`span`,{class:`twoslash-popup-docs-tag-value`},`''`)])])],-1)]]),default:e(()=>[o[74]||=a(`span`,null,`title`,-1)]),_:1})]),o[80]||=i(`<span style="--shiki-light:#999999;--shiki-dark:#666666;">: </span><span style="--shiki-light:#B5695977;--shiki-dark:#C98A7D77;">'</span><span style="--shiki-light:#B56959;--shiki-dark:#C98A7D;">博客</span><span style="--shiki-light:#B5695977;--shiki-dark:#C98A7D77;">'</span><span style="--shiki-light:#999999;--shiki-dark:#666666;"> }, </span><span style="--shiki-light:#A0ADA0;--shiki-dark:#758575DD;">// 简体中文</span>`,6)]),o[107]||=r(`
|
||
`,-1),a(`span`,B,[o[85]||=a(`span`,{style:{"--shiki-light":`#B5695977`,"--shiki-dark":`#C98A7D77`}},` '`,-1),o[86]||=a(`span`,{style:{"--shiki-light":`#B56959`,"--shiki-dark":`#C98A7D`}},`/en/`,-1),o[87]||=a(`span`,{style:{"--shiki-light":`#B5695977`,"--shiki-dark":`#C98A7D77`}},`'`,-1),o[88]||=a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`: { `,-1),a(`span`,V,[n(Q,{class:`twoslash-hover`,"popper-class":`shiki twoslash-floating vp-copy-ignore vp-code`,theme:`twoslash`},{popper:e(({})=>[...o[81]||=[a(`span`,{class:`twoslash-popup-container vp-copy-ignore`},[a(`code`,{class:`twoslash-popup-code`},[a(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},`lang`),a(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},`?:`),a(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},` string`),a(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},` |`),a(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},` undefined`)]),a(`div`,{class:`twoslash-popup-docs vp-doc`,"vp-content":``},[a(`p`,null,`Language for the site`)]),a(`div`,{class:`twoslash-popup-docs twoslash-popup-docs-tags vp-doc`,"vp-content":``},[a(`span`,{class:`twoslash-popup-docs-tag`},[a(`span`,{class:`twoslash-popup-docs-tag-name`},`@default`),a(`span`,{class:`twoslash-popup-docs-tag-value`},`'en-US'`)])])],-1)]]),default:e(()=>[o[82]||=a(`span`,null,`lang`,-1)]),_:1})]),o[89]||=i(`<span style="--shiki-light:#999999;--shiki-dark:#666666;">: </span><span style="--shiki-light:#B5695977;--shiki-dark:#C98A7D77;">'</span><span style="--shiki-light:#B56959;--shiki-dark:#C98A7D;">en-US</span><span style="--shiki-light:#B5695977;--shiki-dark:#C98A7D77;">'</span><span style="--shiki-light:#999999;--shiki-dark:#666666;">, </span>`,5),a(`span`,H,[n(Q,{class:`twoslash-hover`,"popper-class":`shiki twoslash-floating vp-copy-ignore vp-code`,theme:`twoslash`},{popper:e(({})=>[...o[83]||=[a(`span`,{class:`twoslash-popup-container vp-copy-ignore`},[a(`code`,{class:`twoslash-popup-code`},[a(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},`title`),a(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},`?:`),a(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},` string`),a(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},` |`),a(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},` undefined`)]),a(`div`,{class:`twoslash-popup-docs vp-doc`,"vp-content":``},[a(`p`,null,`Title for the site`)]),a(`div`,{class:`twoslash-popup-docs twoslash-popup-docs-tags vp-doc`,"vp-content":``},[a(`span`,{class:`twoslash-popup-docs-tag`},[a(`span`,{class:`twoslash-popup-docs-tag-name`},`@default`),a(`span`,{class:`twoslash-popup-docs-tag-value`},`''`)])])],-1)]]),default:e(()=>[o[84]||=a(`span`,null,`title`,-1)]),_:1})]),o[90]||=i(`<span style="--shiki-light:#999999;--shiki-dark:#666666;">: </span><span style="--shiki-light:#B5695977;--shiki-dark:#C98A7D77;">'</span><span style="--shiki-light:#B56959;--shiki-dark:#C98A7D;">Blog</span><span style="--shiki-light:#B5695977;--shiki-dark:#C98A7D77;">'</span><span style="--shiki-light:#999999;--shiki-dark:#666666;"> }, </span><span style="--shiki-light:#A0ADA0;--shiki-dark:#758575DD;">// 美式英语</span>`,6)]),o[108]||=r(`
|
||
`,-1),a(`span`,U,[o[95]||=a(`span`,{style:{"--shiki-light":`#B5695977`,"--shiki-dark":`#C98A7D77`}},` '`,-1),o[96]||=a(`span`,{style:{"--shiki-light":`#B56959`,"--shiki-dark":`#C98A7D`}},`/fr/`,-1),o[97]||=a(`span`,{style:{"--shiki-light":`#B5695977`,"--shiki-dark":`#C98A7D77`}},`'`,-1),o[98]||=a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`: { `,-1),a(`span`,W,[n(Q,{class:`twoslash-hover`,"popper-class":`shiki twoslash-floating vp-copy-ignore vp-code`,theme:`twoslash`},{popper:e(({})=>[...o[91]||=[a(`span`,{class:`twoslash-popup-container vp-copy-ignore`},[a(`code`,{class:`twoslash-popup-code`},[a(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},`lang`),a(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},`?:`),a(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},` string`),a(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},` |`),a(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},` undefined`)]),a(`div`,{class:`twoslash-popup-docs vp-doc`,"vp-content":``},[a(`p`,null,`Language for the site`)]),a(`div`,{class:`twoslash-popup-docs twoslash-popup-docs-tags vp-doc`,"vp-content":``},[a(`span`,{class:`twoslash-popup-docs-tag`},[a(`span`,{class:`twoslash-popup-docs-tag-name`},`@default`),a(`span`,{class:`twoslash-popup-docs-tag-value`},`'en-US'`)])])],-1)]]),default:e(()=>[o[92]||=a(`span`,null,`lang`,-1)]),_:1})]),o[99]||=i(`<span style="--shiki-light:#999999;--shiki-dark:#666666;">: </span><span style="--shiki-light:#B5695977;--shiki-dark:#C98A7D77;">'</span><span style="--shiki-light:#B56959;--shiki-dark:#C98A7D;">fr-FR</span><span style="--shiki-light:#B5695977;--shiki-dark:#C98A7D77;">'</span><span style="--shiki-light:#999999;--shiki-dark:#666666;">, </span>`,5),a(`span`,G,[n(Q,{class:`twoslash-hover`,"popper-class":`shiki twoslash-floating vp-copy-ignore vp-code`,theme:`twoslash`},{popper:e(({})=>[...o[93]||=[a(`span`,{class:`twoslash-popup-container vp-copy-ignore`},[a(`code`,{class:`twoslash-popup-code`},[a(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},`title`),a(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},`?:`),a(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},` string`),a(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},` |`),a(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},` undefined`)]),a(`div`,{class:`twoslash-popup-docs vp-doc`,"vp-content":``},[a(`p`,null,`Title for the site`)]),a(`div`,{class:`twoslash-popup-docs twoslash-popup-docs-tags vp-doc`,"vp-content":``},[a(`span`,{class:`twoslash-popup-docs-tag`},[a(`span`,{class:`twoslash-popup-docs-tag-name`},`@default`),a(`span`,{class:`twoslash-popup-docs-tag-value`},`''`)])])],-1)]]),default:e(()=>[o[94]||=a(`span`,null,`title`,-1)]),_:1})]),o[100]||=i(`<span style="--shiki-light:#999999;--shiki-dark:#666666;">: </span><span style="--shiki-light:#B5695977;--shiki-dark:#C98A7D77;">'</span><span style="--shiki-light:#B56959;--shiki-dark:#C98A7D;">Le blog</span><span style="--shiki-light:#B5695977;--shiki-dark:#C98A7D77;">'</span><span style="--shiki-light:#999999;--shiki-dark:#666666;"> }, </span><span style="--shiki-light:#A0ADA0;--shiki-dark:#758575DD;">// 法语</span>`,6)]),o[109]||=r(`
|
||
`,-1),o[110]||=a(`span`,{class:`line`},[a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},` }`)],-1),o[111]||=r(`
|
||
`,-1),o[112]||=a(`span`,{class:`line`},[a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`})`)],-1)])])])]),o[285]||=i(`<p><strong>配置要点</strong>:</p><ul><li><code>locales</code> 的键名(如 <code>/en/</code>)对应文档目录中的语言文件夹名称</li><li>这些键名同时作为各语言页面的访问路径前缀</li><li>每个语言必须设置正确的 <code>lang</code> 属性,即使只使用单一语言</li></ul><div class="hint-container tip"><p class="hint-container-title">语言代码规范</p><ul><li><strong>路径键名</strong>:遵循 <a href="https://zh.wikipedia.org/wiki/ISO_639-1" target="_blank" rel="noopener noreferrer">ISO 639</a> 标准(如英语使用 <code>/en/</code>)</li><li><strong>语言代码</strong>:使用 <a href="https://www.ietf.org/rfc/bcp/bcp47.txt" target="_blank" rel="noopener noreferrer">BCP47</a> 标准格式(如英语使用 <code>en-US</code>)</li></ul></div><h2 id="主题多语言配置" tabindex="-1"><a class="header-anchor" href="#主题多语言配置"><span>主题多语言配置</span></a></h2><p>在主题配置中通过 <code>locales</code> 字段为每种语言定制化界面元素:</p>`,5),a(`div`,K,[a(`div`,q,[a(`span`,J,[n(X,{provider:`iconify`,name:`vscode-icons:file-type-typescript`}),o[113]||=r(`.vuepress/config.ts`,-1)])]),a(`div`,oe,[a(`pre`,se,[a(`code`,ce,[a(`span`,le,[o[116]||=a(`span`,{style:{"--shiki-light":`#1E754F`,"--shiki-dark":`#4D9375`}},`import`,-1),o[117]||=a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},` {`,-1),o[118]||=a(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},` `,-1),a(`span`,ue,[n(Q,{class:`twoslash-hover`,"popper-class":`shiki twoslash-floating vp-copy-ignore vp-code`,theme:`twoslash`},{popper:e(({})=>[...o[114]||=[a(`span`,{class:`twoslash-popup-container vp-copy-ignore`},[a(`code`,{class:`twoslash-popup-code`},[a(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},`const `),a(`span`,{style:{"--shiki-light":`#59873A`,"--shiki-dark":`#80A665`}},`defineUserConfig`),a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`: (`),a(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},`config`),a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`: `),a(`span`,{style:{"--shiki-light":`#2E8F82`,"--shiki-dark":`#5DA994`}},`UserConfig`),a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`) => `),a(`span`,{style:{"--shiki-light":`#2E8F82`,"--shiki-dark":`#5DA994`}},`UserConfig`)])],-1)]]),default:e(()=>[o[115]||=a(`span`,null,`defineUserConfig`,-1)]),_:1})]),o[119]||=i(`<span style="--shiki-light:#999999;--shiki-dark:#666666;"> }</span><span style="--shiki-light:#1E754F;--shiki-dark:#4D9375;"> from</span><span style="--shiki-light:#B5695977;--shiki-dark:#C98A7D77;"> '</span><span style="--shiki-light:#B56959;--shiki-dark:#C98A7D;">vuepress</span><span style="--shiki-light:#B5695977;--shiki-dark:#C98A7D77;">'</span>`,5)]),o[247]||=r(`
|
||
`,-1),a(`span`,de,[o[122]||=a(`span`,{style:{"--shiki-light":`#1E754F`,"--shiki-dark":`#4D9375`}},`import`,-1),o[123]||=a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},` {`,-1),o[124]||=a(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},` `,-1),a(`span`,fe,[n(Q,{class:`twoslash-hover`,"popper-class":`shiki twoslash-floating vp-copy-ignore vp-code`,theme:`twoslash`},{popper:e(({})=>[...o[120]||=[a(`span`,{class:`twoslash-popup-container vp-copy-ignore`},[a(`code`,{class:`twoslash-popup-code`},[a(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},`function`),a(`span`,{style:{"--shiki-light":`#59873A`,"--shiki-dark":`#80A665`}},` plumeTheme`),a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`(`),a(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},`options`),a(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},`?`),a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`: `),a(`span`,{style:{"--shiki-light":`#2E8F82`,"--shiki-dark":`#5DA994`}},`ThemeOptions`),a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`):`),a(`span`,{style:{"--shiki-light":`#2E8F82`,"--shiki-dark":`#5DA994`}},` Theme`)]),a(`div`,{class:`twoslash-popup-docs vp-doc`,"vp-content":``},[a(`p`,null,`VuePress Theme Plume`),r(`
|
||
`),a(`p`,null,`VuePress 主题 Plume`)]),a(`div`,{class:`twoslash-popup-docs twoslash-popup-docs-tags vp-doc`,"vp-content":``},[a(`span`,{class:`twoslash-popup-docs-tag`},[a(`span`,{class:`twoslash-popup-docs-tag-name`},`@param`),a(`span`,{class:`twoslash-popup-docs-tag-value`},[a(`code`,null,`options`),r(` Theme options / 主题配置`)])]),a(`span`,{class:`twoslash-popup-docs-tag`},[a(`span`,{class:`twoslash-popup-docs-tag-name`},`@example`),a(`span`,{class:`twoslash-popup-docs-tag-value`},[a(`div`,{class:`language-ts`,"data-ext":`ts`,"data-title":`ts`,"data-highlighter":`shiki`,style:{"--shiki-light":`#393a34`,"--shiki-dark":`#dbd7caee`,"--shiki-light-bg":`#ffffff`,"--shiki-dark-bg":`#121212`}},[a(`pre`,{class:`shiki shiki-themes vitesse-light vitesse-dark`,style:{"--shiki-light":`#393a34`,"--shiki-dark":`#dbd7caee`,"--shiki-light-bg":`#ffffff`,"--shiki-dark-bg":`#121212`},tabindex:`0`},[a(`code`,null,[a(`span`,{class:`line`},[a(`span`,{style:{"--shiki-light":`#1E754F`,"--shiki-dark":`#4D9375`}},`import`),a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},` {`),a(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},` defineUserConfig`),a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},` }`),a(`span`,{style:{"--shiki-light":`#1E754F`,"--shiki-dark":`#4D9375`}},` from`),a(`span`,{style:{"--shiki-light":`#B5695977`,"--shiki-dark":`#C98A7D77`}},` '`),a(`span`,{style:{"--shiki-light":`#B56959`,"--shiki-dark":`#C98A7D`}},`vuepress`),a(`span`,{style:{"--shiki-light":`#B5695977`,"--shiki-dark":`#C98A7D77`}},`'`)]),r(`
|
||
`),a(`span`,{class:`line`},[a(`span`,{style:{"--shiki-light":`#1E754F`,"--shiki-dark":`#4D9375`}},`import`),a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},` {`),a(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},` plumeTheme`),a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},` }`),a(`span`,{style:{"--shiki-light":`#1E754F`,"--shiki-dark":`#4D9375`}},` from`),a(`span`,{style:{"--shiki-light":`#B5695977`,"--shiki-dark":`#C98A7D77`}},` '`),a(`span`,{style:{"--shiki-light":`#B56959`,"--shiki-dark":`#C98A7D`}},`vuepress-theme-plume`),a(`span`,{style:{"--shiki-light":`#B5695977`,"--shiki-dark":`#C98A7D77`}},`'`)]),r(`
|
||
`),a(`span`,{class:`line`}),r(`
|
||
`),a(`span`,{class:`line`},[a(`span`,{style:{"--shiki-light":`#1E754F`,"--shiki-dark":`#4D9375`}},`export`),a(`span`,{style:{"--shiki-light":`#1E754F`,"--shiki-dark":`#4D9375`}},` default`),a(`span`,{style:{"--shiki-light":`#59873A`,"--shiki-dark":`#80A665`}},` defineUserConfig`),a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`({`)]),r(`
|
||
`),a(`span`,{class:`line`},[a(`span`,{style:{"--shiki-light":`#998418`,"--shiki-dark":`#B8A965`}},` theme`),a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`: `),a(`span`,{style:{"--shiki-light":`#59873A`,"--shiki-dark":`#80A665`}},`plumeTheme`),a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`({`)]),r(`
|
||
`),a(`span`,{class:`line`},[a(`span`,{style:{"--shiki-light":`#A0ADA0`,"--shiki-dark":`#758575DD`}},` // ...options`)]),r(`
|
||
`),a(`span`,{class:`line`},[a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},` })`)]),r(`
|
||
`),a(`span`,{class:`line`},[a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`})`)])])])])])])])],-1)]]),default:e(()=>[o[121]||=a(`span`,null,`plumeTheme`,-1)]),_:1})]),o[125]||=i(`<span style="--shiki-light:#999999;--shiki-dark:#666666;"> }</span><span style="--shiki-light:#1E754F;--shiki-dark:#4D9375;"> from</span><span style="--shiki-light:#B5695977;--shiki-dark:#C98A7D77;"> '</span><span style="--shiki-light:#B56959;--shiki-dark:#C98A7D;">vuepress-theme-plume</span><span style="--shiki-light:#B5695977;--shiki-dark:#C98A7D77;">'</span>`,5)]),o[248]||=r(`
|
||
`,-1),o[249]||=a(`span`,{class:`line`},null,-1),o[250]||=r(`
|
||
`,-1),a(`span`,pe,[o[128]||=a(`span`,{style:{"--shiki-light":`#1E754F`,"--shiki-dark":`#4D9375`}},`export`,-1),o[129]||=a(`span`,{style:{"--shiki-light":`#1E754F`,"--shiki-dark":`#4D9375`}},` default`,-1),o[130]||=a(`span`,{style:{"--shiki-light":`#59873A`,"--shiki-dark":`#80A665`}},` `,-1),a(`span`,me,[n(Q,{class:`twoslash-hover`,"popper-class":`shiki twoslash-floating vp-copy-ignore vp-code`,theme:`twoslash`},{popper:e(({})=>[...o[126]||=[a(`span`,{class:`twoslash-popup-container vp-copy-ignore`},[a(`code`,{class:`twoslash-popup-code`},[a(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},`function`),a(`span`,{style:{"--shiki-light":`#59873A`,"--shiki-dark":`#80A665`}},` defineUserConfig`),a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`(`),a(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},`config`),a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`: `),a(`span`,{style:{"--shiki-light":`#2E8F82`,"--shiki-dark":`#5DA994`}},`UserConfig`),a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`):`),a(`span`,{style:{"--shiki-light":`#2E8F82`,"--shiki-dark":`#5DA994`}},` UserConfig`)])],-1)]]),default:e(()=>[o[127]||=a(`span`,null,`defineUserConfig`,-1)]),_:1})]),o[131]||=a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`({`,-1)]),o[251]||=r(`
|
||
`,-1),a(`span`,he,[o[134]||=a(`span`,{style:{"--shiki-light":`#998418`,"--shiki-dark":`#B8A965`}},` `,-1),a(`span`,ge,[n(Q,{class:`twoslash-hover`,"popper-class":`shiki twoslash-floating vp-copy-ignore vp-code`,theme:`twoslash`},{popper:e(({})=>[...o[132]||=[a(`span`,{class:`twoslash-popup-container vp-copy-ignore`},[a(`code`,{class:`twoslash-popup-code`},[a(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},`lang`),a(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},`?:`),a(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},` string`),a(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},` |`),a(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},` undefined`)]),a(`div`,{class:`twoslash-popup-docs vp-doc`,"vp-content":``},[a(`p`,null,`Language for the site`)]),a(`div`,{class:`twoslash-popup-docs twoslash-popup-docs-tags vp-doc`,"vp-content":``},[a(`span`,{class:`twoslash-popup-docs-tag`},[a(`span`,{class:`twoslash-popup-docs-tag-name`},`@default`),a(`span`,{class:`twoslash-popup-docs-tag-value`},`'en-US'`)])])],-1)]]),default:e(()=>[o[133]||=a(`span`,null,`lang`,-1)]),_:1})]),o[135]||=i(`<span style="--shiki-light:#999999;--shiki-dark:#666666;">: </span><span style="--shiki-light:#B5695977;--shiki-dark:#C98A7D77;">'</span><span style="--shiki-light:#B56959;--shiki-dark:#C98A7D;">zh-CN</span><span style="--shiki-light:#B5695977;--shiki-dark:#C98A7D77;">'</span><span style="--shiki-light:#999999;--shiki-dark:#666666;">, </span>`,5)]),o[252]||=r(`
|
||
`,-1),a(`span`,_e,[o[138]||=a(`span`,{style:{"--shiki-light":`#998418`,"--shiki-dark":`#B8A965`}},` `,-1),a(`span`,ve,[n(Q,{class:`twoslash-hover`,"popper-class":`shiki twoslash-floating vp-copy-ignore vp-code`,theme:`twoslash`},{popper:e(({})=>[...o[136]||=[a(`span`,{class:`twoslash-popup-container vp-copy-ignore`},[a(`code`,{class:`twoslash-popup-code`},[a(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},`locales`),a(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},`?:`),a(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},` SiteLocaleConfig`),a(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},` |`),a(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},` undefined`)]),a(`div`,{class:`twoslash-popup-docs vp-doc`,"vp-content":``},[a(`p`,null,`Specify locales for i18n support`),r(`
|
||
`),a(`p`,null,`It will override the root-level site data in different subpath`)]),a(`div`,{class:`twoslash-popup-docs twoslash-popup-docs-tags vp-doc`,"vp-content":``},[a(`span`,{class:`twoslash-popup-docs-tag`},[a(`span`,{class:`twoslash-popup-docs-tag-name`},`@example`),a(`span`,{class:`twoslash-popup-docs-tag-value`},`{
|
||
'/en/': {
|
||
lang: 'en-US',
|
||
title: 'Hello',
|
||
description: 'This will take effect under /en/ subpath',
|
||
},
|
||
'/zh/': {
|
||
lang: 'zh-CN',
|
||
title: '你好',
|
||
description: '它将会在 /zh/ 子路径下生效',
|
||
}
|
||
}`)])])],-1)]]),default:e(()=>[o[137]||=a(`span`,null,`locales`,-1)]),_:1})]),o[139]||=a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`: {`,-1)]),o[253]||=r(`
|
||
`,-1),a(`span`,ye,[o[144]||=a(`span`,{style:{"--shiki-light":`#B5695977`,"--shiki-dark":`#C98A7D77`}},` '`,-1),o[145]||=a(`span`,{style:{"--shiki-light":`#B56959`,"--shiki-dark":`#C98A7D`}},`/`,-1),o[146]||=a(`span`,{style:{"--shiki-light":`#B5695977`,"--shiki-dark":`#C98A7D77`}},`'`,-1),o[147]||=a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`: { `,-1),a(`span`,be,[n(Q,{class:`twoslash-hover`,"popper-class":`shiki twoslash-floating vp-copy-ignore vp-code`,theme:`twoslash`},{popper:e(({})=>[...o[140]||=[a(`span`,{class:`twoslash-popup-container vp-copy-ignore`},[a(`code`,{class:`twoslash-popup-code`},[a(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},`lang`),a(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},`?:`),a(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},` string`),a(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},` |`),a(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},` undefined`)]),a(`div`,{class:`twoslash-popup-docs vp-doc`,"vp-content":``},[a(`p`,null,`Language for the site`)]),a(`div`,{class:`twoslash-popup-docs twoslash-popup-docs-tags vp-doc`,"vp-content":``},[a(`span`,{class:`twoslash-popup-docs-tag`},[a(`span`,{class:`twoslash-popup-docs-tag-name`},`@default`),a(`span`,{class:`twoslash-popup-docs-tag-value`},`'en-US'`)])])],-1)]]),default:e(()=>[o[141]||=a(`span`,null,`lang`,-1)]),_:1})]),o[148]||=i(`<span style="--shiki-light:#999999;--shiki-dark:#666666;">: </span><span style="--shiki-light:#B5695977;--shiki-dark:#C98A7D77;">'</span><span style="--shiki-light:#B56959;--shiki-dark:#C98A7D;">zh-CN</span><span style="--shiki-light:#B5695977;--shiki-dark:#C98A7D77;">'</span><span style="--shiki-light:#999999;--shiki-dark:#666666;">, </span>`,5),a(`span`,xe,[n(Q,{class:`twoslash-hover`,"popper-class":`shiki twoslash-floating vp-copy-ignore vp-code`,theme:`twoslash`},{popper:e(({})=>[...o[142]||=[a(`span`,{class:`twoslash-popup-container vp-copy-ignore`},[a(`code`,{class:`twoslash-popup-code`},[a(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},`title`),a(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},`?:`),a(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},` string`),a(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},` |`),a(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},` undefined`)]),a(`div`,{class:`twoslash-popup-docs vp-doc`,"vp-content":``},[a(`p`,null,`Title for the site`)]),a(`div`,{class:`twoslash-popup-docs twoslash-popup-docs-tags vp-doc`,"vp-content":``},[a(`span`,{class:`twoslash-popup-docs-tag`},[a(`span`,{class:`twoslash-popup-docs-tag-name`},`@default`),a(`span`,{class:`twoslash-popup-docs-tag-value`},`''`)])])],-1)]]),default:e(()=>[o[143]||=a(`span`,null,`title`,-1)]),_:1})]),o[149]||=i(`<span style="--shiki-light:#999999;--shiki-dark:#666666;">: </span><span style="--shiki-light:#B5695977;--shiki-dark:#C98A7D77;">'</span><span style="--shiki-light:#B56959;--shiki-dark:#C98A7D;">博客</span><span style="--shiki-light:#B5695977;--shiki-dark:#C98A7D77;">'</span><span style="--shiki-light:#999999;--shiki-dark:#666666;"> },</span>`,5)]),o[254]||=r(`
|
||
`,-1),a(`span`,Se,[o[154]||=a(`span`,{style:{"--shiki-light":`#B5695977`,"--shiki-dark":`#C98A7D77`}},` '`,-1),o[155]||=a(`span`,{style:{"--shiki-light":`#B56959`,"--shiki-dark":`#C98A7D`}},`/en/`,-1),o[156]||=a(`span`,{style:{"--shiki-light":`#B5695977`,"--shiki-dark":`#C98A7D77`}},`'`,-1),o[157]||=a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`: { `,-1),a(`span`,Ce,[n(Q,{class:`twoslash-hover`,"popper-class":`shiki twoslash-floating vp-copy-ignore vp-code`,theme:`twoslash`},{popper:e(({})=>[...o[150]||=[a(`span`,{class:`twoslash-popup-container vp-copy-ignore`},[a(`code`,{class:`twoslash-popup-code`},[a(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},`lang`),a(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},`?:`),a(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},` string`),a(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},` |`),a(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},` undefined`)]),a(`div`,{class:`twoslash-popup-docs vp-doc`,"vp-content":``},[a(`p`,null,`Language for the site`)]),a(`div`,{class:`twoslash-popup-docs twoslash-popup-docs-tags vp-doc`,"vp-content":``},[a(`span`,{class:`twoslash-popup-docs-tag`},[a(`span`,{class:`twoslash-popup-docs-tag-name`},`@default`),a(`span`,{class:`twoslash-popup-docs-tag-value`},`'en-US'`)])])],-1)]]),default:e(()=>[o[151]||=a(`span`,null,`lang`,-1)]),_:1})]),o[158]||=i(`<span style="--shiki-light:#999999;--shiki-dark:#666666;">: </span><span style="--shiki-light:#B5695977;--shiki-dark:#C98A7D77;">'</span><span style="--shiki-light:#B56959;--shiki-dark:#C98A7D;">en-US</span><span style="--shiki-light:#B5695977;--shiki-dark:#C98A7D77;">'</span><span style="--shiki-light:#999999;--shiki-dark:#666666;">, </span>`,5),a(`span`,we,[n(Q,{class:`twoslash-hover`,"popper-class":`shiki twoslash-floating vp-copy-ignore vp-code`,theme:`twoslash`},{popper:e(({})=>[...o[152]||=[a(`span`,{class:`twoslash-popup-container vp-copy-ignore`},[a(`code`,{class:`twoslash-popup-code`},[a(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},`title`),a(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},`?:`),a(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},` string`),a(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},` |`),a(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},` undefined`)]),a(`div`,{class:`twoslash-popup-docs vp-doc`,"vp-content":``},[a(`p`,null,`Title for the site`)]),a(`div`,{class:`twoslash-popup-docs twoslash-popup-docs-tags vp-doc`,"vp-content":``},[a(`span`,{class:`twoslash-popup-docs-tag`},[a(`span`,{class:`twoslash-popup-docs-tag-name`},`@default`),a(`span`,{class:`twoslash-popup-docs-tag-value`},`''`)])])],-1)]]),default:e(()=>[o[153]||=a(`span`,null,`title`,-1)]),_:1})]),o[159]||=i(`<span style="--shiki-light:#999999;--shiki-dark:#666666;">: </span><span style="--shiki-light:#B5695977;--shiki-dark:#C98A7D77;">'</span><span style="--shiki-light:#B56959;--shiki-dark:#C98A7D;">Blog</span><span style="--shiki-light:#B5695977;--shiki-dark:#C98A7D77;">'</span><span style="--shiki-light:#999999;--shiki-dark:#666666;"> },</span>`,5)]),o[255]||=r(`
|
||
`,-1),a(`span`,Te,[o[164]||=a(`span`,{style:{"--shiki-light":`#B5695977`,"--shiki-dark":`#C98A7D77`}},` '`,-1),o[165]||=a(`span`,{style:{"--shiki-light":`#B56959`,"--shiki-dark":`#C98A7D`}},`/fr/`,-1),o[166]||=a(`span`,{style:{"--shiki-light":`#B5695977`,"--shiki-dark":`#C98A7D77`}},`'`,-1),o[167]||=a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`: { `,-1),a(`span`,Ee,[n(Q,{class:`twoslash-hover`,"popper-class":`shiki twoslash-floating vp-copy-ignore vp-code`,theme:`twoslash`},{popper:e(({})=>[...o[160]||=[a(`span`,{class:`twoslash-popup-container vp-copy-ignore`},[a(`code`,{class:`twoslash-popup-code`},[a(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},`lang`),a(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},`?:`),a(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},` string`),a(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},` |`),a(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},` undefined`)]),a(`div`,{class:`twoslash-popup-docs vp-doc`,"vp-content":``},[a(`p`,null,`Language for the site`)]),a(`div`,{class:`twoslash-popup-docs twoslash-popup-docs-tags vp-doc`,"vp-content":``},[a(`span`,{class:`twoslash-popup-docs-tag`},[a(`span`,{class:`twoslash-popup-docs-tag-name`},`@default`),a(`span`,{class:`twoslash-popup-docs-tag-value`},`'en-US'`)])])],-1)]]),default:e(()=>[o[161]||=a(`span`,null,`lang`,-1)]),_:1})]),o[168]||=i(`<span style="--shiki-light:#999999;--shiki-dark:#666666;">: </span><span style="--shiki-light:#B5695977;--shiki-dark:#C98A7D77;">'</span><span style="--shiki-light:#B56959;--shiki-dark:#C98A7D;">fr-FR</span><span style="--shiki-light:#B5695977;--shiki-dark:#C98A7D77;">'</span><span style="--shiki-light:#999999;--shiki-dark:#666666;">, </span>`,5),a(`span`,De,[n(Q,{class:`twoslash-hover`,"popper-class":`shiki twoslash-floating vp-copy-ignore vp-code`,theme:`twoslash`},{popper:e(({})=>[...o[162]||=[a(`span`,{class:`twoslash-popup-container vp-copy-ignore`},[a(`code`,{class:`twoslash-popup-code`},[a(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},`title`),a(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},`?:`),a(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},` string`),a(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},` |`),a(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},` undefined`)]),a(`div`,{class:`twoslash-popup-docs vp-doc`,"vp-content":``},[a(`p`,null,`Title for the site`)]),a(`div`,{class:`twoslash-popup-docs twoslash-popup-docs-tags vp-doc`,"vp-content":``},[a(`span`,{class:`twoslash-popup-docs-tag`},[a(`span`,{class:`twoslash-popup-docs-tag-name`},`@default`),a(`span`,{class:`twoslash-popup-docs-tag-value`},`''`)])])],-1)]]),default:e(()=>[o[163]||=a(`span`,null,`title`,-1)]),_:1})]),o[169]||=i(`<span style="--shiki-light:#999999;--shiki-dark:#666666;">: </span><span style="--shiki-light:#B5695977;--shiki-dark:#C98A7D77;">'</span><span style="--shiki-light:#B56959;--shiki-dark:#C98A7D;">Le blog</span><span style="--shiki-light:#B5695977;--shiki-dark:#C98A7D77;">'</span><span style="--shiki-light:#999999;--shiki-dark:#666666;"> },</span>`,5)]),o[256]||=r(`
|
||
`,-1),o[257]||=a(`span`,{class:`line has-focus`},[a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},` },`)],-1),o[258]||=r(`
|
||
`,-1),a(`span`,Oe,[o[174]||=a(`span`,{style:{"--shiki-light":`#998418`,"--shiki-dark":`#B8A965`}},` `,-1),a(`span`,ke,[n(Q,{class:`twoslash-hover`,"popper-class":`shiki twoslash-floating vp-copy-ignore vp-code`,theme:`twoslash`},{popper:e(({})=>[...o[170]||=[a(`span`,{class:`twoslash-popup-container vp-copy-ignore`},[a(`code`,{class:`twoslash-popup-code`},[a(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},`theme`),a(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},`?:`),a(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},` Theme`),a(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},` |`),a(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},` undefined`)]),a(`div`,{class:`twoslash-popup-docs vp-doc`,"vp-content":``},[a(`p`,null,`Vuepress theme`)]),a(`div`,{class:`twoslash-popup-docs twoslash-popup-docs-tags vp-doc`,"vp-content":``},[a(`span`,{class:`twoslash-popup-docs-tag`},[a(`span`,{class:`twoslash-popup-docs-tag-name`},`@required`)])])],-1)]]),default:e(()=>[o[171]||=a(`span`,null,`theme`,-1)]),_:1})]),o[175]||=a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`: `,-1),a(`span`,Ae,[n(Q,{class:`twoslash-hover`,"popper-class":`shiki twoslash-floating vp-copy-ignore vp-code`,theme:`twoslash`},{popper:e(({})=>[...o[172]||=[a(`span`,{class:`twoslash-popup-container vp-copy-ignore`},[a(`code`,{class:`twoslash-popup-code`},[a(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},`function`),a(`span`,{style:{"--shiki-light":`#59873A`,"--shiki-dark":`#80A665`}},` plumeTheme`),a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`(`),a(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},`options`),a(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},`?`),a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`: `),a(`span`,{style:{"--shiki-light":`#2E8F82`,"--shiki-dark":`#5DA994`}},`ThemeOptions`),a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`):`),a(`span`,{style:{"--shiki-light":`#2E8F82`,"--shiki-dark":`#5DA994`}},` Theme`)]),a(`div`,{class:`twoslash-popup-docs vp-doc`,"vp-content":``},[a(`p`,null,`VuePress Theme Plume`),r(`
|
||
`),a(`p`,null,`VuePress 主题 Plume`)]),a(`div`,{class:`twoslash-popup-docs twoslash-popup-docs-tags vp-doc`,"vp-content":``},[a(`span`,{class:`twoslash-popup-docs-tag`},[a(`span`,{class:`twoslash-popup-docs-tag-name`},`@param`),a(`span`,{class:`twoslash-popup-docs-tag-value`},[a(`code`,null,`options`),r(` Theme options / 主题配置`)])]),a(`span`,{class:`twoslash-popup-docs-tag`},[a(`span`,{class:`twoslash-popup-docs-tag-name`},`@example`),a(`span`,{class:`twoslash-popup-docs-tag-value`},[a(`div`,{class:`language-ts`,"data-ext":`ts`,"data-title":`ts`,"data-highlighter":`shiki`,style:{"--shiki-light":`#393a34`,"--shiki-dark":`#dbd7caee`,"--shiki-light-bg":`#ffffff`,"--shiki-dark-bg":`#121212`}},[a(`pre`,{class:`shiki shiki-themes vitesse-light vitesse-dark`,style:{"--shiki-light":`#393a34`,"--shiki-dark":`#dbd7caee`,"--shiki-light-bg":`#ffffff`,"--shiki-dark-bg":`#121212`},tabindex:`0`},[a(`code`,null,[a(`span`,{class:`line`},[a(`span`,{style:{"--shiki-light":`#1E754F`,"--shiki-dark":`#4D9375`}},`import`),a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},` {`),a(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},` defineUserConfig`),a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},` }`),a(`span`,{style:{"--shiki-light":`#1E754F`,"--shiki-dark":`#4D9375`}},` from`),a(`span`,{style:{"--shiki-light":`#B5695977`,"--shiki-dark":`#C98A7D77`}},` '`),a(`span`,{style:{"--shiki-light":`#B56959`,"--shiki-dark":`#C98A7D`}},`vuepress`),a(`span`,{style:{"--shiki-light":`#B5695977`,"--shiki-dark":`#C98A7D77`}},`'`)]),r(`
|
||
`),a(`span`,{class:`line`},[a(`span`,{style:{"--shiki-light":`#1E754F`,"--shiki-dark":`#4D9375`}},`import`),a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},` {`),a(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},` plumeTheme`),a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},` }`),a(`span`,{style:{"--shiki-light":`#1E754F`,"--shiki-dark":`#4D9375`}},` from`),a(`span`,{style:{"--shiki-light":`#B5695977`,"--shiki-dark":`#C98A7D77`}},` '`),a(`span`,{style:{"--shiki-light":`#B56959`,"--shiki-dark":`#C98A7D`}},`vuepress-theme-plume`),a(`span`,{style:{"--shiki-light":`#B5695977`,"--shiki-dark":`#C98A7D77`}},`'`)]),r(`
|
||
`),a(`span`,{class:`line`}),r(`
|
||
`),a(`span`,{class:`line`},[a(`span`,{style:{"--shiki-light":`#1E754F`,"--shiki-dark":`#4D9375`}},`export`),a(`span`,{style:{"--shiki-light":`#1E754F`,"--shiki-dark":`#4D9375`}},` default`),a(`span`,{style:{"--shiki-light":`#59873A`,"--shiki-dark":`#80A665`}},` defineUserConfig`),a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`({`)]),r(`
|
||
`),a(`span`,{class:`line`},[a(`span`,{style:{"--shiki-light":`#998418`,"--shiki-dark":`#B8A965`}},` theme`),a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`: `),a(`span`,{style:{"--shiki-light":`#59873A`,"--shiki-dark":`#80A665`}},`plumeTheme`),a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`({`)]),r(`
|
||
`),a(`span`,{class:`line`},[a(`span`,{style:{"--shiki-light":`#A0ADA0`,"--shiki-dark":`#758575DD`}},` // ...options`)]),r(`
|
||
`),a(`span`,{class:`line`},[a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},` })`)]),r(`
|
||
`),a(`span`,{class:`line`},[a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`})`)])])])])])])])],-1)]]),default:e(()=>[o[173]||=a(`span`,null,`plumeTheme`,-1)]),_:1})]),o[176]||=a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`({`,-1)]),o[259]||=r(`
|
||
`,-1),o[260]||=a(`span`,{class:`line`},[a(`span`,{style:{"--shiki-light":`#A0ADA0`,"--shiki-dark":`#758575DD`}},` // 主题级多语言配置`)],-1),o[261]||=r(`
|
||
`,-1),a(`span`,je,[o[179]||=a(`span`,{style:{"--shiki-light":`#998418`,"--shiki-dark":`#B8A965`}},` `,-1),a(`span`,Me,[n(Q,{class:`twoslash-hover`,"popper-class":`shiki twoslash-floating vp-copy-ignore vp-code`,theme:`twoslash`},{popper:e(({})=>[...o[177]||=[a(`span`,{class:`twoslash-popup-container vp-copy-ignore`},[a(`code`,{class:`twoslash-popup-code`},[a(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},`ThemeBaseData`),a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`.`),a(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},`locales`),a(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},`?:`),a(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},` LocaleConfig`),a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`<`),a(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},`ThemeLocaleData`),a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`>`),a(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},` |`),a(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},` undefined`)]),a(`div`,{class:`twoslash-popup-docs vp-doc`,"vp-content":``},[a(`p`,null,`Multi-language locale configuration
|
||
多语言配置`)])],-1)]]),default:e(()=>[o[178]||=a(`span`,null,`locales`,-1)]),_:1})]),o[180]||=a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`: { `,-1)]),o[262]||=i(`
|
||
<span class="line has-focus"><span style="--shiki-light:#A0ADA0;--shiki-dark:#758575DD;"> // 简体中文配置</span></span>
|
||
<span class="line has-focus"><span style="--shiki-light:#B5695977;--shiki-dark:#C98A7D77;"> '</span><span style="--shiki-light:#B56959;--shiki-dark:#C98A7D;">/</span><span style="--shiki-light:#B5695977;--shiki-dark:#C98A7D77;">'</span><span style="--shiki-light:#999999;--shiki-dark:#666666;">: {</span></span>
|
||
`,5),a(`span`,Ne,[o[183]||=a(`span`,{style:{"--shiki-light":`#998418`,"--shiki-dark":`#B8A965`}},` `,-1),a(`span`,Pe,[n(Q,{class:`twoslash-hover`,"popper-class":`shiki twoslash-floating vp-copy-ignore vp-code`,theme:`twoslash`},{popper:e(({})=>[...o[181]||=[a(`span`,{class:`twoslash-popup-container vp-copy-ignore`},[a(`code`,{class:`twoslash-popup-code`},[a(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},`selectLanguageName`),a(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},`?:`),a(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},` string`),a(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},` |`),a(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},` undefined`)]),a(`div`,{class:`twoslash-popup-docs vp-doc`,"vp-content":``},[a(`p`,null,`语言名称`),r(`
|
||
`),a(`p`,null,`仅能在主题配置的 locales 的内部生效 。
|
||
它将被用作 locale 的语言名称,展示在 选择语言菜单 内。`)])],-1)]]),default:e(()=>[o[182]||=a(`span`,null,`selectLanguageName`,-1)]),_:1})]),o[184]||=i(`<span style="--shiki-light:#999999;--shiki-dark:#666666;">: </span><span style="--shiki-light:#B5695977;--shiki-dark:#C98A7D77;">'</span><span style="--shiki-light:#B56959;--shiki-dark:#C98A7D;">简体中文</span><span style="--shiki-light:#B5695977;--shiki-dark:#C98A7D77;">'</span><span style="--shiki-light:#999999;--shiki-dark:#666666;">,</span>`,5)]),o[263]||=r(`
|
||
`,-1),a(`span`,Fe,[o[187]||=a(`span`,{style:{"--shiki-light":`#998418`,"--shiki-dark":`#B8A965`}},` `,-1),a(`span`,Ie,[n(Q,{class:`twoslash-hover`,"popper-class":`shiki twoslash-floating vp-copy-ignore vp-code`,theme:`twoslash`},{popper:e(({})=>[...o[185]||=[a(`span`,{class:`twoslash-popup-container vp-copy-ignore`},[a(`code`,{class:`twoslash-popup-code`},[a(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},`navbar`),a(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},`?:`),a(`span`,{style:{"--shiki-light":`#1E754F`,"--shiki-dark":`#4D9375`}},` false`),a(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},` |`),a(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},` ThemeNavItem`),a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`[]`),a(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},` |`),a(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},` undefined`)]),a(`div`,{class:`twoslash-popup-docs vp-doc`,"vp-content":``},[a(`p`,null,`导航栏配置`),r(`
|
||
`),a(`p`,null,[r(`设置为 `),a(`code`,null,`false`),r(` 将会禁用导航栏`)])])],-1)]]),default:e(()=>[o[186]||=a(`span`,null,`navbar`,-1)]),_:1})]),o[188]||=a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`: [`,-1)]),o[264]||=r(`
|
||
`,-1),a(`span`,Le,[o[193]||=a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},` { `,-1),a(`span`,Re,[n(Q,{class:`twoslash-hover`,"popper-class":`shiki twoslash-floating vp-copy-ignore vp-code`,theme:`twoslash`},{popper:e(({})=>[...o[189]||=[a(`span`,{class:`twoslash-popup-container vp-copy-ignore`},[a(`code`,{class:`twoslash-popup-code`},[a(`span`,{style:{"--shiki-light":`#59873A`,"--shiki-dark":`#80A665`}},`text`),a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`:`),a(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},` string`)])],-1)]]),default:e(()=>[o[190]||=a(`span`,null,`text`,-1)]),_:1})]),o[194]||=i(`<span style="--shiki-light:#999999;--shiki-dark:#666666;">: </span><span style="--shiki-light:#B5695977;--shiki-dark:#C98A7D77;">'</span><span style="--shiki-light:#B56959;--shiki-dark:#C98A7D;">首页</span><span style="--shiki-light:#B5695977;--shiki-dark:#C98A7D77;">'</span><span style="--shiki-light:#999999;--shiki-dark:#666666;">, </span>`,5),a(`span`,ze,[n(Q,{class:`twoslash-hover`,"popper-class":`shiki twoslash-floating vp-copy-ignore vp-code`,theme:`twoslash`},{popper:e(({})=>[...o[191]||=[a(`span`,{class:`twoslash-popup-container vp-copy-ignore`},[a(`code`,{class:`twoslash-popup-code`},[a(`span`,{style:{"--shiki-light":`#59873A`,"--shiki-dark":`#80A665`}},`link`),a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`:`),a(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},` string`)])],-1)]]),default:e(()=>[o[192]||=a(`span`,null,`link`,-1)]),_:1})]),o[195]||=i(`<span style="--shiki-light:#999999;--shiki-dark:#666666;">: </span><span style="--shiki-light:#B5695977;--shiki-dark:#C98A7D77;">'</span><span style="--shiki-light:#B56959;--shiki-dark:#C98A7D;">/</span><span style="--shiki-light:#B5695977;--shiki-dark:#C98A7D77;">'</span><span style="--shiki-light:#999999;--shiki-dark:#666666;"> },</span>`,5)]),o[265]||=r(`
|
||
`,-1),a(`span`,Be,[o[200]||=a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},` { `,-1),a(`span`,Ve,[n(Q,{class:`twoslash-hover`,"popper-class":`shiki twoslash-floating vp-copy-ignore vp-code`,theme:`twoslash`},{popper:e(({})=>[...o[196]||=[a(`span`,{class:`twoslash-popup-container vp-copy-ignore`},[a(`code`,{class:`twoslash-popup-code`},[a(`span`,{style:{"--shiki-light":`#59873A`,"--shiki-dark":`#80A665`}},`text`),a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`:`),a(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},` string`)])],-1)]]),default:e(()=>[o[197]||=a(`span`,null,`text`,-1)]),_:1})]),o[201]||=i(`<span style="--shiki-light:#999999;--shiki-dark:#666666;">: </span><span style="--shiki-light:#B5695977;--shiki-dark:#C98A7D77;">'</span><span style="--shiki-light:#B56959;--shiki-dark:#C98A7D;">博客</span><span style="--shiki-light:#B5695977;--shiki-dark:#C98A7D77;">'</span><span style="--shiki-light:#999999;--shiki-dark:#666666;">, </span>`,5),a(`span`,He,[n(Q,{class:`twoslash-hover`,"popper-class":`shiki twoslash-floating vp-copy-ignore vp-code`,theme:`twoslash`},{popper:e(({})=>[...o[198]||=[a(`span`,{class:`twoslash-popup-container vp-copy-ignore`},[a(`code`,{class:`twoslash-popup-code`},[a(`span`,{style:{"--shiki-light":`#59873A`,"--shiki-dark":`#80A665`}},`link`),a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`:`),a(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},` string`)])],-1)]]),default:e(()=>[o[199]||=a(`span`,null,`link`,-1)]),_:1})]),o[202]||=i(`<span style="--shiki-light:#999999;--shiki-dark:#666666;">: </span><span style="--shiki-light:#B5695977;--shiki-dark:#C98A7D77;">'</span><span style="--shiki-light:#B56959;--shiki-dark:#C98A7D;">/blog/</span><span style="--shiki-light:#B5695977;--shiki-dark:#C98A7D77;">'</span><span style="--shiki-light:#999999;--shiki-dark:#666666;"> },</span>`,5)]),o[266]||=i(`
|
||
<span class="line has-focus"><span style="--shiki-light:#999999;--shiki-dark:#666666;"> ]</span></span>
|
||
<span class="line has-focus"><span style="--shiki-light:#999999;--shiki-dark:#666666;"> },</span></span>
|
||
<span class="line has-focus"><span style="--shiki-light:#A0ADA0;--shiki-dark:#758575DD;"> // 英文配置</span></span>
|
||
<span class="line has-focus"><span style="--shiki-light:#B5695977;--shiki-dark:#C98A7D77;"> '</span><span style="--shiki-light:#B56959;--shiki-dark:#C98A7D;">/en/</span><span style="--shiki-light:#B5695977;--shiki-dark:#C98A7D77;">'</span><span style="--shiki-light:#999999;--shiki-dark:#666666;">: {</span></span>
|
||
`,9),a(`span`,Ue,[o[205]||=a(`span`,{style:{"--shiki-light":`#998418`,"--shiki-dark":`#B8A965`}},` `,-1),a(`span`,We,[n(Q,{class:`twoslash-hover`,"popper-class":`shiki twoslash-floating vp-copy-ignore vp-code`,theme:`twoslash`},{popper:e(({})=>[...o[203]||=[a(`span`,{class:`twoslash-popup-container vp-copy-ignore`},[a(`code`,{class:`twoslash-popup-code`},[a(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},`selectLanguageName`),a(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},`?:`),a(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},` string`),a(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},` |`),a(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},` undefined`)]),a(`div`,{class:`twoslash-popup-docs vp-doc`,"vp-content":``},[a(`p`,null,`语言名称`),r(`
|
||
`),a(`p`,null,`仅能在主题配置的 locales 的内部生效 。
|
||
它将被用作 locale 的语言名称,展示在 选择语言菜单 内。`)])],-1)]]),default:e(()=>[o[204]||=a(`span`,null,`selectLanguageName`,-1)]),_:1})]),o[206]||=i(`<span style="--shiki-light:#999999;--shiki-dark:#666666;">: </span><span style="--shiki-light:#B5695977;--shiki-dark:#C98A7D77;">'</span><span style="--shiki-light:#B56959;--shiki-dark:#C98A7D;">English</span><span style="--shiki-light:#B5695977;--shiki-dark:#C98A7D77;">'</span><span style="--shiki-light:#999999;--shiki-dark:#666666;">,</span>`,5)]),o[267]||=r(`
|
||
`,-1),a(`span`,Ge,[o[209]||=a(`span`,{style:{"--shiki-light":`#998418`,"--shiki-dark":`#B8A965`}},` `,-1),a(`span`,Ke,[n(Q,{class:`twoslash-hover`,"popper-class":`shiki twoslash-floating vp-copy-ignore vp-code`,theme:`twoslash`},{popper:e(({})=>[...o[207]||=[a(`span`,{class:`twoslash-popup-container vp-copy-ignore`},[a(`code`,{class:`twoslash-popup-code`},[a(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},`navbar`),a(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},`?:`),a(`span`,{style:{"--shiki-light":`#1E754F`,"--shiki-dark":`#4D9375`}},` false`),a(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},` |`),a(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},` ThemeNavItem`),a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`[]`),a(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},` |`),a(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},` undefined`)]),a(`div`,{class:`twoslash-popup-docs vp-doc`,"vp-content":``},[a(`p`,null,`导航栏配置`),r(`
|
||
`),a(`p`,null,[r(`设置为 `),a(`code`,null,`false`),r(` 将会禁用导航栏`)])])],-1)]]),default:e(()=>[o[208]||=a(`span`,null,`navbar`,-1)]),_:1})]),o[210]||=a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`: [`,-1)]),o[268]||=r(`
|
||
`,-1),a(`span`,qe,[o[215]||=a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},` { `,-1),a(`span`,Je,[n(Q,{class:`twoslash-hover`,"popper-class":`shiki twoslash-floating vp-copy-ignore vp-code`,theme:`twoslash`},{popper:e(({})=>[...o[211]||=[a(`span`,{class:`twoslash-popup-container vp-copy-ignore`},[a(`code`,{class:`twoslash-popup-code`},[a(`span`,{style:{"--shiki-light":`#59873A`,"--shiki-dark":`#80A665`}},`text`),a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`:`),a(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},` string`)])],-1)]]),default:e(()=>[o[212]||=a(`span`,null,`text`,-1)]),_:1})]),o[216]||=i(`<span style="--shiki-light:#999999;--shiki-dark:#666666;">: </span><span style="--shiki-light:#B5695977;--shiki-dark:#C98A7D77;">'</span><span style="--shiki-light:#B56959;--shiki-dark:#C98A7D;">Home</span><span style="--shiki-light:#B5695977;--shiki-dark:#C98A7D77;">'</span><span style="--shiki-light:#999999;--shiki-dark:#666666;">, </span>`,5),a(`span`,Ye,[n(Q,{class:`twoslash-hover`,"popper-class":`shiki twoslash-floating vp-copy-ignore vp-code`,theme:`twoslash`},{popper:e(({})=>[...o[213]||=[a(`span`,{class:`twoslash-popup-container vp-copy-ignore`},[a(`code`,{class:`twoslash-popup-code`},[a(`span`,{style:{"--shiki-light":`#59873A`,"--shiki-dark":`#80A665`}},`link`),a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`:`),a(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},` string`)])],-1)]]),default:e(()=>[o[214]||=a(`span`,null,`link`,-1)]),_:1})]),o[217]||=i(`<span style="--shiki-light:#999999;--shiki-dark:#666666;">: </span><span style="--shiki-light:#B5695977;--shiki-dark:#C98A7D77;">'</span><span style="--shiki-light:#B56959;--shiki-dark:#C98A7D;">/en/</span><span style="--shiki-light:#B5695977;--shiki-dark:#C98A7D77;">'</span><span style="--shiki-light:#999999;--shiki-dark:#666666;"> },</span>`,5)]),o[269]||=r(`
|
||
`,-1),a(`span`,Xe,[o[222]||=a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},` { `,-1),a(`span`,Ze,[n(Q,{class:`twoslash-hover`,"popper-class":`shiki twoslash-floating vp-copy-ignore vp-code`,theme:`twoslash`},{popper:e(({})=>[...o[218]||=[a(`span`,{class:`twoslash-popup-container vp-copy-ignore`},[a(`code`,{class:`twoslash-popup-code`},[a(`span`,{style:{"--shiki-light":`#59873A`,"--shiki-dark":`#80A665`}},`text`),a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`:`),a(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},` string`)])],-1)]]),default:e(()=>[o[219]||=a(`span`,null,`text`,-1)]),_:1})]),o[223]||=i(`<span style="--shiki-light:#999999;--shiki-dark:#666666;">: </span><span style="--shiki-light:#B5695977;--shiki-dark:#C98A7D77;">'</span><span style="--shiki-light:#B56959;--shiki-dark:#C98A7D;">Blog</span><span style="--shiki-light:#B5695977;--shiki-dark:#C98A7D77;">'</span><span style="--shiki-light:#999999;--shiki-dark:#666666;">, </span>`,5),a(`span`,Qe,[n(Q,{class:`twoslash-hover`,"popper-class":`shiki twoslash-floating vp-copy-ignore vp-code`,theme:`twoslash`},{popper:e(({})=>[...o[220]||=[a(`span`,{class:`twoslash-popup-container vp-copy-ignore`},[a(`code`,{class:`twoslash-popup-code`},[a(`span`,{style:{"--shiki-light":`#59873A`,"--shiki-dark":`#80A665`}},`link`),a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`:`),a(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},` string`)])],-1)]]),default:e(()=>[o[221]||=a(`span`,null,`link`,-1)]),_:1})]),o[224]||=i(`<span style="--shiki-light:#999999;--shiki-dark:#666666;">: </span><span style="--shiki-light:#B5695977;--shiki-dark:#C98A7D77;">'</span><span style="--shiki-light:#B56959;--shiki-dark:#C98A7D;">/en/blog/</span><span style="--shiki-light:#B5695977;--shiki-dark:#C98A7D77;">'</span><span style="--shiki-light:#999999;--shiki-dark:#666666;"> },</span>`,5)]),o[270]||=i(`
|
||
<span class="line has-focus"><span style="--shiki-light:#999999;--shiki-dark:#666666;"> ]</span></span>
|
||
<span class="line has-focus"><span style="--shiki-light:#999999;--shiki-dark:#666666;"> },</span></span>
|
||
<span class="line has-focus"><span style="--shiki-light:#A0ADA0;--shiki-dark:#758575DD;"> // 法文配置</span></span>
|
||
<span class="line has-focus"><span style="--shiki-light:#B5695977;--shiki-dark:#C98A7D77;"> '</span><span style="--shiki-light:#B56959;--shiki-dark:#C98A7D;">/fr/</span><span style="--shiki-light:#B5695977;--shiki-dark:#C98A7D77;">'</span><span style="--shiki-light:#999999;--shiki-dark:#666666;">: { </span></span>
|
||
`,9),a(`span`,$e,[o[227]||=a(`span`,{style:{"--shiki-light":`#998418`,"--shiki-dark":`#B8A965`}},` `,-1),a(`span`,et,[n(Q,{class:`twoslash-hover`,"popper-class":`shiki twoslash-floating vp-copy-ignore vp-code`,theme:`twoslash`},{popper:e(({})=>[...o[225]||=[a(`span`,{class:`twoslash-popup-container vp-copy-ignore`},[a(`code`,{class:`twoslash-popup-code`},[a(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},`selectLanguageName`),a(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},`?:`),a(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},` string`),a(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},` |`),a(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},` undefined`)]),a(`div`,{class:`twoslash-popup-docs vp-doc`,"vp-content":``},[a(`p`,null,`语言名称`),r(`
|
||
`),a(`p`,null,`仅能在主题配置的 locales 的内部生效 。
|
||
它将被用作 locale 的语言名称,展示在 选择语言菜单 内。`)])],-1)]]),default:e(()=>[o[226]||=a(`span`,null,`selectLanguageName`,-1)]),_:1})]),o[228]||=i(`<span style="--shiki-light:#999999;--shiki-dark:#666666;">: </span><span style="--shiki-light:#B5695977;--shiki-dark:#C98A7D77;">'</span><span style="--shiki-light:#B56959;--shiki-dark:#C98A7D;">Français</span><span style="--shiki-light:#B5695977;--shiki-dark:#C98A7D77;">'</span><span style="--shiki-light:#999999;--shiki-dark:#666666;">,</span>`,5)]),o[271]||=r(`
|
||
`,-1),a(`span`,tt,[o[231]||=a(`span`,{style:{"--shiki-light":`#998418`,"--shiki-dark":`#B8A965`}},` `,-1),a(`span`,nt,[n(Q,{class:`twoslash-hover`,"popper-class":`shiki twoslash-floating vp-copy-ignore vp-code`,theme:`twoslash`},{popper:e(({})=>[...o[229]||=[a(`span`,{class:`twoslash-popup-container vp-copy-ignore`},[a(`code`,{class:`twoslash-popup-code`},[a(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},`navbar`),a(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},`?:`),a(`span`,{style:{"--shiki-light":`#1E754F`,"--shiki-dark":`#4D9375`}},` false`),a(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},` |`),a(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},` ThemeNavItem`),a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`[]`),a(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},` |`),a(`span`,{style:{"--shiki-light":`#AB5959`,"--shiki-dark":`#CB7676`}},` undefined`)]),a(`div`,{class:`twoslash-popup-docs vp-doc`,"vp-content":``},[a(`p`,null,`导航栏配置`),r(`
|
||
`),a(`p`,null,[r(`设置为 `),a(`code`,null,`false`),r(` 将会禁用导航栏`)])])],-1)]]),default:e(()=>[o[230]||=a(`span`,null,`navbar`,-1)]),_:1})]),o[232]||=a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`: [`,-1)]),o[272]||=r(`
|
||
`,-1),a(`span`,rt,[o[237]||=a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},` { `,-1),a(`span`,it,[n(Q,{class:`twoslash-hover`,"popper-class":`shiki twoslash-floating vp-copy-ignore vp-code`,theme:`twoslash`},{popper:e(({})=>[...o[233]||=[a(`span`,{class:`twoslash-popup-container vp-copy-ignore`},[a(`code`,{class:`twoslash-popup-code`},[a(`span`,{style:{"--shiki-light":`#59873A`,"--shiki-dark":`#80A665`}},`text`),a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`:`),a(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},` string`)])],-1)]]),default:e(()=>[o[234]||=a(`span`,null,`text`,-1)]),_:1})]),o[238]||=i(`<span style="--shiki-light:#999999;--shiki-dark:#666666;">: </span><span style="--shiki-light:#B5695977;--shiki-dark:#C98A7D77;">'</span><span style="--shiki-light:#B56959;--shiki-dark:#C98A7D;">Accueil</span><span style="--shiki-light:#B5695977;--shiki-dark:#C98A7D77;">'</span><span style="--shiki-light:#999999;--shiki-dark:#666666;">, </span>`,5),a(`span`,at,[n(Q,{class:`twoslash-hover`,"popper-class":`shiki twoslash-floating vp-copy-ignore vp-code`,theme:`twoslash`},{popper:e(({})=>[...o[235]||=[a(`span`,{class:`twoslash-popup-container vp-copy-ignore`},[a(`code`,{class:`twoslash-popup-code`},[a(`span`,{style:{"--shiki-light":`#59873A`,"--shiki-dark":`#80A665`}},`link`),a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`:`),a(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},` string`)])],-1)]]),default:e(()=>[o[236]||=a(`span`,null,`link`,-1)]),_:1})]),o[239]||=i(`<span style="--shiki-light:#999999;--shiki-dark:#666666;">: </span><span style="--shiki-light:#B5695977;--shiki-dark:#C98A7D77;">'</span><span style="--shiki-light:#B56959;--shiki-dark:#C98A7D;">/fr/</span><span style="--shiki-light:#B5695977;--shiki-dark:#C98A7D77;">'</span><span style="--shiki-light:#999999;--shiki-dark:#666666;"> },</span>`,5)]),o[273]||=r(`
|
||
`,-1),a(`span`,Y,[o[244]||=a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},` { `,-1),a(`span`,ot,[n(Q,{class:`twoslash-hover`,"popper-class":`shiki twoslash-floating vp-copy-ignore vp-code`,theme:`twoslash`},{popper:e(({})=>[...o[240]||=[a(`span`,{class:`twoslash-popup-container vp-copy-ignore`},[a(`code`,{class:`twoslash-popup-code`},[a(`span`,{style:{"--shiki-light":`#59873A`,"--shiki-dark":`#80A665`}},`text`),a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`:`),a(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},` string`)])],-1)]]),default:e(()=>[o[241]||=a(`span`,null,`text`,-1)]),_:1})]),o[245]||=i(`<span style="--shiki-light:#999999;--shiki-dark:#666666;">: </span><span style="--shiki-light:#B5695977;--shiki-dark:#C98A7D77;">'</span><span style="--shiki-light:#B56959;--shiki-dark:#C98A7D;">Le Blog</span><span style="--shiki-light:#B5695977;--shiki-dark:#C98A7D77;">'</span><span style="--shiki-light:#999999;--shiki-dark:#666666;">, </span>`,5),a(`span`,st,[n(Q,{class:`twoslash-hover`,"popper-class":`shiki twoslash-floating vp-copy-ignore vp-code`,theme:`twoslash`},{popper:e(({})=>[...o[242]||=[a(`span`,{class:`twoslash-popup-container vp-copy-ignore`},[a(`code`,{class:`twoslash-popup-code`},[a(`span`,{style:{"--shiki-light":`#59873A`,"--shiki-dark":`#80A665`}},`link`),a(`span`,{style:{"--shiki-light":`#999999`,"--shiki-dark":`#666666`}},`:`),a(`span`,{style:{"--shiki-light":`#B07D48`,"--shiki-dark":`#BD976A`}},` string`)])],-1)]]),default:e(()=>[o[243]||=a(`span`,null,`link`,-1)]),_:1})]),o[246]||=i(`<span style="--shiki-light:#999999;--shiki-dark:#666666;">: </span><span style="--shiki-light:#B5695977;--shiki-dark:#C98A7D77;">'</span><span style="--shiki-light:#B56959;--shiki-dark:#C98A7D;">/fr/blog/</span><span style="--shiki-light:#B5695977;--shiki-dark:#C98A7D77;">'</span><span style="--shiki-light:#999999;--shiki-dark:#666666;"> },</span>`,5)]),o[274]||=i(`
|
||
<span class="line has-focus"><span style="--shiki-light:#999999;--shiki-dark:#666666;"> ]</span></span>
|
||
<span class="line has-focus"><span style="--shiki-light:#999999;--shiki-dark:#666666;"> }</span></span>
|
||
<span class="line"><span style="--shiki-light:#999999;--shiki-dark:#666666;"> }</span></span>
|
||
<span class="line"><span style="--shiki-light:#999999;--shiki-dark:#666666;"> })</span></span>
|
||
<span class="line"><span style="--shiki-light:#999999;--shiki-dark:#666666;">})</span></span>`,10)])])])]),o[286]||=i(`<p><strong>关键配置项</strong>:</p><ul><li><code>selectLanguageName</code>:在语言选择器中显示的语言名称</li><li><code>navbar</code>:各语言独有的导航栏配置</li><li>所有主题配置项均支持在 <code>locales</code> 中按语言重写</li></ul><h2 id="配置一致性要求" tabindex="-1"><a class="header-anchor" href="#配置一致性要求"><span>配置一致性要求</span></a></h2><p>确保 VuePress 配置与主题配置的路径键名完全匹配:</p><div class="language-ts line-numbers-mode" data-highlighter="shiki" data-ext="ts" style="--shiki-light:#393a34;--shiki-dark:#dbd7caee;--shiki-light-bg:#ffffff;--shiki-dark-bg:#121212;"><pre class="shiki shiki-themes vitesse-light vitesse-dark vp-code"><code class="language-ts"><span class="line"><span style="--shiki-light:#1E754F;--shiki-dark:#4D9375;">export</span><span style="--shiki-light:#1E754F;--shiki-dark:#4D9375;"> default</span><span style="--shiki-light:#999999;--shiki-dark:#666666;"> {</span></span>
|
||
<span class="line"><span style="--shiki-light:#A0ADA0;--shiki-dark:#758575DD;">// VuePress 配置</span></span>
|
||
<span class="line"><span style="--shiki-light:#998418;--shiki-dark:#B8A965;"> locales</span><span style="--shiki-light:#999999;--shiki-dark:#666666;">: {</span></span>
|
||
<span class="line"><span style="--shiki-light:#B5695977;--shiki-dark:#C98A7D77;"> '</span><span style="--shiki-light:#B56959;--shiki-dark:#C98A7D;">/</span><span style="--shiki-light:#B5695977;--shiki-dark:#C98A7D77;">'</span><span style="--shiki-light:#999999;--shiki-dark:#666666;">: { </span><span style="--shiki-light:#A0ADA0;--shiki-dark:#758575DD;">/* 中文配置 */</span><span style="--shiki-light:#999999;--shiki-dark:#666666;"> },</span></span>
|
||
<span class="line"><span style="--shiki-light:#B5695977;--shiki-dark:#C98A7D77;"> '</span><span style="--shiki-light:#B56959;--shiki-dark:#C98A7D;">/en/</span><span style="--shiki-light:#B5695977;--shiki-dark:#C98A7D77;">'</span><span style="--shiki-light:#999999;--shiki-dark:#666666;">: { </span><span style="--shiki-light:#A0ADA0;--shiki-dark:#758575DD;">/* 英文配置 */</span><span style="--shiki-light:#999999;--shiki-dark:#666666;"> },</span></span>
|
||
<span class="line"><span style="--shiki-light:#999999;--shiki-dark:#666666;"> },</span></span>
|
||
<span class="line"></span>
|
||
<span class="line"><span style="--shiki-light:#A0ADA0;--shiki-dark:#758575DD;"> // 主题配置</span></span>
|
||
<span class="line"><span style="--shiki-light:#998418;--shiki-dark:#B8A965;"> theme</span><span style="--shiki-light:#999999;--shiki-dark:#666666;">: </span><span style="--shiki-light:#59873A;--shiki-dark:#80A665;">plumeTheme</span><span style="--shiki-light:#999999;--shiki-dark:#666666;">({</span></span>
|
||
<span class="line"><span style="--shiki-light:#998418;--shiki-dark:#B8A965;"> locales</span><span style="--shiki-light:#999999;--shiki-dark:#666666;">: {</span></span>
|
||
<span class="line"><span style="--shiki-light:#B5695977;--shiki-dark:#C98A7D77;"> '</span><span style="--shiki-light:#B56959;--shiki-dark:#C98A7D;">/</span><span style="--shiki-light:#B5695977;--shiki-dark:#C98A7D77;">'</span><span style="--shiki-light:#999999;--shiki-dark:#666666;">: { </span><span style="--shiki-light:#A0ADA0;--shiki-dark:#758575DD;">/* 中文主题配置 */</span><span style="--shiki-light:#999999;--shiki-dark:#666666;"> },</span></span>
|
||
<span class="line"><span style="--shiki-light:#B5695977;--shiki-dark:#C98A7D77;"> '</span><span style="--shiki-light:#B56959;--shiki-dark:#C98A7D;">/en/</span><span style="--shiki-light:#B5695977;--shiki-dark:#C98A7D77;">'</span><span style="--shiki-light:#999999;--shiki-dark:#666666;">: { </span><span style="--shiki-light:#A0ADA0;--shiki-dark:#758575DD;">/* 英文主题配置 */</span><span style="--shiki-light:#999999;--shiki-dark:#666666;"> }</span></span>
|
||
<span class="line"><span style="--shiki-light:#999999;--shiki-dark:#666666;"> }</span></span>
|
||
<span class="line"><span style="--shiki-light:#999999;--shiki-dark:#666666;"> })</span></span>
|
||
<span class="line"><span style="--shiki-light:#999999;--shiki-dark:#666666;">}</span></span></code></pre><div class="line-numbers" aria-hidden="true" style="counter-reset:line-number 0;"><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div></div></div><h2 id="扩展阅读" tabindex="-1"><a class="header-anchor" href="#扩展阅读"><span>扩展阅读</span></a></h2>`,6),a(`ul`,null,[a(`li`,null,[n($,{href:`../../config/theme.md#locale-%E9%85%8D%E7%BD%AE`},{default:e(()=>[...o[275]||=[r(`主题 Locales 配置`,-1)]]),_:1}),o[276]||=r(` - 了解各语言专属的主题行为配置`,-1)]),a(`li`,null,[n($,{href:`../../config/locales.md`},{default:e(()=>[...o[277]||=[r(`多语言文本配置`,-1)]]),_:1}),o[278]||=r(` - 掌握界面文本的国际化定制方法`,-1)])]),o[287]||=a(`p`,null,`通过以上配置,您的文档站点将具备完整的多语言支持能力,为用户提供更友好的国际化访问体验。`,-1)])}var lt=ne(re,[[`render`,ct]]);export{o as _pageData,lt as default}; |