text: import{e as o,k as c,l as r,I as s,J as l,M as e,K as t,L as p,p as n}from"./vendor.c0e21dd6.js";import{_ as D}from"./plugin-vue_export-helper.21dcd24c.js";const i={},d=p(`<h1 id="\u591A\u8BED\u8A00\u652F\u6301" tabindex="-1"><a class="header-anchor" href="#\u591A\u8BED\u8A00\u652F\u6301" aria-hidden="true">#</a> \u591A\u8BED\u8A00\u652F\u6301</h1><h2 id="\u7AD9\u70B9\u591A\u8BED\u8A00\u914D\u7F6E" tabindex="-1"><a class="header-anchor" href="#\u7AD9\u70B9\u591A\u8BED\u8A00\u914D\u7F6E" aria-hidden="true">#</a> \u7AD9\u70B9\u591A\u8BED\u8A00\u914D\u7F6E</h2><p>\u8981\u542F\u7528 VuePress \u7684\u591A\u8BED\u8A00\u652F\u6301\uFF0C\u9996\u5148\u9700\u8981\u4F7F\u7528\u5982\u4E0B\u7684\u6587\u4EF6\u76EE\u5F55\u7ED3\u6784\uFF1A</p><div class="language-text ext-text line-numbers-mode"><pre class="shiki" style="background-color:#1E1E1E;"><code><span class="line"><span style="color:#D4D4D4;">docs
  \u251C\u2500 README.md
  \u251C\u2500 foo.md
  \u251C\u2500 nested
  \u2502\xA0\xA0\u2514\u2500 README.md
  \u2514\u2500 zh
     \u251C\u2500 README.md
     \u251C\u2500 foo.md
     \u2514\u2500 nested
    \xA0\xA0  \u2514\u2500 README.md
  </span></span></code></pre><div class="line-numbers" aria-hidden="true"><span class="line-number">1</span><br><span class="line-number">2</span><br><span class="line-number">3</span><br><span class="line-number">4</span><br><span class="line-number">5</span><br><span class="line-number">6</span><br><span class="line-number">7</span><br><span class="line-number">8</span><br><span class="line-number">9</span><br><span class="line-number">10</span><br></div></div>`,4),y=n("\u7136\u540E\uFF0C\u5728\u4F60\u7684 "),u=n("\u914D\u7F6E\u6587\u4EF6"),b=n(" \u4E2D\u8BBE\u7F6E "),m=s("code",null,"locales",-1),h=n(" \u9009\u9879\uFF1A"),E=p(`<div class="language-javascript ext-js line-numbers-mode"><pre class="shiki" style="background-color:#1E1E1E;"><code><span class="line"><span style="color:#4EC9B0;">module</span><span style="color:#D4D4D4;">.</span><span style="color:#4EC9B0;">exports</span><span style="color:#D4D4D4;"> = {</span></span>
  <span class="line"><span style="color:#D4D4D4;">  </span><span style="color:#9CDCFE;">locales:</span><span style="color:#D4D4D4;"> {</span></span>
  <span class="line"><span style="color:#D4D4D4;">    </span><span style="color:#6A9955;">// \u952E\u540D\u662F\u8BE5\u8BED\u8A00\u6240\u5C5E\u7684\u5B50\u8DEF\u5F84</span></span>
  <span class="line"><span style="color:#D4D4D4;">    </span><span style="color:#6A9955;">// \u4F5C\u4E3A\u7279\u4F8B\uFF0C\u9ED8\u8BA4\u8BED\u8A00\u53EF\u4EE5\u4F7F\u7528 &#39;/&#39; \u4F5C\u4E3A\u5176\u8DEF\u5F84\u3002</span></span>
  <span class="line"><span style="color:#D4D4D4;">    </span><span style="color:#CE9178;">&#39;/&#39;</span><span style="color:#9CDCFE;">:</span><span style="color:#D4D4D4;"> {</span></span>
  <span class="line"><span style="color:#D4D4D4;">      </span><span style="color:#9CDCFE;">lang:</span><span style="color:#D4D4D4;"> </span><span style="color:#CE9178;">&#39;en-US&#39;</span><span style="color:#D4D4D4;">,</span></span>
  <span class="line"><span style="color:#D4D4D4;">      </span><span style="color:#9CDCFE;">title:</span><span style="color:#D4D4D4;"> </span><span style="color:#CE9178;">&#39;VuePress&#39;</span><span style="color:#D4D4D4;">,</span></span>
  <span class="line"><span style="color:#D4D4D4;">      </span><span style="color:#9CDCFE;">description:</span><span style="color:#D4D4D4;"> </span><span style="color:#CE9178;">&#39;Vue-powered Static Site Generator&#39;</span><span style="color:#D4D4D4;">,</span></span>
  <span class="line"><span style="color:#D4D4D4;">    },</span></span>
  <span class="line"><span style="color:#D4D4D4;">    </span><span style="color:#CE9178;">&#39;/zh/&#39;</span><span style="color:#9CDCFE;">:</span><span style="color:#D4D4D4;"> {</span></span>
  <span class="line"><span style="color:#D4D4D4;">      </span><span style="color:#9CDCFE;">lang:</span><span style="color:#D4D4D4;"> </span><span style="color:#CE9178;">&#39;zh-CN&#39;</span><span style="color:#D4D4D4;">,</span></span>
  <span class="line"><span style="color:#D4D4D4;">      </span><span style="color:#9CDCFE;">title:</span><span style="color:#D4D4D4;"> </span><span style="color:#CE9178;">&#39;VuePress&#39;</span><span style="color:#D4D4D4;">,</span></span>
  <span class="line"><span style="color:#D4D4D4;">      </span><span style="color:#9CDCFE;">description:</span><span style="color:#D4D4D4;"> </span><span style="color:#CE9178;">&#39;Vue \u9A71\u52A8\u7684\u9759\u6001\u7F51\u7AD9\u751F\u6210\u5668&#39;</span><span style="color:#D4D4D4;">,</span></span>
  <span class="line"><span style="color:#D4D4D4;">    },</span></span>
  <span class="line"><span style="color:#D4D4D4;">  },</span></span>
  <span class="line"><span style="color:#D4D4D4;">}</span></span>
  <span class="line"></span></code></pre><div class="line-numbers" aria-hidden="true"><span class="line-number">1</span><br><span class="line-number">2</span><br><span class="line-number">3</span><br><span class="line-number">4</span><br><span class="line-number">5</span><br><span class="line-number">6</span><br><span class="line-number">7</span><br><span class="line-number">8</span><br><span class="line-number">9</span><br><span class="line-number">10</span><br><span class="line-number">11</span><br><span class="line-number">12</span><br><span class="line-number">13</span><br><span class="line-number">14</span><br><span class="line-number">15</span><br><span class="line-number">16</span><br></div></div><p>\u5982\u679C\u4E00\u4E2A\u8BED\u8A00\u6CA1\u6709\u58F0\u660E <code>lang</code>, <code>title</code>, <code>description</code> \u6216\u8005 <code>head</code> \uFF0CVuePress \u5C06\u4F1A\u5C1D\u8BD5\u4F7F\u7528\u9876\u5C42\u914D\u7F6E\u7684\u5BF9\u5E94\u503C\u3002\u5982\u679C\u6BCF\u4E2A\u8BED\u8A00\u90FD\u58F0\u660E\u4E86\u8FD9\u4E9B\u503C\uFF0C\u90A3\u4E48\u9876\u5C42\u914D\u7F6E\u4E2D\u7684\u5BF9\u5E94\u503C\u53EF\u4EE5\u88AB\u7701\u7565\u3002</p>`,2),C={class:"custom-container tip"},_=s("p",{class:"custom-container-title"},"\u63D0\u793A",-1),g=n("\u914D\u7F6E\u53C2\u8003\uFF1A "),f=n("locales"),v=p(`<h2 id="\u4E3B\u9898\u591A\u8BED\u8A00\u914D\u7F6E" tabindex="-1"><a class="header-anchor" href="#\u4E3B\u9898\u591A\u8BED\u8A00\u914D\u7F6E" aria-hidden="true">#</a> \u4E3B\u9898\u591A\u8BED\u8A00\u914D\u7F6E</h2><p>VuePress \u6CA1\u6709\u9650\u5236\u4E3B\u9898\u5982\u4F55\u63D0\u4F9B\u591A\u8BED\u8A00\u652F\u6301\uFF0C\u56E0\u6B64\u6BCF\u4E2A\u4E3B\u9898\u53EF\u80FD\u4F1A\u6709\u4E0D\u540C\u7684\u591A\u8BED\u8A00\u914D\u7F6E\u65B9\u5F0F\uFF0C\u800C\u4E14\u90E8\u5206\u4E3B\u9898\u53EF\u80FD\u4E0D\u4F1A\u63D0\u4F9B\u591A\u8BED\u8A00\u652F\u6301\u3002\u5EFA\u8BAE\u4F60\u67E5\u770B\u4E3B\u9898\u672C\u8EAB\u7684\u6587\u6863\u6765\u83B7\u53D6\u66F4\u8BE6\u7EC6\u7684\u6307\u5F15\u3002</p><p>\u5982\u679C\u4F60\u4F7F\u7528\u7684\u662F\u9ED8\u8BA4\u4E3B\u9898\uFF0C\u90A3\u4E48\u5B83\u63D0\u4F9B\u591A\u8BED\u8A00\u652F\u6301\u7684\u65B9\u5F0F\u548C\u4E0A\u8FF0\u662F\u4E00\u81F4\u7684\uFF1A</p><div class="language-javascript ext-js line-numbers-mode"><pre class="shiki" style="background-color:#1E1E1E;"><code><span class="line"><span style="color:#4EC9B0;">module</span><span style="color:#D4D4D4;">.</span><span style="color:#4EC9B0;">exports</span><span style="color:#D4D4D4;"> = {</span></span>
  <span class="line"><span style="color:#D4D4D4;">  </span><span style="color:#9CDCFE;">themeConfig:</span><span style="color:#D4D4D4;"> {</span></span>
  <span class="line"><span style="color:#D4D4D4;">    </span><span style="color:#9CDCFE;">locales:</span><span style="color:#D4D4D4;"> {</span></span>
  <span class="line"><span style="color:#D4D4D4;">      </span><span style="color:#CE9178;">&#39;/&#39;</span><span style="color:#9CDCFE;">:</span><span style="color:#D4D4D4;"> {</span></span>
  <span class="line"><span style="color:#D4D4D4;">        </span><span style="color:#9CDCFE;">selectLanguageName:</span><span style="color:#D4D4D4;"> </span><span style="color:#CE9178;">&#39;English&#39;</span><span style="color:#D4D4D4;">,</span></span>
  <span class="line"><span style="color:#D4D4D4;">      },</span></span>
  <span class="line"><span style="color:#D4D4D4;">      </span><span style="color:#CE9178;">&#39;/zh/&#39;</span><span style="color:#9CDCFE;">:</span><span style="color:#D4D4D4;"> {</span></span>
  <span class="line"><span style="color:#D4D4D4;">        </span><span style="color:#9CDCFE;">selectLanguageName:</span><span style="color:#D4D4D4;"> </span><span style="color:#CE9178;">&#39;\u7B80\u4F53\u4E2D\u6587&#39;</span><span style="color:#D4D4D4;">,</span></span>
  <span class="line"><span style="color:#D4D4D4;">      },</span></span>
  <span class="line"><span style="color:#D4D4D4;">    },</span></span>
  <span class="line"><span style="color:#D4D4D4;">  },</span></span>
  <span class="line"><span style="color:#D4D4D4;">}</span></span>
  <span class="line"></span></code></pre><div class="line-numbers" aria-hidden="true"><span class="line-number">1</span><br><span class="line-number">2</span><br><span class="line-number">3</span><br><span class="line-number">4</span><br><span class="line-number">5</span><br><span class="line-number">6</span><br><span class="line-number">7</span><br><span class="line-number">8</span><br><span class="line-number">9</span><br><span class="line-number">10</span><br><span class="line-number">11</span><br><span class="line-number">12</span><br></div></div>`,4),x={class:"custom-container tip"},F=s("p",{class:"custom-container-title"},"\u63D0\u793A",-1),k=n("\u914D\u7F6E\u53C2\u8003\uFF1A "),B=n("\u9ED8\u8BA4\u4E3B\u9898 > locales");function V(A,N){const a=o("RouterLink");return c(),r(t,null,[d,s("p",null,[y,l(a,{to:"/guide/configuration.html#%E9%85%8D%E7%BD%AE%E6%96%87%E4%BB%B6"},{default:e(()=>[u]),_:1}),b,m,h]),E,s("div",C,[_,s("p",null,[g,l(a,{to:"/reference/config.html#locales"},{default:e(()=>[f]),_:1})])]),v,s("div",x,[F,s("p",null,[k,l(a,{to:"/reference/default-theme/config.html#locales"},{default:e(()=>[B]),_:1})])])],64)}var L=D(i,[["render",V]]);export{L as default};
  