"use strict";(self.webpackChunkfurion=self.webpackChunkfurion||[]).push([[8850],{9185:(e,n,i)=>{i.r(n),i.d(n,{assets:()=>t,contentTitle:()=>h,default:()=>j,frontMatter:()=>d,metadata:()=>o,toc:()=>x});var s=i(5893),l=i(1151),r=i(510),c=i(4996);const d={id:"local-language",title:"21. \u5168\u7403\u5316\u548c\u672c\u5730\u5316",sidebar_label:"21. \u5168\u7403\u5316\u548c\u672c\u5730\u5316\uff08\u591a\u8bed\u8a00\uff09"},h=void 0,o={id:"local-language",title:"21. \u5168\u7403\u5316\u548c\u672c\u5730\u5316",description:"\ud83d\udcdd \u6a21\u5757\u66f4\u65b0\u65e5\u5fd7",source:"@site/docs/local-language.mdx",sourceDirName:".",slug:"/local-language",permalink:"/docs/local-language",draft:!1,unlisted:!1,editUrl:"https://gitee.com/dotnetchina/Furion/tree/v4/handbook/docs/local-language.mdx",tags:[],version:"current",lastUpdatedBy:"\u767e\u5c0f\u50e7",lastUpdatedAt:1698233712,formattedLastUpdatedAt:"Oct 25, 2023",frontMatter:{id:"local-language",title:"21. \u5168\u7403\u5316\u548c\u672c\u5730\u5316",sidebar_label:"21. \u5168\u7403\u5316\u548c\u672c\u5730\u5316\uff08\u591a\u8bed\u8a00\uff09"},sidebar:"docs",previous:{title:"20. \u6570\u636e\u52a0\u89e3\u5bc6",permalink:"/docs/encryption"},next:{title:"22. \u4e8b\u4ef6\u603b\u7ebf (EventBus)",permalink:"/docs/event-bus"}},t={},x=[{value:"21.1 \u5168\u7403\u5316\u548c\u672c\u5730\u5316",id:"211-\u5168\u7403\u5316\u548c\u672c\u5730\u5316",level:2},{value:"21.2 \u6ce8\u518c\u670d\u52a1",id:"212-\u6ce8\u518c\u670d\u52a1",level:2},{value:"21.3 \u5982\u4f55\u4f7f\u7528",id:"213-\u5982\u4f55\u4f7f\u7528",level:2},{value:"21.3.1 \u914d\u7f6e LocalizationSettings",id:"2131-\u914d\u7f6e-localizationsettings",level:3},{value:"21.3.2 \u521b\u5efa Resources \u6587\u4ef6\u5939",id:"2132-\u521b\u5efa-resources-\u6587\u4ef6\u5939",level:3},{value:"21.4 L \u9759\u6001\u7c7b",id:"214-l-\u9759\u6001\u7c7b",level:2},{value:"21.5 \u4f7f\u7528\u4f8b\u5b50",id:"215-\u4f7f\u7528\u4f8b\u5b50",level:2},{value:"21.5.1 \u5728\u7c7b\u4e2d\u4f7f\u7528",id:"2151-\u5728\u7c7b\u4e2d\u4f7f\u7528",level:3},{value:"21.5.2 \u5728\u89c6\u56fe\u4e2d\u4f7f\u7528",id:"2152-\u5728\u89c6\u56fe\u4e2d\u4f7f\u7528",level:3},{value:"21.5.3 \u5728\u9a8c\u8bc1\u7279\u6027\u4e2d\u4f7f\u7528",id:"2153-\u5728\u9a8c\u8bc1\u7279\u6027\u4e2d\u4f7f\u7528",level:3},{value:"21.5.4 \u5728\u5f02\u5e38\u6d88\u606f\u4e2d\u4f7f\u7528",id:"2154-\u5728\u5f02\u5e38\u6d88\u606f\u4e2d\u4f7f\u7528",level:3},{value:"21.5.5 SharedResource \u6a21\u5f0f",id:"2155-sharedresource-\u6a21\u5f0f",level:3},{value:"21.6 \u521b\u5efa\u8bed\u8a00\u7ffb\u8bd1\u6587\u4ef6",id:"216-\u521b\u5efa\u8bed\u8a00\u7ffb\u8bd1\u6587\u4ef6",level:2},{value:"21.6.1 \u5728 Resources \u6587\u4ef6\u5939\u4e2d\u521b\u5efa\u8bed\u8a00\u6587\u4ef6",id:"2161-\u5728-resources-\u6587\u4ef6\u5939\u4e2d\u521b\u5efa\u8bed\u8a00\u6587\u4ef6",level:3},{value:"21.7 \u5207\u6362\u8bed\u8a00",id:"217-\u5207\u6362\u8bed\u8a00",level:2},{value:"21.7.1 URL \u53c2\u6570 \u65b9\u5f0f",id:"2171-url-\u53c2\u6570-\u65b9\u5f0f",level:3},{value:"21.7.2 Cookies \u65b9\u5f0f",id:"2172-cookies-\u65b9\u5f0f",level:3},{value:"21.7.3 \u5ba2\u6237\u7aef\u6d4f\u89c8\u5668\u8bed\u8a00\u81ea\u52a8\u5207\u6362",id:"2173-\u5ba2\u6237\u7aef\u6d4f\u89c8\u5668\u8bed\u8a00\u81ea\u52a8\u5207\u6362",level:3},{value:"21.7.4 \u8bf7\u6c42\u62a5\u6587\u5934 Accept-Language \u65b9\u5f0f",id:"2174-\u8bf7\u6c42\u62a5\u6587\u5934-accept-language-\u65b9\u5f0f",level:3},{value:"21.7.5 \u8bf7\u6c42\u62a5\u6587\u5934 Cookie \u65b9\u5f0f",id:"2175-\u8bf7\u6c42\u62a5\u6587\u5934-cookie-\u65b9\u5f0f",level:3},{value:"21.8 \u4f9d\u8d56\u6ce8\u5165\u65b9\u5f0f\u4f7f\u7528",id:"218-\u4f9d\u8d56\u6ce8\u5165\u65b9\u5f0f\u4f7f\u7528",level:2},{value:"21.9 LocalizationSettings \u914d\u7f6e",id:"219-localizationsettings-\u914d\u7f6e",level:2},{value:"21.10 \u5173\u4e8e\u4e2d\u6587\u4e0d\u80fd\u5207\u6362\u95ee\u9898",id:"2110-\u5173\u4e8e\u4e2d\u6587\u4e0d\u80fd\u5207\u6362\u95ee\u9898",level:2},{value:"21.11 \u57fa\u4e8e JSON \u6587\u4ef6\u591a\u8bed\u8a00",id:"2111-\u57fa\u4e8e-json-\u6587\u4ef6\u591a\u8bed\u8a00",level:2},{value:"21.12 \u591a\u8bed\u8a00\u5176\u4ed6\u5b9e\u73b0",id:"2112-\u591a\u8bed\u8a00\u5176\u4ed6\u5b9e\u73b0",level:2},{value:"21.13 \u5728 WinForm/WPF \u4e2d\u4f7f\u7528",id:"2113-\u5728-winformwpf-\u4e2d\u4f7f\u7528",level:2},{value:"21.13.1 WinForm \u4e2d\u4f7f\u7528",id:"21131-winform-\u4e2d\u4f7f\u7528",level:3},{value:"21.13.2 \u5728 WPF \u4e2d\u4f7f\u7528",id:"21132-\u5728-wpf-\u4e2d\u4f7f\u7528",level:3},{value:"21.14 \u5173\u4e8e DateTime.Now \u95ee\u9898",id:"2114-\u5173\u4e8e-datetimenow-\u95ee\u9898",level:2},{value:"21.15 \u5173\u4e8e Blazor \u9879\u76ee\u95ee\u9898",id:"2115-\u5173\u4e8e-blazor-\u9879\u76ee\u95ee\u9898",level:2},{value:"21.16 \u533a\u57df\u7801\u5217\u8868",id:"2116-\u533a\u57df\u7801\u5217\u8868",level:2},{value:"21.17 \u53cd\u9988\u4e0e\u5efa\u8bae",id:"2117-\u53cd\u9988\u4e0e\u5efa\u8bae",level:2}];function a(e){const n={a:"a",admonition:"admonition",code:"code",h2:"h2",h3:"h3",hr:"hr",li:"li",p:"p",pre:"pre",strong:"strong",ul:"ul",...(0,l.a)(),...e.components},{Details:i}=n;return i||function(e,n){throw new Error("Expected "+(n?"component":"object")+" `"+e+"` to be defined: you likely forgot to import, pass, or provide it.")}("Details",!0),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(i,{children:[(0,s.jsx)("summary",{children:"\ud83d\udcdd \u6a21\u5757\u66f4\u65b0\u65e5\u5fd7"}),(0,s.jsx)("div",{children:(0,s.jsx)("div",{children:(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsxs)(n.li,{children:["\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.strong,{children:"\u65b0\u7279\u6027"})}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsxs)(n.li,{children:["\xa0",(0,s.jsx)(r.Z,{children:"\u65b0\u589e"})," \u591a\u8bed\u8a00\u652f\u6301 ",(0,s.jsx)(n.code,{children:"L.GetDefaultCulture()"})," \u83b7\u53d6\u672c\u5730\u914d\u7f6e\u9ed8\u8ba4\u8bed\u8a00 ",(0,s.jsx)("sup",{children:"4.8.8.49"})," ",(0,s.jsx)("sup",{children:"\u23f1\ufe0f2023.10.25"})," ",(0,s.jsx)(n.a,{href:"https://gitee.com/dotnetchina/Furion/pulls/858",children:"!858"})]}),"\n",(0,s.jsxs)(n.li,{children:["\xa0",(0,s.jsx)(r.Z,{children:"\u65b0\u589e"})," \u591a\u8bed\u8a00\u652f\u6301 ",(0,s.jsx)(n.code,{children:"L.GetString(name, culture)"})," \u83b7\u53d6\u6307\u5b9a\u533a\u57df\u7ffb\u8bd1 ",(0,s.jsx)("sup",{children:"4.8.8.41"})," ",(0,s.jsx)("sup",{children:"\u23f1\ufe0f2023.08.04"})," ",(0,s.jsx)(n.a,{href:"https://gitee.com/dotnetchina/Furion/commit/044b0edfbd622c7c69d685267aafa9f5855a9167",children:"044b0ed"})]}),"\n",(0,s.jsxs)(n.li,{children:["\xa0",(0,s.jsx)(r.Z,{children:"\u65b0\u589e"})," \u591a\u8bed\u8a00\u652f\u6301 ",(0,s.jsx)(n.code,{children:"DateTime"})," \u65f6\u95f4\u683c\u5f0f\u5316\u914d\u7f6e\u8282\u70b9 ",(0,s.jsx)(n.code,{children:"DateTimeFormatCulture"})," ",(0,s.jsx)("sup",{children:"4.8.7.31"})," ",(0,s.jsx)("sup",{children:"\u23f1\ufe0f2023.03.31"})," ",(0,s.jsx)(n.a,{href:"https://gitee.com/dotnetchina/Furion/issues/I6RUOU",children:"#I6RUOU"})]}),"\n",(0,s.jsxs)(n.li,{children:["\xa0",(0,s.jsx)(r.Z,{children:"\u65b0\u589e"})," ",(0,s.jsxs)(n.strong,{children:["\u591a\u8bed\u8a00\u652f\u6301 ",(0,s.jsx)(n.code,{children:".json"})," \u6587\u4ef6\u914d\u7f6e\u65b9\u5f0f\uff08\u63a8\u8350\uff09"]})," ",(0,s.jsx)("sup",{children:"4.8.6"})," ",(0,s.jsx)("sup",{children:"\u23f1\ufe0f2023.02.08"})," ",(0,s.jsx)(n.a,{href:"https://gitee.com/dotnetchina/Furion/issues/I6DL71",children:"#I6DL71"})," ",(0,s.jsx)(n.a,{href:"https://gitee.com/dotnetchina/Furion/issues/I5DXKP",children:"#I5DXKP"})]}),"\n",(0,s.jsxs)(n.li,{children:["\xa0",(0,s.jsx)(r.Z,{children:"\u65b0\u589e"})," ",(0,s.jsx)(n.code,{children:"L.SetCurrentUICulture(culture)"})," \u548c ",(0,s.jsx)(n.code,{children:"L.GetCurrentUICulture()"})," \u9759\u6001\u65b9\u6cd5\uff0c\u53ef\u5728\u8fd0\u884c\u65f6\u52a8\u6001\u4fee\u6539\u5f53\u524d\u7ebf\u7a0b\u533a\u57df\u6027 ",(0,s.jsx)("sup",{children:"4.8.3.10"})," ",(0,s.jsx)("sup",{children:"\u23f1\ufe0f2022.12.23"})," ",(0,s.jsx)(n.a,{href:"https://gitee.com/dotnetchina/Furion/issues/I66JWA",children:"#I66JWA"})]}),"\n",(0,s.jsxs)(n.li,{children:["\xa0",(0,s.jsx)(r.Z,{children:"\u65b0\u589e"})," ",(0,s.jsx)(n.code,{children:"L.SetCulture(culture, immediately)"})," \u65b9\u6cd5\u91cd\u8f7d\uff0c\u53ef\u914d\u7f6e\u8fd0\u884c\u65f6\u4fee\u6539\u591a\u8bed\u8a00\u7acb\u5373\u6709\u6548 ",(0,s.jsx)("sup",{children:"4.8.3.10"})," ",(0,s.jsx)("sup",{children:"\u23f1\ufe0f2022.12.23"})," ",(0,s.jsx)(n.a,{href:"https://gitee.com/dotnetchina/Furion/issues/I66JWA",children:"#I66JWA"})]}),"\n"]}),"\n"]}),"\n",(0,s.jsxs)(n.li,{children:["\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.strong,{children:"\u5176\u4ed6\u66f4\u6539"})}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsxs)(n.li,{children:["\xa0",(0,s.jsx)(r.Z,{children:"\u8c03\u6574"})," \u591a\u8bed\u8a00\u4e2d\u95f4\u4ef6 ",(0,s.jsx)(n.code,{children:"app.UseAppLocalization()"})," \u6dfb\u52a0 ",(0,s.jsx)(n.code,{children:"Action"})," \u59d4\u6258\u53c2\u6570 ",(0,s.jsx)("sup",{children:"4.8.7.30"})," ",(0,s.jsx)("sup",{children:"\u23f1\ufe0f2023.03.31"})," ",(0,s.jsx)(n.a,{href:"https://gitee.com/dotnetchina/Furion/issues/I6RUOU",children:"#I6RUOU"})]}),"\n"]}),"\n"]}),"\n",(0,s.jsxs)(n.li,{children:["\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.strong,{children:"\u6587\u6863"})}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsxs)(n.li,{children:["\xa0",(0,s.jsx)(r.Z,{children:"\u65b0\u589e"})," ",(0,s.jsxs)(n.strong,{children:["\u591a\u8bed\u8a00 ",(0,s.jsx)(n.code,{children:".json"})," \u914d\u7f6e\u65b9\u5f0f\u6587\u6863"]})]}),"\n"]}),"\n"]}),"\n"]})})})]}),"\n","\n","\n",(0,s.jsx)(n.h2,{id:"211-\u5168\u7403\u5316\u548c\u672c\u5730\u5316",children:"21.1 \u5168\u7403\u5316\u548c\u672c\u5730\u5316"}),"\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.strong,{children:"\u5168\u7403\u5316"})," \u662f\u8bbe\u8ba1\u652f\u6301\u4e0d\u540c\u533a\u57df\u6027\u7684\u5e94\u7528\u7a0b\u5e8f\u7684\u8fc7\u7a0b\u3002 \u5168\u7403\u5316\u6dfb\u52a0\u4e86\u5bf9\u4e00\u7ec4\u6709\u5173\u7279\u5b9a\u5730\u7406\u533a\u57df\u7684\u5df2\u5b9a\u4e49\u8bed\u8a00\u811a\u672c\u7684\u8f93\u5165\u3001\u663e\u793a\u548c\u8f93\u51fa\u652f\u6301\u3002"]}),"\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.strong,{children:"\u672c\u5730\u5316"})," \u662f\u5c06\u5df2\u7ecf\u9488\u5bf9\u53ef\u672c\u5730\u5316\u6027\u8fdb\u884c\u5904\u7406\u7684\u5168\u7403\u5316\u5e94\u7528\u8c03\u6574\u4e3a\u7279\u5b9a\u7684\u533a\u57df\u6027/\u533a\u57df\u8bbe\u7f6e\u7684\u8fc7\u7a0b\u3002"]}),"\n",(0,s.jsxs)(n.p,{children:["\u901a\u4fd7\u6765\u8bf4\uff0c\u5c31\u662f\u4f7f\u5e94\u7528\u6216\u7cfb\u7edf\u652f\u6301\u591a\u8bed\u8a00\u5207\u6362\u3002",(0,s.jsx)(n.code,{children:"Furion"})," \u6846\u67b6\u63d0\u4f9b\u4e86\u5b8c\u6574\u652f\u6301\u591a\u8bed\u8a00\u5904\u7406\u7684\u670d\u52a1\u3002"]}),"\n",(0,s.jsx)(n.h2,{id:"212-\u6ce8\u518c\u670d\u52a1",children:"21.2 \u6ce8\u518c\u670d\u52a1"}),"\n",(0,s.jsx)(n.p,{children:"\u5728\u4f7f\u7528\u591a\u8bed\u8a00\u670d\u52a1\u4e4b\u524d\uff0c\u5fc5\u987b\u5148\u6ce8\u518c\u670d\u52a1\uff0c\u5982\uff1a"}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-cs",metastring:"showLineNumbers {4,14-15}",children:"public void ConfigureServices(IServiceCollection services)\r\n{\r\n services.AddControllersWithViews()\r\n .AddAppLocalization(); // \u6ce8\u518c\u591a\u8bed\u8a00\r\n}\r\n\r\npublic void Configure(IApplicationBuilder app, IWebHostEnvironment env)\r\n{\r\n if (env.IsDevelopment())\r\n {\r\n app.UseDeveloperExceptionPage();\r\n }\r\n\r\n // \u914d\u7f6e\u591a\u8bed\u8a00\uff0c\u5fc5\u987b\u5728 \u8def\u7531\u6ce8\u518c\u4e4b\u524d\r\n app.UseAppLocalization();\r\n\r\n app.UseStaticFiles();\r\n app.UseRouting();\r\n\r\n // \u5176\u4ed6\u4e2d\u95f4\u4ef6\r\n}\n"})}),"\n",(0,s.jsx)(n.admonition,{title:"\u7279\u522b\u6ce8\u610f",type:"important",children:(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.code,{children:"app.UseAppLocalization();"})," \u5fc5\u987b\u5728 ",(0,s.jsx)(n.code,{children:"app.UseRouting();"})," \u4e4b\u524d\u6ce8\u518c\u3002"]})}),"\n",(0,s.jsx)(n.h2,{id:"213-\u5982\u4f55\u4f7f\u7528",children:"21.3 \u5982\u4f55\u4f7f\u7528"}),"\n",(0,s.jsxs)(n.h3,{id:"2131-\u914d\u7f6e-localizationsettings",children:["21.3.1 \u914d\u7f6e ",(0,s.jsx)(n.code,{children:"LocalizationSettings"})]}),"\n",(0,s.jsxs)(n.p,{children:["\u6dfb\u52a0 ",(0,s.jsx)(n.code,{children:"LocalizationSettings"})," \u914d\u7f6e\u9009\u9879\uff1a"]}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-json",metastring:"showLineNumbers {2,3}",children:'{\r\n "LocalizationSettings": {\r\n "SupportedCultures": ["zh-CN", "en-US"], // \u914d\u7f6e\u652f\u6301\u7684\u8bed\u8a00\u5217\u8868\r\n "DefaultCulture": "zh-CN" // \u914d\u7f6e\u9ed8\u8ba4\u8bed\u8a00\uff0c\u5982\u679c\u4e0d\u914d\u7f6e\uff0c\u53d6 SupportedCultures \u7684\u7b2c\u4e00\u9879\r\n }\r\n}\n'})}),"\n",(0,s.jsxs)(n.h3,{id:"2132-\u521b\u5efa-resources-\u6587\u4ef6\u5939",children:["21.3.2 \u521b\u5efa ",(0,s.jsx)(n.code,{children:"Resources"})," \u6587\u4ef6\u5939"]}),"\n",(0,s.jsxs)(n.p,{children:["\u63a5\u4e0b\u6765\u5728 ",(0,s.jsx)(n.code,{children:"Web\u542f\u52a8\u9879\u76ee\u5c42"})," \u6dfb\u52a0 ",(0,s.jsx)(n.code,{children:"Resources"})," \u6587\u4ef6\u5939\uff0c\u5982\u56fe\uff1a\uff08",(0,s.jsxs)(n.strong,{children:["\u53ef\u914d\u7f6e\u653e\u7f6e\u4efb\u610f\u5c42\uff0c\u89c1\u914d\u7f6e ",(0,s.jsx)(n.code,{children:"AssemblyName"})]}),"\uff09"]}),"\n",(0,s.jsx)("img",{src:(0,c.Z)("img/lang1.png")}),"\n",(0,s.jsxs)(n.h2,{id:"214-l-\u9759\u6001\u7c7b",children:["21.4 ",(0,s.jsx)(n.code,{children:"L"})," \u9759\u6001\u7c7b"]}),"\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.code,{children:"Furion"})," \u6846\u67b6\u4e3b\u8981\u901a\u8fc7 ",(0,s.jsx)(n.code,{children:"L"})," \u9759\u6001\u7c7b\u5b8c\u6210\u591a\u8bed\u8a00\u8f6c\u6362\uff0c\u8be5\u9759\u6001\u7c7b\u6709\u4ee5\u4e0b\u5c5e\u6027\u548c\u65b9\u6cd5\uff1a"]}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.strong,{children:(0,s.jsx)(n.code,{children:"L.Text[\u6587\u672c]"})}),"\uff1a\u8f6c\u6362\u6587\u672c\u591a\u8bed\u8a00"]}),"\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.strong,{children:(0,s.jsx)(n.code,{children:"L.Html[HTML\u4ee3\u7801, \u683c\u5f0f\u5316]"})}),"\uff1a\u8f6c\u6362 ",(0,s.jsx)(n.code,{children:"Html"})," \u591a\u8bed\u8a00"]}),"\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.code,{children:"L.TextOf()[\u6587\u672c]"}),"\uff1a\u8f6c\u6362\u6587\u672c\u591a\u8bed\u8a00\uff0c\u4f7f\u7528\u8be5\u65b9\u5f0f\u90a3\u4e48\u8d44\u6e90\u6587\u4ef6\u9700\u4f7f\u7528\u5b8c\u6574\u7c7b\u578b\u9650\u5b9a\u540d\uff0cFurion 4.8.6+ \u652f\u6301"]}),"\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.code,{children:"L.HtmlOf()[HTML\u4ee3\u7801, \u683c\u5f0f\u5316]"}),"\uff1a\u8f6c\u6362 ",(0,s.jsx)(n.code,{children:"Html"})," \u591a\u8bed\u8a00\uff0c\u4f7f\u7528\u8be5\u65b9\u5f0f\u90a3\u4e48\u8d44\u6e90\u6587\u4ef6\u9700\u4f7f\u7528\u5b8c\u6574\u7c7b\u578b\u9650\u5b9a\u540d\uff0cFurion 4.8.6+ \u652f\u6301"]}),"\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.code,{children:"L.SetCulture(\u533a\u57df\u7801)"}),"\uff1a\u8bbe\u7f6e\u5f53\u524d\u8bed\u8a00\u533a\u57df\uff0c\u9ed8\u8ba4\u5728\u4e0b\u4e00\u6b21\u8bf7\u6c42\u6709\u6548\uff0c\u7b2c\u4e8c\u4e2a\u53c2\u6570\u8bbe\u7f6e ",(0,s.jsx)(n.code,{children:"true"})," \u7acb\u5373\u6709\u6548"]}),"\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.code,{children:"L.GetSelectCulture()"}),"\uff1a\u83b7\u53d6\u5f53\u524d\u7684\u8bed\u8a00\u533a\u57df"]}),"\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.code,{children:"L.GetCultures()"}),"\uff1a\u83b7\u53d6\u7cfb\u7edf\u652f\u6301\u7684\u591a\u8bed\u8a00\u5217\u8868"]}),"\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.code,{children:"L.SetCurrentUICulture(\u533a\u57df\u7801)"}),"\uff1a\u8fd0\u884c\u65f6\u8bbe\u7f6e\u5f53\u524d\u7ebf\u7a0b\u8bed\u8a00\u533a\u57df\uff0c\u7acb\u5373\u6709\u6548\uff0c",(0,s.jsx)(n.code,{children:"Furion 4.8.3.10+"})," \u7248\u672c\u6709\u6548"]}),"\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.code,{children:"L.GetCurrentUICulture()"}),"\uff1a \u83b7\u53d6\u5f53\u524d\u7ebf\u7a0b UI \u533a\u57df\u6027\uff0c",(0,s.jsx)(n.code,{children:"Furion 4.8.3.10+"})," \u7248\u672c\u6709\u6548"]}),"\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.code,{children:"L.GetString(u => u.\u5c5e\u6027)"}),"\uff1a \u6839\u636e\u8868\u8fbe\u5f0f\u83b7\u53d6\u7ffb\u8bd1\uff0c",(0,s.jsx)(n.code,{children:"Furion 4.8.3.10+"})," \u7248\u672c\u6709\u6548"]}),"\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.code,{children:"L.GetString(name, culture)"}),"\uff1a \u83b7\u53d6\u6307\u5b9a\u7684\u533a\u57df\u7ffb\u8bd1\uff0c",(0,s.jsx)(n.code,{children:"Furion 4.8.8.41+"})," \u7248\u672c\u6709\u6548"]}),"\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.code,{children:"L.GetDefaultCulture()"}),"\uff1a \u83b7\u53d6\u672c\u5730\u914d\u7f6e\u9ed8\u8ba4\u8bed\u8a00\uff0c",(0,s.jsx)(n.code,{children:"Furion 4.8.8.49+"})," \u7248\u672c\u6709\u6548"]}),"\n"]}),"\n",(0,s.jsxs)(n.admonition,{title:"\u5c0f\u63d0\u793a",type:"tip",children:[(0,s.jsxs)(n.p,{children:["\u901a\u8fc7 ",(0,s.jsx)(n.code,{children:"L.SetCulture"})," \u5b9e\u9645\u4e0a\u662f\u5f80\u5ba2\u6237\u7aef\u5199\u5165\u533a\u57df ",(0,s.jsx)(n.code,{children:"Cookie"})," \u6570\u636e\uff0c\u4e5f\u5c31\u662f\u53ea\u5bf9\u4e0b\u4e00\u6b21\u8bf7\u6c42\u6709\u6548\uff0c\u5982\u679c\u5e0c\u671b\u8fd0\u884c\u65f6\u7acb\u5373\u6709\u6548\uff0c\u53ef\u901a\u8fc7 ",(0,s.jsx)(n.code,{children:"L.SetCurrentUICulture"})," \u8bbe\u7f6e\u6216\u4e00\u8d77\u8bbe\u7f6e\u5373\u53ef\u3002"]}),(0,s.jsxs)(n.p,{children:["\u4e5f\u53ef\u4ee5\u76f4\u63a5\u901a\u8fc7\u8bbe\u7f6e ",(0,s.jsx)(n.code,{children:"L.SetCulture(\u533a\u57df\u7801, true)"})," \u7acb\u5373\u751f\u6548\uff08\u5305\u542b\u5f53\u524d\u8bf7\u6c42\uff08\u7ebf\u7a0b\uff09\u548c\u4e0b\u4e00\u6b21\u8bf7\u6c42\uff09\u3002"]})]}),"\n",(0,s.jsx)(n.h2,{id:"215-\u4f7f\u7528\u4f8b\u5b50",children:"21.5 \u4f7f\u7528\u4f8b\u5b50"}),"\n",(0,s.jsxs)(n.p,{children:["\u901a\u8fc7\u4e0a\u9762\u7684\u914d\u7f6e\u6b65\u9aa4\u4e4b\u540e\uff0c\u6211\u4eec\u5c31\u53ef\u4ee5\u901a\u8fc7 ",(0,s.jsx)(n.code,{children:"L"})," \u9759\u6001\u7c7b\u5728\u4ee3\u7801\u4efb\u4f55\u4f4d\u7f6e\u4f7f\u7528\u4e86\uff0c\u5982\uff1a"]}),"\n",(0,s.jsx)(n.h3,{id:"2151-\u5728\u7c7b\u4e2d\u4f7f\u7528",children:"21.5.1 \u5728\u7c7b\u4e2d\u4f7f\u7528"}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-cs",metastring:"showLineNumbers",children:'// \u6587\u672c\u591a\u8bed\u8a00\r\nvar apiInterface = L.Text["API \u63a5\u53e3"];\r\nvar sourceCode = L.Text["\u6e90\u7801\u5730\u5740"];\r\nvar other = L.Text["\u5176\u4ed6{0}", "\u7684"];\r\n\r\n// HTML \u6807\u8bb0\u591a\u8bed\u8a00\r\nvar name = L.Html["Hello {0}", name];\n'})}),"\n",(0,s.jsx)(n.h3,{id:"2152-\u5728\u89c6\u56fe\u4e2d\u4f7f\u7528",children:"21.5.2 \u5728\u89c6\u56fe\u4e2d\u4f7f\u7528"}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-html",metastring:"showLineNumbers {1,6,9}",children:'@using Furion.Localization\r\n\r\n
\r\n

\u8ba9 .NET \u5f00\u53d1\u66f4\u7b80\u5355\uff0c\u66f4\u901a\u7528\uff0c\u66f4\u6d41\u884c\u3002

\r\n

\r\n @L.Text["API \u63a5\u53e3"]      @L.Text["\u6e90\u7801\u5730\u5740"]\r\n

\r\n
\n'})}),"\n",(0,s.jsx)(n.h3,{id:"2153-\u5728\u9a8c\u8bc1\u7279\u6027\u4e2d\u4f7f\u7528",children:"21.5.3 \u5728\u9a8c\u8bc1\u7279\u6027\u4e2d\u4f7f\u7528"}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-cs",metastring:"showLineNumbers",children:'[Required(ErrorMessage = "\u5fc5\u586b\u6d88\u606f")]\n'})}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsxs)(n.strong,{children:["\u6240\u6709\u9a8c\u8bc1\u7279\u6027\u5df2\u7ecf\u81ea\u52a8\u652f\u6301\u591a\u8bed\u8a00\u914d\u7f6e\u4e86\uff0c\u65e0\u9700\u901a\u8fc7 ",(0,s.jsx)(n.code,{children:"L.Text[]"})," \u8c03\u7528\u3002"]})}),"\n",(0,s.jsx)(n.h3,{id:"2154-\u5728\u5f02\u5e38\u6d88\u606f\u4e2d\u4f7f\u7528",children:"21.5.4 \u5728\u5f02\u5e38\u6d88\u606f\u4e2d\u4f7f\u7528"}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-cs",metastring:"showLineNumbers {8}",children:'using Furion.FriendlyException;\r\n\r\nnamespace Furion.Application\r\n{\r\n [ErrorCodeType]\r\n public enum ErrorCodes\r\n {\r\n [ErrorCodeItemMetadata("\u7528\u6237\u540d\u4e0d\u80fd\u4e3a\u7a7a")]\r\n z1000\r\n }\r\n}\n'})}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsxs)(n.strong,{children:["\u6240\u6709\u5f02\u5e38\u6d88\u606f\u7279\u6027\u5df2\u7ecf\u81ea\u52a8\u652f\u6301\u591a\u8bed\u8a00\u914d\u7f6e\u4e86\uff0c\u65e0\u9700\u901a\u8fc7 ",(0,s.jsx)(n.code,{children:"L.Text[]"})," \u8c03\u7528\u3002"]})}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-cs",metastring:"showLineNumbers",children:"throw Oops.Oh(ErrorCodes.z1000); // \u81ea\u52a8\u5e94\u7528\u591a\u8bed\u8a00\n"})}),"\n",(0,s.jsxs)(n.h3,{id:"2155-sharedresource-\u6a21\u5f0f",children:["21.5.5 ",(0,s.jsx)(n.code,{children:"SharedResource"})," \u6a21\u5f0f"]}),"\n",(0,s.jsx)(n.admonition,{title:"\u7248\u672c\u8bf4\u660e",type:"important",children:(0,s.jsxs)(n.p,{children:["\u4ee5\u4e0b\u5185\u5bb9\u4ec5\u9650 ",(0,s.jsx)(n.code,{children:"Furion 4.3.7 +"})," \u7248\u672c\u4f7f\u7528\u3002"]})}),"\n",(0,s.jsxs)(n.p,{children:["\u6b63\u5e38\u60c5\u51b5\u4e0b\uff0c\u6211\u4eec\u90fd\u662f\u901a\u8fc7 ",(0,s.jsx)(n.code,{children:'L.Text["Hello"]'})," \u65b9\u5f0f\u8f93\u51fa ",(0,s.jsx)(n.code,{children:"Hello"})," \u5728\u4e0d\u540c\u7684\u533a\u57df\u8bed\u8a00\u7684\u7ffb\u8bd1\uff0c\u4f46\u662f\u4f1a\u5bfc\u81f4 ",(0,s.jsx)(n.code,{children:"Hello"})," \u786c\u7f16\u7801\u5b57\u7b26\u4e32\u6563\u843d\u5230\u5904\u90fd\u662f\u3002"]}),"\n",(0,s.jsxs)(n.p,{children:["\u6240\u4ee5 ",(0,s.jsx)(n.code,{children:"Furion"})," \u63d0\u4f9b\u4e86 ",(0,s.jsx)(n.code,{children:"SharedResource"})," \u6a21\u5f0f\uff0c\u53ea\u9700\u8981\u521b\u5efa\u4e00\u4e2a ",(0,s.jsx)(n.code,{children:"SharedResource.cs"})," \u7c7b\uff08\u53ef\u4ee5\u4efb\u4f55\u540d\u5b57\uff09\u5e76\u6dfb\u52a0\u5bf9\u5e94\u7684\u5c5e\u6027\u5373\u53ef\uff0c\u5982\uff1a"]}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-cs",metastring:"showLineNumbers {3,5,7}",children:"namespace Furion.Core;\r\n\r\npublic class SharedResource\r\n{\r\n public string Hello { get; set; }\r\n\r\n public string Name { get; set; }\r\n}\n"})}),"\n",(0,s.jsx)(n.p,{children:"\u4f7f\u7528\u5982\u4e0b\uff1a"}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-cs",metastring:"showLineNumbers",children:'var hello = L.GetString(u => u.Hello); // \u6bd4 L.Text["Hello"]; \u5bb9\u6613\u7ef4\u62a4\r\nvar name = L.GetString(u => u.Name); // \u6bd4 L.Text["Name"]; \u5bb9\u6613\u7ef4\u62a4\n'})}),"\n",(0,s.jsxs)(n.p,{children:["\u5f53\u7136\u4e5f\u6709\u66f4\u7b80\u5355\u7684\u65b9\u5f0f\uff0c\u5c31\u662f\u4f7f\u7528 ",(0,s.jsx)(n.code,{children:"nameof"}),"\uff0c\u5982\uff1a"]}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-cs",metastring:"showLineNumbers",children:'var hello = L.Text[nameof(SharedResource.Hello)]; // \u6bd4 L.Text["Hello"]; \u5bb9\u6613\u7ef4\u62a4\r\nvar name = L.Text[nameof(SharedResource.Name)]; // \u6bd4 L.Text["Name"]; \u5bb9\u6613\u7ef4\u62a4\n'})}),"\n",(0,s.jsx)(n.h2,{id:"216-\u521b\u5efa\u8bed\u8a00\u7ffb\u8bd1\u6587\u4ef6",children:"21.6 \u521b\u5efa\u8bed\u8a00\u7ffb\u8bd1\u6587\u4ef6"}),"\n",(0,s.jsxs)(n.p,{children:["\u5728 ",(0,s.jsx)(n.code,{children:"Furion"})," \u6846\u67b6\u4e2d\uff0c\u5982\u679c\u6ca1\u627e\u5230\u5bf9\u5e94\u7684\u8bed\u8a00\u7ffb\u8bd1\u6587\u4ef6\uff0c\u5219\u81ea\u52a8\u663e\u793a\u5b57\u7b26\u4e32\u6587\u672c\uff0c\u5982\uff1a"]}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-cs",metastring:"showLineNumbers",children:'L.Text["\u6ca1\u627e\u5230"]; // => \u5982\u679c\u8bbe\u7f6e\u4e3a\u82f1\u6587\uff0c\u4f46\u662f\u6ca1\u6709\u6587\u4ef6\uff0c\u5219\u76f4\u63a5\u8f93\u51fa \u201c\u6ca1\u627e\u5230\u201d\n'})}),"\n",(0,s.jsxs)(n.h3,{id:"2161-\u5728-resources-\u6587\u4ef6\u5939\u4e2d\u521b\u5efa\u8bed\u8a00\u6587\u4ef6",children:["21.6.1 \u5728 ",(0,s.jsx)(n.code,{children:"Resources"})," \u6587\u4ef6\u5939\u4e2d\u521b\u5efa\u8bed\u8a00\u6587\u4ef6"]}),"\n",(0,s.jsxs)(n.p,{children:["\u63a5\u4e0b\u6765\uff0c\u6211\u4eec\u53ea\u9700\u8981\u5728\u521a\u521a\u7684 ",(0,s.jsx)(n.code,{children:"Resources"})," \u6587\u4ef6\u5939\u4e2d\u6dfb\u52a0 ",(0,s.jsx)(n.code,{children:".resx"})," \u8d44\u6e90\u6587\u4ef6\u5373\u53ef\uff0c\u8d44\u6e90\u6587\u4ef6\u547d\u540d\u89c4\u5219\uff1a",(0,s.jsx)(n.code,{children:"Lang.\u533a\u57df\u7801.resx"}),"\uff0c\u5982\uff1a",(0,s.jsx)(n.code,{children:"Lang.en-US.resx"}),"\u3002"]}),"\n",(0,s.jsx)("img",{src:(0,c.Z)("img/lang2.png")}),"\n",(0,s.jsx)("img",{src:(0,c.Z)("img/lang3.png")}),"\n",(0,s.jsx)("p",{}),"\n",(0,s.jsx)(n.p,{children:"\u63a5\u4e0b\u6765\uff0c\u53ea\u9700\u8981\u628a\u5bf9\u5e94\u8bed\u8a00\u7248\u672c\u7684\u952e\u503c\u5bf9\u586b\u5199\u5373\u53ef\u3002"}),"\n",(0,s.jsxs)(n.admonition,{title:"\u81ea\u5b9a\u4e49\u8d44\u6e90\u6587\u4ef6\u540d\u6216\u5b58\u653e\u7a0b\u5e8f\u96c6",type:"tip",children:[(0,s.jsxs)(n.p,{children:["\u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c\u8d44\u6e90\u6587\u4ef6\u540d\u5fc5\u987b\u4ee5 ",(0,s.jsx)(n.code,{children:"Lang"})," \u5f00\u5934\uff0c\u4e14\u9ed8\u8ba4\u653e\u5728\u542f\u52a8\u5c42\uff0c\u5982\u679c\u9700\u8981\u81ea\u5b9a\u4e49\uff0c\u6dfb\u52a0\u914d\u7f6e\u6587\u4ef6\u5373\u53ef"]}),(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-json",metastring:"showLineNumbers",children:'{\r\n "LocalizationSettings": {\r\n "LanguageFilePrefix": "MyLang"\r\n // "AssemblyName": "\u4f60\u7684\u5176\u4ed6\u5c42\u7a0b\u5e8f\u96c6\u540d\u79f0"\r\n }\r\n}\n'})}),(0,s.jsxs)(n.p,{children:["\u4e4b\u540e\uff0c\u5c31\u53ef\u4ee5\uff1a",(0,s.jsx)(n.code,{children:"MyLang.\u533a\u57df\u7801.resx"}),"\u3002"]})]}),"\n",(0,s.jsx)(n.h2,{id:"217-\u5207\u6362\u8bed\u8a00",children:"21.7 \u5207\u6362\u8bed\u8a00"}),"\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.code,{children:"Furion"})," \u63d0\u4f9b\u4e86\u4e09\u79cd\u8bed\u8a00\u5207\u6362\u65b9\u5f0f\u8fdb\u884c\u5207\u6362\u8bed\u8a00\uff1a"]}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.code,{children:"URL \u53c2\u6570"})," \u65b9\u5f0f\uff1a ",(0,s.jsx)(n.code,{children:"?culture=en-US"}),"\uff0c",(0,s.jsx)(n.strong,{children:"\u6b64\u65b9\u5f0f\u4f18\u5148\u7ea7\u6700\u9ad8"}),"\uff0c\u683c\u5f0f\u4e3a\uff1a",(0,s.jsx)(n.code,{children:"culture=\u533a\u57df\u7801"})]}),"\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.code,{children:"Cookies"})," \u65b9\u5f0f\uff1a\u8c03\u7528 ",(0,s.jsx)(n.code,{children:"L.SetCulture(\u533a\u57df\u7801)"})," \u65b9\u5f0f\u5207\u6362"]}),"\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.code,{children:"\u5ba2\u6237\u7aef\u6d4f\u89c8\u5668\u8bed\u8a00\u81ea\u52a8\u5339\u914d"}),"\uff1a\u5982\u679c\u524d\u9762\u4e24\u79cd\u65b9\u5f0f\u90fd\u6ca1\u6709\u8bbe\u7f6e\uff0c",(0,s.jsx)(n.strong,{children:"\u652f\u6301\u81ea\u52a8\u6839\u636e\u5ba2\u6237\u7aef\u6d4f\u89c8\u5668\u8bed\u8a00\u8fdb\u884c\u5339\u914d\u3002"})]}),"\n"]}),"\n",(0,s.jsxs)(n.h3,{id:"2171-url-\u53c2\u6570-\u65b9\u5f0f",children:["21.7.1 ",(0,s.jsx)(n.code,{children:"URL \u53c2\u6570"})," \u65b9\u5f0f"]}),"\n",(0,s.jsx)("img",{src:(0,c.Z)("img/lang4.gif")}),"\n",(0,s.jsxs)(n.h3,{id:"2172-cookies-\u65b9\u5f0f",children:["21.7.2 ",(0,s.jsx)(n.code,{children:"Cookies"})," \u65b9\u5f0f"]}),"\n",(0,s.jsxs)(n.p,{children:["\u6b64\u65b9\u5f0f\u53ea\u9700\u8981\u63d0\u4f9b\u4e00\u4e2a ",(0,s.jsx)(n.code,{children:"api"})," \u6216\u8bbe\u7f6e\u4ee3\u7801\u5373\u53ef\uff1a"]}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-cs",metastring:"showLineNumbers",children:'L.SetCulture("en-US"); // en-US \u4e5f\u53ef\u4ee5\u901a\u8fc7\u524d\u7aef\u4f20\u9012\u8fc7\u6765\uff0c\u8fd9\u6837\u5c31\u53ef\u4ee5\u4e0d\u7528 `culture` \u53c2\u6570\u4e86\uff0c\u53ef\u4ee5\u81ea\u5b9a\u4e49\u53c2\u6570\u3002\n'})}),"\n",(0,s.jsxs)(n.p,{children:["\u8fd9\u6837\u5c31\u53ef\u4ee5\u76f4\u63a5\u6839\u636e\u5ba2\u6237\u7aef\u5b58\u50a8\u7684 ",(0,s.jsx)(n.code,{children:"cookies"})," \u81ea\u52a8\u5207\u6362\u4e86\u3002"]}),"\n",(0,s.jsxs)(n.h3,{id:"2173-\u5ba2\u6237\u7aef\u6d4f\u89c8\u5668\u8bed\u8a00\u81ea\u52a8\u5207\u6362",children:["21.7.3 ",(0,s.jsx)(n.code,{children:"\u5ba2\u6237\u7aef\u6d4f\u89c8\u5668\u8bed\u8a00\u81ea\u52a8\u5207\u6362"})]}),"\n",(0,s.jsx)(n.p,{children:"\u63a8\u8350\u6b64\u65b9\u5f0f\uff0c\u53ef\u4ee5\u81ea\u52a8\u6839\u636e\u6d4f\u89c8\u5668\u7684\u8bed\u8a00\u81ea\u52a8\u914d\u7f6e\uff1a"}),"\n",(0,s.jsx)("img",{src:(0,c.Z)("img/lang5.gif")}),"\n",(0,s.jsxs)(n.h3,{id:"2174-\u8bf7\u6c42\u62a5\u6587\u5934-accept-language-\u65b9\u5f0f",children:["21.7.4 \u8bf7\u6c42\u62a5\u6587\u5934 ",(0,s.jsx)(n.code,{children:"Accept-Language"})," \u65b9\u5f0f"]}),"\n",(0,s.jsx)(n.p,{children:"\u5982\u679c\u4f7f\u7528\u7b2c\u4e09\u65b9\u5de5\u5177\u8bf7\u6c42\uff0c\u4e5f\u53ef\u4ee5\u6dfb\u52a0\u8bf7\u6c42\u62a5\u6587\u5934\u65b9\u5f0f\uff0c\u5982\uff1a"}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-txt",metastring:"showLineNumbers",children:"Accept-Language: en-US\n"})}),"\n",(0,s.jsxs)(n.h3,{id:"2175-\u8bf7\u6c42\u62a5\u6587\u5934-cookie-\u65b9\u5f0f",children:["21.7.5 \u8bf7\u6c42\u62a5\u6587\u5934 ",(0,s.jsx)(n.code,{children:"Cookie"})," \u65b9\u5f0f"]}),"\n",(0,s.jsx)(n.p,{children:"\u5982\u679c\u4f7f\u7528\u7b2c\u4e09\u65b9\u5de5\u5177\u8bf7\u6c42\uff0c\u4e5f\u53ef\u4ee5\u6dfb\u52a0\u8bf7\u6c42\u62a5\u6587\u5934\u65b9\u5f0f\uff0c\u5982\uff1a"}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-txt",metastring:"showLineNumbers",children:"Cookie: c%3Den-US%7Cuic%3Den-USen-US\n"})}),"\n",(0,s.jsxs)(n.p,{children:["\u5b83\u7684\u660e\u6587\u683c\u5f0f\u4e3a\uff1a",(0,s.jsx)(n.code,{children:"c=en-US|uic=en-US"}),"\u3002"]}),"\n",(0,s.jsx)(n.admonition,{title:"\u6ce8\u610f",type:"caution",children:(0,s.jsxs)(n.p,{children:["\u8fd9\u79cd\u65b9\u5f0f\u4e0d\u80fd\u4f7f\u7528 ",(0,s.jsx)(n.code,{children:"\u660e\u6587"}),"\uff0c\u5426\u5219\u65e0\u6548\u3002\u53e6\u5916 ",(0,s.jsx)(n.code,{children:"c"})," \u548c ",(0,s.jsx)(n.code,{children:"uic"})," \u7684\u503c\u901a\u5e38\u4e00\u81f4\u3002"]})}),"\n",(0,s.jsx)(n.h2,{id:"218-\u4f9d\u8d56\u6ce8\u5165\u65b9\u5f0f\u4f7f\u7528",children:"21.8 \u4f9d\u8d56\u6ce8\u5165\u65b9\u5f0f\u4f7f\u7528"}),"\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.code,{children:"Furion"})," \u6846\u67b6\u4e5f\u517c\u5bb9 ",(0,s.jsx)(n.code,{children:".NET Core"})," \u81ea\u5e26\u7684\u4f9d\u8d56\u6ce8\u5165\u65b9\u5f0f\uff0c\u5982\uff1a"]}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-cs",metastring:"showLineNumbers {3,5,7,12}",children:' public class TestController : Controller\r\n {\r\n private readonly IStringLocalizer _localizer;\r\n\r\n public TestController(IStringLocalizerFactory factory)\r\n {\r\n _localizer = factory.Create();\r\n }\r\n\r\n public IActionResult About()\r\n {\r\n ViewData["Message"] = _localizer["Your application description page."];\r\n }\r\n }\n'})}),"\n",(0,s.jsxs)(n.h2,{id:"219-localizationsettings-\u914d\u7f6e",children:["21.9 ",(0,s.jsx)(n.code,{children:"LocalizationSettings"})," \u914d\u7f6e"]}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.code,{children:"LocalizationSettings"})," \u591a\u8bed\u8a00\u914d\u7f6e\u6839\u8282\u70b9","\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.code,{children:"ResourcesPath"}),"\uff1a\u8d44\u6e90\u76ee\u5f55\uff0c",(0,s.jsx)(n.code,{children:"string"})," \u7c7b\u578b\uff0c\u9ed8\u8ba4 ",(0,s.jsx)(n.code,{children:"Resources"})]}),"\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.code,{children:"SupportedCultures"}),"\uff1a\u652f\u6301\u7684\u8bed\u8a00\u533a\u57df\u7801\u7c7b\u522b\uff0c",(0,s.jsx)(n.code,{children:"string[]"})," \u7c7b\u578b"]}),"\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.code,{children:"DefaultCulture"}),"\uff1a\u9ed8\u8ba4\u8bed\u8a00\u533a\u57df\u7801\uff0c\u5982\u679c\u4e3a\u7a7a\uff0c\u5219\u53d6 ",(0,s.jsx)(n.code,{children:"SupportedCultures"})," \u7b2c\u4e00\u9879"]}),"\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.code,{children:"LanguageFilePrefix"}),"\uff1a\u914d\u7f6e\u8d44\u6e90\u6587\u4ef6\u524d\u7f00\uff0c",(0,s.jsx)(n.code,{children:"string"})," \u7c7b\u578b\uff0c\u9ed8\u8ba4 ",(0,s.jsx)(n.code,{children:"Lang"})]}),"\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.code,{children:"AssemblyName"}),"\uff1a\u914d\u7f6e\u8d44\u6e90\u6587\u4ef6\u5b58\u653e\u7a0b\u5e8f\u96c6\u540d\uff0c",(0,s.jsx)(n.code,{children:"string"})," \u7c7b\u578b\uff0c\u9ed8\u8ba4 ",(0,s.jsx)(n.code,{children:"\u542f\u52a8\u5c42"})," \u540d\u79f0"]}),"\n"]}),"\n"]}),"\n"]}),"\n",(0,s.jsx)(n.h2,{id:"2110-\u5173\u4e8e\u4e2d\u6587\u4e0d\u80fd\u5207\u6362\u95ee\u9898",children:"21.10 \u5173\u4e8e\u4e2d\u6587\u4e0d\u80fd\u5207\u6362\u95ee\u9898"}),"\n",(0,s.jsxs)(n.p,{children:["\u82e5\u901a\u8fc7 ",(0,s.jsx)(n.code,{children:"dotnet build"})," \u547d\u4ee4\u884c\u7f16\u8bd1\u540e\u53d1\u5e03\u7684\u4ee3\u7801\uff08\u6bd4\u5982 ",(0,s.jsx)(n.code,{children:"jenkins"})," \u4ee5\u53ca\u5176\u4ed6 ",(0,s.jsx)(n.code,{children:"devops"})," \u5de5\u5177\uff09\uff0c\u65e0\u6cd5\u751f\u6210 ",(0,s.jsx)(n.code,{children:"zh-CN"})," \u8d44\u6e90\u6587\u4ef6\uff0c\u4f1a\u51fa\u73b0\u4e2d\u6587\u65e0\u6cd5\u663e\u793a\u7684\u95ee\u9898\uff0c\u8fd9\u65f6\u5019\u53ea\u9700\u8981\u5c06 ",(0,s.jsx)(n.code,{children:"Lang.zh-CN.resx"})," \u4fee\u6539\u4e3a\uff1a",(0,s.jsx)(n.code,{children:"Lang.zh-Hans.resx"})," \u6216 ",(0,s.jsx)(n.code,{children:"Lang.zh-Hant.resx"})," \u6216 ",(0,s.jsx)(n.code,{children:"Lang.zh.resx"})," \u5373\u53ef\u3002"]}),"\n",(0,s.jsxs)(n.p,{children:["\u76f8\u5173\u6587\u6863\u8bf4\u660e ",(0,s.jsx)(n.a,{href:"https://docs.microsoft.com/zh-cn/dotnet/api/system.globalization.cultureinfo?view=net-6.0",children:"https://docs.microsoft.com/zh-cn/dotnet/api/system.globalization.cultureinfo?view=net-6.0"})]}),"\n",(0,s.jsxs)(n.h2,{id:"2111-\u57fa\u4e8e-json-\u6587\u4ef6\u591a\u8bed\u8a00",children:["21.11 \u57fa\u4e8e ",(0,s.jsx)(n.code,{children:"JSON"})," \u6587\u4ef6\u591a\u8bed\u8a00"]}),"\n",(0,s.jsx)(n.admonition,{title:"\u7248\u672c\u8bf4\u660e",type:"important",children:(0,s.jsxs)(n.p,{children:["\u4ee5\u4e0b\u5185\u5bb9\u4ec5\u9650 ",(0,s.jsx)(n.code,{children:"Furion 4.8.6 +"})," \u7248\u672c\u4f7f\u7528\u3002"]})}),"\n",(0,s.jsxs)(n.p,{children:["\u5728\u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c\u5fae\u8f6f\u63a8\u8350\u4f7f\u7528 ",(0,s.jsx)(n.code,{children:".resx"})," \u8d44\u6e90\u6587\u4ef6\u683c\u5f0f\u4f5c\u4e3a\u591a\u8bed\u8a00\u914d\u7f6e\u6587\u4ef6\u683c\u5f0f\uff0c",(0,s.jsx)(n.strong,{children:"\u4f46\u6b64\u65b9\u5f0f\u65e0\u6cd5\u5728\u8fd0\u884c\u65f6\u8fdb\u884c\u4fee\u6539"}),"\u3002\u6240\u4ee5\u793e\u533a\u66f4\u591a\u4f7f\u7528\u7684\u662f ",(0,s.jsx)(n.code,{children:".json"})," \u6587\u4ef6\u683c\u5f0f\u4f5c\u4e3a\u591a\u8bed\u8a00\u914d\u7f6e\uff0c\u53ef\u5728\u8fd0\u884c\u65f6\u52a8\u6001\u4fee\u6539\u3002"]}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsxs)(n.p,{children:[(0,s.jsxs)(n.strong,{children:[(0,s.jsx)(n.code,{children:"Furion"})," \u6846\u67b6\u9ed8\u8ba4\u4e0d\u63d0\u4f9b ",(0,s.jsx)(n.code,{children:"json"})," \u591a\u8bed\u8a00\u914d\u7f6e\u529f\u80fd\uff0c\u4f46\u975e\u5e38\u5bb9\u6613\u96c6\u6210\u7b2c\u4e09\u65b9\u591a\u8bed\u8a00\u5e93"]}),"\uff0c\u5728\u8fd9\u91cc\u63a8\u8350\uff1a",(0,s.jsx)(n.a,{href:"https://github.com/hishamco/My.Extensions.Localization.Json",children:"https://github.com/hishamco/My.Extensions.Localization.Json"}),"\uff1a"]}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsxs)(n.strong,{children:["1. \u5b89\u88c5 ",(0,s.jsx)(n.code,{children:"My.Extensions.Localization.Json"})," \u62d3\u5c55\uff0c\u901a\u5e38\u5b89\u88c5\u5728 ",(0,s.jsx)(n.code,{children:"XXX.Web.Core"})," \u5c42"]})}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-bash",metastring:"showLineNumbers",children:"dotnet add package My.Extensions.Localization.Json\n"})}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsxs)(n.strong,{children:["2. \u5728 ",(0,s.jsx)(n.code,{children:"Startup.cs"})," \u4e2d\u6ce8\u518c\u670d\u52a1"]})}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-cs",metastring:"showLineNumbers {4-8,19}",children:"public void ConfigureServices(IServiceCollection services)\r\n{\r\n services.AddControllersWithViews()\r\n .AddAppLocalization(settings =>\r\n {\r\n // \u96c6\u6210\u7b2c\u4e09\u65b9 json \u914d\u7f6e\r\n services.AddJsonLocalization(options => options.ResourcesPath = settings.ResourcesPath);\r\n }); // \u6ce8\u518c\u591a\u8bed\u8a00\r\n}\r\n\r\npublic void Configure(IApplicationBuilder app, IWebHostEnvironment env)\r\n{\r\n if (env.IsDevelopment())\r\n {\r\n app.UseDeveloperExceptionPage();\r\n }\r\n\r\n // \u914d\u7f6e\u591a\u8bed\u8a00\uff0c\u5fc5\u987b\u5728 \u8def\u7531\u6ce8\u518c\u4e4b\u524d\r\n app.UseAppLocalization();\r\n\r\n app.UseStaticFiles();\r\n app.UseRouting();\r\n\r\n // \u5176\u4ed6\u4e2d\u95f4\u4ef6\r\n}\n"})}),"\n",(0,s.jsx)(n.admonition,{title:"\u7279\u522b\u6ce8\u610f",type:"important",children:(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.code,{children:"app.UseAppLocalization();"})," \u5fc5\u987b\u5728 ",(0,s.jsx)(n.code,{children:"app.UseRouting();"})," \u4e4b\u524d\u6ce8\u518c\u3002"]})}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsxs)(n.strong,{children:["3. \u5728 ",(0,s.jsx)(n.code,{children:"Resources"})," \u6587\u4ef6\u5939\u4e2d\u6dfb\u52a0 ",(0,s.jsx)(n.code,{children:".json"})," \u6587\u4ef6\u5373\u53ef\uff0c\u8d44\u6e90\u6587\u4ef6\u547d\u540d\u89c4\u5219\uff1a",(0,s.jsx)(n.code,{children:"Lang.\u533a\u57df\u7801.json"}),"\uff0c\u5982\uff1a",(0,s.jsx)(n.code,{children:"Lang.en-US.json"}),"\u3002"]})}),"\n",(0,s.jsx)("img",{src:(0,c.Z)("img/dyy1.png")}),"\n",(0,s.jsx)("img",{src:(0,c.Z)("img/dyy2.png")}),"\n",(0,s.jsxs)(n.admonition,{title:"\u81ea\u5b9a\u4e49\u8d44\u6e90\u6587\u4ef6\u540d\u6216\u5b58\u653e\u7a0b\u5e8f\u96c6",type:"tip",children:[(0,s.jsxs)(n.p,{children:["\u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c\u8d44\u6e90\u6587\u4ef6\u540d\u5fc5\u987b\u4ee5 ",(0,s.jsx)(n.code,{children:"Lang"})," \u5f00\u5934\uff0c\u4e14\u9ed8\u8ba4\u653e\u5728\u542f\u52a8\u5c42\uff0c\u5982\u679c\u9700\u8981\u81ea\u5b9a\u4e49\uff0c\u6dfb\u52a0\u914d\u7f6e\u6587\u4ef6\u5373\u53ef"]}),(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-json",metastring:"showLineNumbers",children:'{\r\n "LocalizationSettings": {\r\n "LanguageFilePrefix": "MyLang"\r\n // "AssemblyName": "\u4f60\u7684\u5176\u4ed6\u5c42\u7a0b\u5e8f\u96c6\u540d\u79f0"\r\n }\r\n}\n'})}),(0,s.jsxs)(n.p,{children:["\u4e4b\u540e\uff0c\u5c31\u53ef\u4ee5\uff1a",(0,s.jsx)(n.code,{children:"MyLang.\u533a\u57df\u7801.json"}),"\u3002"]})]}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.strong,{children:"4. \u5728\u4ee3\u7801\u4e2d\u4f7f\u7528"})}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-cs",metastring:"showLineNumbers",children:'L.Text["Furion"]; // => \u5982\u679c\u8bbe\u7f6e\u4e3a\u82f1\u6587\uff0c\u4f46\u662f\u6ca1\u6709\u6587\u4ef6\uff0c\u5219\u76f4\u63a5\u8f93\u51fa \u201cFurion\u201d\n'})}),"\n",(0,s.jsx)(n.admonition,{title:"\u5c0f\u77e5\u8bc6",type:"tip",children:(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.strong,{children:"\u96c6\u6210\u7b2c\u4e09\u65b9\u591a\u8bed\u8a00\u5e93\u9664\u4e86\u6ce8\u518c\u670d\u52a1\u548c\u6587\u4ef6\u540e\u7f00\u540d\u6709\u533a\u522b\uff0c\u5176\u4ed6\u7528\u6cd5\u4e00\u6a21\u4e00\u6837\uff08\u5305\u62ec\u5168\u5c40\u914d\u7f6e\uff0c\u7528\u6cd5\u7b49\uff09"}),"\uff0c\u4e5f\u5c31\u662f\u4efb\u4f55\u65f6\u5019\u66ff\u6362\u6210\u7b2c\u4e09\u65b9\u90fd\u53ef\u4ee5\uff0c\u4e1a\u52a1\u4f7f\u7528\u4ee3\u7801\u65e0\u9700\u66f4\u6539\u3002"]})}),"\n",(0,s.jsx)(n.h2,{id:"2112-\u591a\u8bed\u8a00\u5176\u4ed6\u5b9e\u73b0",children:"21.12 \u591a\u8bed\u8a00\u5176\u4ed6\u5b9e\u73b0"}),"\n",(0,s.jsxs)(n.p,{children:["\u5728 ",(0,s.jsx)(n.code,{children:"asp.net core \u672c\u5730\u5316"})," \u6587\u6863\u4e2d\u5fae\u8f6f\u63a8\u8350\u4e86\u4e09\u4e2a\u62d3\u5c55\u5f00\u6e90\u9879\u76ee\uff1a",(0,s.jsx)(n.a,{href:"https://docs.microsoft.com/zh-cn/aspnet/core/fundamentals/localization-extensibility?view=aspnetcore-6.0#localization-resources",children:"https://docs.microsoft.com/zh-cn/aspnet/core/fundamentals/localization-extensibility?view=aspnetcore-6.0#localization-resources"})]}),"\n",(0,s.jsx)(n.p,{children:"\u9009\u62e9\u81ea\u5df1\u5408\u9002\u7684\u5373\u53ef\u3002"}),"\n",(0,s.jsx)("img",{src:(0,c.Z)("img/lang6.png")}),"\n",(0,s.jsxs)(n.h2,{id:"2113-\u5728-winformwpf-\u4e2d\u4f7f\u7528",children:["21.13 \u5728 ",(0,s.jsx)(n.code,{children:"WinForm/WPF"})," \u4e2d\u4f7f\u7528"]}),"\n",(0,s.jsxs)(n.p,{children:["\u6846\u67b6\u63d0\u4f9b\u4e86\u5b8c\u6574\u7684\u591a\u8bed\u8a00\u5728 ",(0,s.jsx)(n.code,{children:"WinForm/WPF"})," \u4e2d\u4f7f\u7528\u3002"]}),"\n",(0,s.jsxs)(n.h3,{id:"21131-winform-\u4e2d\u4f7f\u7528",children:["21.13.1 ",(0,s.jsx)(n.code,{children:"WinForm"})," \u4e2d\u4f7f\u7528"]}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsxs)(n.li,{children:["\u6ce8\u518c ",(0,s.jsx)(n.code,{children:"services.AddAppLocalization()"})," \u670d\u52a1"]}),"\n"]}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-cs",metastring:"showLineNumbers {10-13}",children:"using Microsoft.Extensions.DependencyInjection;\r\n\r\nnamespace WinFormsApp1;\r\n\r\ninternal static class Program\r\n{\r\n [STAThread]\r\n static void Main()\r\n {\r\n Serve.RunNative(services =>\r\n {\r\n services.AddAppLocalization();\r\n });\r\n ApplicationConfiguration.Initialize();\r\n Application.Run(new Form1());\r\n }\r\n}\n"})}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsxs)(n.li,{children:["\u6dfb\u52a0 ",(0,s.jsx)(n.code,{children:"appsettings.json"})," \u914d\u7f6e\u6587\u4ef6\uff0c\u5e76\u8bbe\u7f6e\u5c5e\u6027\u4e3a ",(0,s.jsx)(n.code,{children:"\u5982\u679c\u8f83\u65b0\u5219\u590d\u5236"})]}),"\n"]}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-json",metastring:"showLineNumbers {2}",children:'{\r\n "LocalizationSettings": {\r\n "SupportedCultures": ["zh-CN", "en-US"], // \u914d\u7f6e\u652f\u6301\u7684\u8bed\u8a00\u5217\u8868\r\n "DefaultCulture": "zh-CN" // \u914d\u7f6e\u9ed8\u8ba4\u8bed\u8a00\uff0c\u5982\u679c\u4e0d\u914d\u7f6e\uff0c\u53d6 SupportedCultures \u7684\u7b2c\u4e00\u9879\r\n }\r\n}\n'})}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsxs)(n.li,{children:["\u6dfb\u52a0 ",(0,s.jsx)(n.code,{children:"Resources"})," \u6587\u4ef6\u5939\u5e76\u6dfb\u52a0 ",(0,s.jsx)(n.code,{children:"Lang.\u533a\u57df\u7801.resx"})," \u8d44\u6e90\u6587\u4ef6"]}),"\n"]}),"\n",(0,s.jsxs)(n.p,{children:["\u53c2\u8003 ",(0,s.jsx)(n.a,{href:"/docs/local-language#2161-%E5%9C%A8-resources-%E6%96%87%E4%BB%B6%E5%A4%B9%E4%B8%AD%E5%88%9B%E5%BB%BA%E8%AF%AD%E8%A8%80%E6%96%87%E4%BB%B6",children:"21.6.1 \u5728 Resources \u6587\u4ef6\u5939\u4e2d\u521b\u5efa\u8bed\u8a00\u6587\u4ef6"})]}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsx)(n.li,{children:"\u5728\u4ee3\u7801\u4e2d\u4f7f\u7528"}),"\n"]}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-cs",metastring:"showLineNumbers {2,4}",children:'// \u8bbe\u7f6e\u5f53\u524d\u7ebf\u7a0b UI \u533a\u57df\u6027\r\nL.SetCurrentUICulture("en-US");\r\n// \u901a\u8fc7 L.Text[Key] \u83b7\u53d6\r\nlabel1.Text = L.Text["API \u63a5\u53e3"];\n'})}),"\n",(0,s.jsxs)(n.h3,{id:"21132-\u5728-wpf-\u4e2d\u4f7f\u7528",children:["21.13.2 \u5728 ",(0,s.jsx)(n.code,{children:"WPF"})," \u4e2d\u4f7f\u7528"]}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsxs)(n.li,{children:["\u6ce8\u518c ",(0,s.jsx)(n.code,{children:"services.AddAppLocalization()"})," \u670d\u52a1"]}),"\n"]}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-cs",metastring:"showLineNumbers {7-10}",children:"namespace WpfApp1;\r\n\r\npublic partial class App : Application\r\n{\r\n public App()\r\n {\r\n Serve.RunNative(services =>\r\n {\r\n services.AddAppLocalization();\r\n });\r\n }\r\n}\n"})}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsxs)(n.li,{children:["\u6dfb\u52a0 ",(0,s.jsx)(n.code,{children:"appsettings.json"})," \u914d\u7f6e\u6587\u4ef6\uff0c\u5e76\u8bbe\u7f6e\u5c5e\u6027\u4e3a ",(0,s.jsx)(n.code,{children:"\u5982\u679c\u8f83\u65b0\u5219\u590d\u5236"})]}),"\n"]}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-json",metastring:"showLineNumbers {2}",children:'{\r\n "LocalizationSettings": {\r\n "SupportedCultures": ["zh-CN", "en-US"], // \u914d\u7f6e\u652f\u6301\u7684\u8bed\u8a00\u5217\u8868\r\n "DefaultCulture": "zh-CN" // \u914d\u7f6e\u9ed8\u8ba4\u8bed\u8a00\uff0c\u5982\u679c\u4e0d\u914d\u7f6e\uff0c\u53d6 SupportedCultures \u7684\u7b2c\u4e00\u9879\r\n }\r\n}\n'})}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsxs)(n.li,{children:["\u6dfb\u52a0 ",(0,s.jsx)(n.code,{children:"Resources"})," \u6587\u4ef6\u5939\u5e76\u6dfb\u52a0 ",(0,s.jsx)(n.code,{children:"Lang.\u533a\u57df\u7801.resx"})," \u8d44\u6e90\u6587\u4ef6"]}),"\n"]}),"\n",(0,s.jsxs)(n.p,{children:["\u53c2\u8003 ",(0,s.jsx)(n.a,{href:"/docs/local-language#2161-%E5%9C%A8-resources-%E6%96%87%E4%BB%B6%E5%A4%B9%E4%B8%AD%E5%88%9B%E5%BB%BA%E8%AF%AD%E8%A8%80%E6%96%87%E4%BB%B6",children:"21.6.1 \u5728 Resources \u6587\u4ef6\u5939\u4e2d\u521b\u5efa\u8bed\u8a00\u6587\u4ef6"})]}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsx)(n.li,{children:"\u5728\u4ee3\u7801\u4e2d\u4f7f\u7528"}),"\n"]}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-cs",metastring:"showLineNumbers {2,4}",children:'// \u8bbe\u7f6e\u5f53\u524d\u7ebf\u7a0b UI \u533a\u57df\u6027\r\nL.SetCurrentUICulture("en-US");\r\n// \u901a\u8fc7 L.Text[Key] \u83b7\u53d6\r\nlabel1.Name = L.Text["API \u63a5\u53e3"];\n'})}),"\n",(0,s.jsxs)(n.h2,{id:"2114-\u5173\u4e8e-datetimenow-\u95ee\u9898",children:["21.14 \u5173\u4e8e ",(0,s.jsx)(n.code,{children:"DateTime.Now"})," \u95ee\u9898"]}),"\n",(0,s.jsx)(n.admonition,{title:"\u7248\u672c\u8bf4\u660e",type:"important",children:(0,s.jsxs)(n.p,{children:["\u4ee5\u4e0b\u5185\u5bb9\u4ec5\u9650 ",(0,s.jsx)(n.code,{children:"Furion 4.8.7.31 +"})," \u7248\u672c\u4f7f\u7528\u3002"]})}),"\n",(0,s.jsxs)(n.p,{children:["\u542f\u7528\u4e86\u591a\u8bed\u8a00\u529f\u80fd\u4e4b\u540e\u5f88\u6709\u53ef\u80fd\u4f1a\u5f71\u54cd ",(0,s.jsx)(n.code,{children:"DateTime.Now"})," \u83b7\u53d6\u7684\u65f6\u95f4\u6240\u5728\u7684\u65f6\u533a\uff0c\u6bd4\u5982\u8bbe\u7f6e\u591a\u8bed\u8a00\u533a\u57df\u8bbe\u7f6e\u4e3a ",(0,s.jsx)(n.code,{children:"en-US"}),"\uff0c\u90a3\u4e48\u83b7\u53d6\u7684\u5c31\u662f\u56fd\u5916\u7684\u65f6\u95f4\u3002\u6240\u4ee5\uff0c",(0,s.jsxs)(n.strong,{children:["\u5c3d\u53ef\u80fd\u7684\u4f7f\u7528 ",(0,s.jsx)(n.code,{children:"DateTime.UtcNow"})," \u6216\u8005 ",(0,s.jsx)(n.code,{children:"DateTimeOffset.UtNow"})," \u8bb0\u5f55\u65f6\u95f4"]}),"\u3002"]}),"\n",(0,s.jsx)(n.p,{children:"\u5f53\u7136\u4e5f\u53ef\u4ee5\u6dfb\u52a0\u914d\u7f6e\uff0c\u56fa\u5b9a\u65f6\u95f4\u533a\u57df\u4e3a\u7279\u5b9a\u65f6\u533a\uff0c\u6bd4\u5982\u5317\u4eac\u65f6\u95f4\u3002"}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-json",metastring:"showLineNumbers {2,3}",children:'{\r\n "LocalizationSettings": {\r\n "DateTimeFormatCulture": "zh-CN"\r\n }\r\n}\n'})}),"\n",(0,s.jsxs)(n.h2,{id:"2115-\u5173\u4e8e-blazor-\u9879\u76ee\u95ee\u9898",children:["21.15 \u5173\u4e8e ",(0,s.jsx)(n.code,{children:"Blazor"})," \u9879\u76ee\u95ee\u9898"]}),"\n",(0,s.jsxs)(n.p,{children:["\u5982\u679c\u4f7f\u7528\u7684\u662f ",(0,s.jsx)(n.code,{children:".razor"})," \u7ec4\u4ef6\uff0c\u90a3\u4e48\u53ea\u652f\u6301\u8bf7\u6c42\u5934\u4e2d\u643a\u5e26 ",(0,s.jsx)(n.code,{children:"Accept-Language"})," \u548c ",(0,s.jsx)(n.code,{children:"cookies"})," \u65b9\u5f0f\uff0c\u6709\u5173\u914d\u7f6e\u53ef\u67e5\u9605\u76f8\u5173 ",(0,s.jsx)(n.code,{children:"Issue"}),"\uff1a",(0,s.jsx)(n.a,{href:"https://gitee.com/dotnetchina/Furion/issues/I7ERGO",children:"https://gitee.com/dotnetchina/Furion/issues/I7ERGO"})]}),"\n",(0,s.jsx)(n.h2,{id:"2116-\u533a\u57df\u7801\u5217\u8868",children:"21.16 \u533a\u57df\u7801\u5217\u8868"}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsx)(n.li,{children:"af \u516c\u7528\u8377\u5170\u8bed"}),"\n",(0,s.jsx)(n.li,{children:"af-ZA \u516c\u7528\u8377\u5170\u8bed - \u5357\u975e"}),"\n",(0,s.jsx)(n.li,{children:"sq \u963f\u5c14\u5df4\u5c3c\u4e9a"}),"\n",(0,s.jsx)(n.li,{children:"sq-AL \u963f\u5c14\u5df4\u5c3c\u4e9a -\u963f\u5c14\u5df4\u5c3c\u4e9a"}),"\n",(0,s.jsx)(n.li,{children:"ar \u963f\u62c9\u4f2f\u8bed"}),"\n",(0,s.jsx)(n.li,{children:"ar-DZ \u963f\u62c9\u4f2f\u8bed -\u963f\u5c14\u53ca\u5229\u4e9a"}),"\n",(0,s.jsx)(n.li,{children:"ar-BH \u963f\u62c9\u4f2f\u8bed -\u5df4\u6797"}),"\n",(0,s.jsx)(n.li,{children:"ar-EG \u963f\u62c9\u4f2f\u8bed -\u57c3\u53ca"}),"\n",(0,s.jsx)(n.li,{children:"ar-IQ \u963f\u62c9\u4f2f\u8bed -\u4f0a\u62c9\u514b"}),"\n",(0,s.jsx)(n.li,{children:"ar-JO \u963f\u62c9\u4f2f\u8bed -\u7ea6\u65e6"}),"\n",(0,s.jsx)(n.li,{children:"ar-KW \u963f\u62c9\u4f2f\u8bed -\u79d1\u5a01\u7279"}),"\n",(0,s.jsx)(n.li,{children:"ar-LB \u963f\u62c9\u4f2f\u8bed -\u9ece\u5df4\u5ae9"}),"\n",(0,s.jsx)(n.li,{children:"ar-LY \u963f\u62c9\u4f2f\u8bed -\u5229\u6bd4\u4e9a"}),"\n",(0,s.jsx)(n.li,{children:"ar-MA \u963f\u62c9\u4f2f\u8bed -\u6469\u6d1b\u54e5"}),"\n",(0,s.jsx)(n.li,{children:"ar-OM \u963f\u62c9\u4f2f\u8bed -\u963f\u66fc"}),"\n",(0,s.jsx)(n.li,{children:"ar-QA \u963f\u62c9\u4f2f\u8bed -\u5361\u5854\u5c14"}),"\n",(0,s.jsx)(n.li,{children:"ar-SA \u963f\u62c9\u4f2f\u8bed - \u6c99\u7279\u963f\u62c9\u4f2f"}),"\n",(0,s.jsx)(n.li,{children:"ar-SY \u963f\u62c9\u4f2f\u8bed -\u53d9\u5229\u4e9a\u5171\u548c\u56fd"}),"\n",(0,s.jsx)(n.li,{children:"ar-TN \u963f\u62c9\u4f2f\u8bed -\u5317\u975e\u7684\u5171\u548c\u56fd"}),"\n",(0,s.jsx)(n.li,{children:"ar-AE \u963f\u62c9\u4f2f\u8bed - \u963f\u62c9\u4f2f\u8054\u5408\u914b\u957f\u56fd"}),"\n",(0,s.jsx)(n.li,{children:"ar-YE \u963f\u62c9\u4f2f\u8bed -\u4e5f\u95e8"}),"\n",(0,s.jsx)(n.li,{children:"hy \u4e9a\u7f8e\u5c3c\u4e9a"}),"\n",(0,s.jsx)(n.li,{children:"hy-AM \u4e9a\u7f8e\u5c3c\u4e9a\u7684 -\u4e9a\u7f8e\u5c3c\u4e9a"}),"\n",(0,s.jsx)(n.li,{children:"az Azeri"}),"\n",(0,s.jsx)(n.li,{children:"az-AZ-Cyrl Azeri-(\u897f\u91cc\u5c14\u5b57\u6bcd\u7684) \u963f\u585e\u62dc\u7586"}),"\n",(0,s.jsx)(n.li,{children:"az-AZ-Latn Azeri(\u62c9\u4e01\u6587)- \u963f\u585e\u62dc\u7586"}),"\n",(0,s.jsx)(n.li,{children:"eu \u5df4\u65af\u514b"}),"\n",(0,s.jsx)(n.li,{children:"eu-ES \u5df4\u65af\u514b -\u5df4\u65af\u514b"}),"\n",(0,s.jsx)(n.li,{children:"be Belarusian"}),"\n",(0,s.jsx)(n.li,{children:"be-BY Belarusian-\u767d\u4fc4\u7f57\u65af"}),"\n",(0,s.jsx)(n.li,{children:"bg \u4fdd\u52a0\u5229\u4e9a"}),"\n",(0,s.jsx)(n.li,{children:"bg-BG \u4fdd\u52a0\u5229\u4e9a -\u4fdd\u52a0\u5229\u4e9a"}),"\n",(0,s.jsx)(n.li,{children:"ca \u5609\u6cf0\u7f57\u5c3c\u4e9a"}),"\n",(0,s.jsx)(n.li,{children:"ca-ES \u5609\u6cf0\u7f57\u5c3c\u4e9a -\u5609\u6cf0\u7f57\u5c3c\u4e9a"}),"\n",(0,s.jsx)(n.li,{children:"zh-HK \u534e - \u9999\u6e2f\u7684 SAR"}),"\n",(0,s.jsx)(n.li,{children:"zh-MO \u534e - \u6fb3\u95e8\u7684 SAR"}),"\n",(0,s.jsx)(n.li,{children:"zh-CN \u534e -\u4e2d\u56fd"}),"\n",(0,s.jsx)(n.li,{children:"zh-CHS \u534e (\u5355\u4e00\u5316)"}),"\n",(0,s.jsx)(n.li,{children:"zh-SG \u534e -\u65b0\u52a0\u5761"}),"\n",(0,s.jsx)(n.li,{children:"zh-TW \u534e -\u53f0\u6e7e"}),"\n",(0,s.jsx)(n.li,{children:"zh-CHT \u534e (\u4f20\u7edf\u7684)"}),"\n",(0,s.jsx)(n.li,{children:"hr \u514b\u7f57\u57c3\u897f\u4e9a"}),"\n",(0,s.jsx)(n.li,{children:"hr-HR \u514b\u7f57\u57c3\u897f\u4e9a -\u514b\u7f57\u57c3\u897f\u4e9a"}),"\n",(0,s.jsx)(n.li,{children:"cs \u6377\u514b"}),"\n",(0,s.jsx)(n.li,{children:"cs-CZ \u6377\u514b - \u6377\u514b"}),"\n",(0,s.jsx)(n.li,{children:"da \u4e39\u9ea6\u6587"}),"\n",(0,s.jsx)(n.li,{children:"da-DK \u4e39\u9ea6\u6587 -\u4e39\u9ea6"}),"\n",(0,s.jsx)(n.li,{children:"div Dhivehi"}),"\n",(0,s.jsx)(n.li,{children:"div-MV Dhivehi-\u9a6c\u5c14\u4ee3\u592b"}),"\n",(0,s.jsx)(n.li,{children:"nl \u8377\u5170"}),"\n",(0,s.jsx)(n.li,{children:"nl-BE \u8377\u5170 -\u6bd4\u5229\u65f6"}),"\n",(0,s.jsx)(n.li,{children:"nl-NL \u8377\u5170 - \u8377\u5170"}),"\n",(0,s.jsx)(n.li,{children:"en \u82f1\u56fd"}),"\n",(0,s.jsx)(n.li,{children:"en-AU \u82f1\u56fd -\u6fb3\u6d32"}),"\n",(0,s.jsx)(n.li,{children:"en-BZ \u82f1\u56fd -\u4f2f\u5229\u5179"}),"\n",(0,s.jsx)(n.li,{children:"en-CA \u82f1\u56fd -\u52a0\u62ff\u5927"}),"\n",(0,s.jsx)(n.li,{children:"en-CB \u82f1\u56fd -\u52a0\u52d2\u6bd4\u6d77"}),"\n",(0,s.jsx)(n.li,{children:"en-IE \u82f1\u56fd -\u7231\u5c14\u5170"}),"\n",(0,s.jsx)(n.li,{children:"en-JM \u82f1\u56fd -\u7259\u4e70\u52a0"}),"\n",(0,s.jsx)(n.li,{children:"en-NZ \u82f1\u56fd - \u65b0\u897f\u5170"}),"\n",(0,s.jsx)(n.li,{children:"en-PH \u82f1\u56fd -\u83f2\u5f8b\u5bbe\u5171\u548c\u56fd"}),"\n",(0,s.jsx)(n.li,{children:"en-ZA \u82f1\u56fd - \u5357\u975e"}),"\n",(0,s.jsx)(n.li,{children:"en-TT \u82f1\u56fd - \u5343\u91cc\u8fbe\u6258\u8d1d\u54e5\u5171\u548c\u56fd"}),"\n",(0,s.jsx)(n.li,{children:"en-GB \u82f1\u56fd - \u82f1\u56fd"}),"\n",(0,s.jsx)(n.li,{children:"en-US \u82f1\u56fd - \u7f8e\u56fd"}),"\n",(0,s.jsx)(n.li,{children:"en-ZW \u82f1\u56fd -\u6d25\u5df4\u5e03\u97e6"}),"\n",(0,s.jsx)(n.li,{children:"et \u7231\u6c99\u5c3c\u4e9a"}),"\n",(0,s.jsx)(n.li,{children:"et-EE \u7231\u6c99\u5c3c\u4e9a\u7684 -\u7231\u6c99\u5c3c\u4e9a"}),"\n",(0,s.jsx)(n.li,{children:"fo Faroese"}),"\n",(0,s.jsx)(n.li,{children:"fo-FO Faroese- \u6cd5\u7f57\u7fa4\u5c9b"}),"\n",(0,s.jsx)(n.li,{children:"fa \u6ce2\u65af\u8bed"}),"\n",(0,s.jsx)(n.li,{children:"fa-IR \u6ce2\u65af\u8bed -\u4f0a\u6717\u738b\u56fd"}),"\n",(0,s.jsx)(n.li,{children:"fi \u82ac\u5170\u8bed"}),"\n",(0,s.jsx)(n.li,{children:"fi-FI \u82ac\u5170\u8bed -\u82ac\u5170"}),"\n",(0,s.jsx)(n.li,{children:"fr \u6cd5\u56fd"}),"\n",(0,s.jsx)(n.li,{children:"fr-BE \u6cd5\u56fd -\u6bd4\u5229\u65f6"}),"\n",(0,s.jsx)(n.li,{children:"fr-CA \u6cd5\u56fd -\u52a0\u62ff\u5927"}),"\n",(0,s.jsx)(n.li,{children:"fr-FR \u6cd5\u56fd -\u6cd5\u56fd"}),"\n",(0,s.jsx)(n.li,{children:"fr-LU \u6cd5\u56fd -\u5362\u68ee\u5821"}),"\n",(0,s.jsx)(n.li,{children:"fr-MC \u6cd5\u56fd -\u6469\u7eb3\u54e5"}),"\n",(0,s.jsx)(n.li,{children:"fr-CH \u6cd5\u56fd -\u745e\u58eb"}),"\n",(0,s.jsx)(n.li,{children:"gl \u52a0\u5229\u897f\u4e9a"}),"\n",(0,s.jsx)(n.li,{children:"gl-ES \u52a0\u5229\u897f\u4e9a -\u52a0\u5229\u897f\u4e9a"}),"\n",(0,s.jsx)(n.li,{children:"ka \u683c\u9c81\u5409\u4e9a\u5dde"}),"\n",(0,s.jsx)(n.li,{children:"ka-GE \u683c\u9c81\u5409\u4e9a\u5dde -\u683c\u9c81\u5409\u4e9a\u5dde"}),"\n",(0,s.jsx)(n.li,{children:"de \u5fb7\u56fd"}),"\n",(0,s.jsx)(n.li,{children:"de-AT \u5fb7\u56fd -\u5965\u5730\u5229"}),"\n",(0,s.jsx)(n.li,{children:"de-DE \u5fb7\u56fd -\u5fb7\u56fd"}),"\n",(0,s.jsx)(n.li,{children:"de-LI \u5fb7\u56fd -\u5217\u652f\u6566\u58eb\u767b"}),"\n",(0,s.jsx)(n.li,{children:"de-LU \u5fb7\u56fd -\u5362\u68ee\u5821"}),"\n",(0,s.jsx)(n.li,{children:"de-CH \u5fb7\u56fd -\u745e\u58eb"}),"\n",(0,s.jsx)(n.li,{children:"el \u5e0c\u814a"}),"\n",(0,s.jsx)(n.li,{children:"el-GR \u5e0c\u814a -\u5e0c\u814a"}),"\n",(0,s.jsx)(n.li,{children:"gu Gujarati"}),"\n",(0,s.jsx)(n.li,{children:"gu-IN Gujarati-\u5370\u5ea6"}),"\n",(0,s.jsx)(n.li,{children:"he \u5e0c\u4f2f\u6765"}),"\n",(0,s.jsx)(n.li,{children:"he-IL \u5e0c\u4f2f\u6765 -\u4ee5\u8272\u5217"}),"\n",(0,s.jsx)(n.li,{children:"hi \u5317\u5370\u5ea6\u8bed"}),"\n",(0,s.jsx)(n.li,{children:"hi-IN \u5317\u5370\u5ea6\u7684 -\u5370\u5ea6"}),"\n",(0,s.jsx)(n.li,{children:"hu \u5308\u7259\u5229"}),"\n",(0,s.jsx)(n.li,{children:"hu-HU \u5308\u7259\u5229\u7684 -\u5308\u7259\u5229"}),"\n",(0,s.jsx)(n.li,{children:"is \u51b0\u5c9b\u8bed"}),"\n",(0,s.jsx)(n.li,{children:"is-IS \u51b0\u5c9b\u7684 -\u51b0\u5c9b"}),"\n",(0,s.jsx)(n.li,{children:"id \u5370\u5c3c"}),"\n",(0,s.jsx)(n.li,{children:"id-ID \u5370\u5c3c -\u5370\u5c3c"}),"\n",(0,s.jsx)(n.li,{children:"it \u610f\u5927\u5229"}),"\n",(0,s.jsx)(n.li,{children:"it-IT \u610f\u5927\u5229 -\u610f\u5927\u5229"}),"\n",(0,s.jsx)(n.li,{children:"it-CH \u610f\u5927\u5229 -\u745e\u58eb"}),"\n",(0,s.jsx)(n.li,{children:"ja \u65e5\u672c"}),"\n",(0,s.jsx)(n.li,{children:"ja-JP \u65e5\u672c -\u65e5\u672c"}),"\n",(0,s.jsx)(n.li,{children:"kn \u5361\u7eb3\u8fbe\u8bed"}),"\n",(0,s.jsx)(n.li,{children:"kn-IN \u5361\u7eb3\u8fbe\u8bed -\u5370\u5ea6"}),"\n",(0,s.jsx)(n.li,{children:"kk Kazakh"}),"\n",(0,s.jsx)(n.li,{children:"kk-KZ Kazakh-\u54c8\u8428\u514b"}),"\n",(0,s.jsx)(n.li,{children:"kok Konkani"}),"\n",(0,s.jsx)(n.li,{children:"kok-IN Konkani-\u5370\u5ea6"}),"\n",(0,s.jsx)(n.li,{children:"ko \u97e9\u56fd"}),"\n",(0,s.jsx)(n.li,{children:"ko-KR \u97e9\u56fd -\u97e9\u56fd"}),"\n",(0,s.jsx)(n.li,{children:"ky Kyrgyz"}),"\n",(0,s.jsx)(n.li,{children:"ky-KZ Kyrgyz-\u54c8\u8428\u514b"}),"\n",(0,s.jsx)(n.li,{children:"lv \u62c9\u8131\u7ef4\u4e9a"}),"\n",(0,s.jsx)(n.li,{children:"lv-LV \u62c9\u8131\u7ef4\u4e9a\u7684 -\u62c9\u8131\u7ef4\u4e9a"}),"\n",(0,s.jsx)(n.li,{children:"lt \u7acb\u9676\u5b9b"}),"\n",(0,s.jsx)(n.li,{children:"lt-LT \u7acb\u9676\u5b9b -\u7acb\u9676\u5b9b"}),"\n",(0,s.jsx)(n.li,{children:"mk \u9a6c\u5176\u987f"}),"\n",(0,s.jsx)(n.li,{children:"mk-MK \u9a6c\u5176\u987f -FYROM"}),"\n",(0,s.jsx)(n.li,{children:"ms \u9a6c\u6765"}),"\n",(0,s.jsx)(n.li,{children:"ms-BN \u9a6c\u6765 -\u6c76\u83b1"}),"\n",(0,s.jsx)(n.li,{children:"ms-MY \u9a6c\u6765 -\u9a6c\u6765\u897f\u4e9a"}),"\n",(0,s.jsx)(n.li,{children:"mr \u9a6c\u62c9\u5730\u8bed"}),"\n",(0,s.jsx)(n.li,{children:"mr-IN \u9a6c\u62c9\u5730\u8bed -\u5370\u5ea6"}),"\n",(0,s.jsx)(n.li,{children:"mn \u8499\u53e4"}),"\n",(0,s.jsx)(n.li,{children:"mn-MN \u8499\u53e4 -\u8499\u53e4"}),"\n",(0,s.jsx)(n.li,{children:"no \u632a\u5a01"}),"\n",(0,s.jsx)(n.li,{children:"nb-NO \u632a\u5a01 (Bokm?l) - \u632a\u5a01"}),"\n",(0,s.jsx)(n.li,{children:"nn-NO \u632a\u5a01 (Nynorsk)- \u632a\u5a01"}),"\n",(0,s.jsx)(n.li,{children:"pl \u6ce2\u5170"}),"\n",(0,s.jsx)(n.li,{children:"pl-PL \u6ce2\u5170 -\u6ce2\u5170"}),"\n",(0,s.jsx)(n.li,{children:"pt \u8461\u8404\u7259"}),"\n",(0,s.jsx)(n.li,{children:"pt-BR \u8461\u8404\u7259 -\u5df4\u897f"}),"\n",(0,s.jsx)(n.li,{children:"pt-PT \u8461\u8404\u7259 -\u8461\u8404\u7259"}),"\n",(0,s.jsx)(n.li,{children:"pa Punjab \u8bed"}),"\n",(0,s.jsx)(n.li,{children:"pa-IN Punjab \u8bed -\u5370\u5ea6"}),"\n",(0,s.jsx)(n.li,{children:"ro \u7f57\u9a6c\u5c3c\u4e9a\u8bed"}),"\n",(0,s.jsx)(n.li,{children:"ro-RO \u7f57\u9a6c\u5c3c\u4e9a\u8bed -\u7f57\u9a6c\u5c3c\u4e9a"}),"\n",(0,s.jsx)(n.li,{children:"ru \u4fc4\u56fd"}),"\n",(0,s.jsx)(n.li,{children:"ru-RU \u4fc4\u56fd -\u4fc4\u56fd"}),"\n",(0,s.jsx)(n.li,{children:"sa \u68b5\u6587"}),"\n",(0,s.jsx)(n.li,{children:"sa-IN \u68b5\u6587 -\u5370\u5ea6"}),"\n",(0,s.jsx)(n.li,{children:"sr-SP-Cyrl \u585e\u5c14\u7ef4\u4e9a -(\u897f\u91cc\u5c14\u5b57\u6bcd\u7684) \u585e\u5c14\u7ef4\u4e9a\u5171\u548c\u56fd"}),"\n",(0,s.jsx)(n.li,{children:"sr-SP-Latn \u585e\u5c14\u7ef4\u4e9a (\u62c9\u4e01\u6587)- \u585e\u5c14\u7ef4\u4e9a\u5171\u548c\u56fd"}),"\n",(0,s.jsx)(n.li,{children:"sk \u65af\u6d1b\u4f10\u514b"}),"\n",(0,s.jsx)(n.li,{children:"sk-SK \u65af\u6d1b\u4f10\u514b -\u65af\u6d1b\u4f10\u514b"}),"\n",(0,s.jsx)(n.li,{children:"sl \u65af\u6d1b\u6587\u5c3c\u4e9a"}),"\n",(0,s.jsx)(n.li,{children:"sl-SI \u65af\u6d1b\u6587\u5c3c\u4e9a -\u65af\u6d1b\u6587\u5c3c\u4e9a"}),"\n",(0,s.jsx)(n.li,{children:"es \u897f\u73ed\u7259"}),"\n",(0,s.jsx)(n.li,{children:"es-AR \u897f\u73ed\u7259 -\u963f\u6839\u5ef7"}),"\n",(0,s.jsx)(n.li,{children:"es-BO \u897f\u73ed\u7259 -\u73bb\u5229\u7ef4\u4e9a"}),"\n",(0,s.jsx)(n.li,{children:"es-CL \u897f\u73ed\u7259 -\u667a\u5229"}),"\n",(0,s.jsx)(n.li,{children:"es-CO \u897f\u73ed\u7259 -\u54e5\u4f26\u6bd4\u4e9a"}),"\n",(0,s.jsx)(n.li,{children:"es-CR \u897f\u73ed\u7259 - \u54e5\u65af\u8fbe\u9ece\u52a0"}),"\n",(0,s.jsx)(n.li,{children:"es-DO \u897f\u73ed\u7259 - \u591a\u7c73\u5c3c\u52a0\u5171\u548c\u56fd"}),"\n",(0,s.jsx)(n.li,{children:"es-EC \u897f\u73ed\u7259 -\u5384\u74dc\u591a\u5c14"}),"\n",(0,s.jsx)(n.li,{children:"es-SV \u897f\u73ed\u7259 - \u8428\u5c14\u74e6\u591a"}),"\n",(0,s.jsx)(n.li,{children:"es-GT \u897f\u73ed\u7259 -\u5371\u5730\u9a6c\u62c9"}),"\n",(0,s.jsx)(n.li,{children:"es-HN \u897f\u73ed\u7259 -\u6d2a\u90fd\u62c9\u65af"}),"\n",(0,s.jsx)(n.li,{children:"es-MX \u897f\u73ed\u7259 -\u58a8\u897f\u54e5"}),"\n",(0,s.jsx)(n.li,{children:"es-NI \u897f\u73ed\u7259 -\u5c3c\u52a0\u62c9\u74dc"}),"\n",(0,s.jsx)(n.li,{children:"es-PA \u897f\u73ed\u7259 -\u5df4\u62ff\u9a6c"}),"\n",(0,s.jsx)(n.li,{children:"es-PY \u897f\u73ed\u7259 -\u5df4\u62c9\u572d"}),"\n",(0,s.jsx)(n.li,{children:"es-PE \u897f\u73ed\u7259 -\u79d8\u9c81"}),"\n",(0,s.jsx)(n.li,{children:"es-PR \u897f\u73ed\u7259 - \u6ce2\u591a\u9ece\u5404"}),"\n",(0,s.jsx)(n.li,{children:"es-ES \u897f\u73ed\u7259 -\u897f\u73ed\u7259"}),"\n",(0,s.jsx)(n.li,{children:"es-UY \u897f\u73ed\u7259 -\u4e4c\u62c9\u572d"}),"\n",(0,s.jsx)(n.li,{children:"es-VE \u897f\u73ed\u7259 -\u59d4\u5185\u745e\u62c9"}),"\n",(0,s.jsx)(n.li,{children:"sw Swahili"}),"\n",(0,s.jsx)(n.li,{children:"sw-KE Swahili-\u80af\u5c3c\u4e9a"}),"\n",(0,s.jsx)(n.li,{children:"sv \u745e\u5178"}),"\n",(0,s.jsx)(n.li,{children:"sv-FI \u745e\u5178 -\u82ac\u5170"}),"\n",(0,s.jsx)(n.li,{children:"sv-SE \u745e\u5178 -\u745e\u5178"}),"\n",(0,s.jsx)(n.li,{children:"syr Syriac"}),"\n",(0,s.jsx)(n.li,{children:"syr-SY Syriac-\u53d9\u5229\u4e9a\u5171\u548c\u56fd"}),"\n",(0,s.jsx)(n.li,{children:"ta \u5766\u7c73\u5c14"}),"\n",(0,s.jsx)(n.li,{children:"ta-IN \u5766\u7c73\u5c14 -\u5370\u5ea6"}),"\n",(0,s.jsx)(n.li,{children:"tt Tatar"}),"\n",(0,s.jsx)(n.li,{children:"tt-RU Tatar-\u4fc4\u56fd"}),"\n",(0,s.jsx)(n.li,{children:"te Telugu"}),"\n",(0,s.jsx)(n.li,{children:"te-IN Telugu-\u5370\u5ea6"}),"\n",(0,s.jsx)(n.li,{children:"th \u6cf0\u56fd"}),"\n",(0,s.jsx)(n.li,{children:"th-TH \u6cf0\u56fd -\u6cf0\u56fd"}),"\n",(0,s.jsx)(n.li,{children:"tr \u571f\u8033\u5176\u8bed"}),"\n",(0,s.jsx)(n.li,{children:"tr-TR \u571f\u8033\u5176\u8bed -\u571f\u8033\u5176"}),"\n",(0,s.jsx)(n.li,{children:"uk \u4e4c\u514b\u5170"}),"\n",(0,s.jsx)(n.li,{children:"uk-UA \u4e4c\u514b\u5170 -\u4e4c\u514b\u5170"}),"\n",(0,s.jsx)(n.li,{children:"ur Urdu"}),"\n",(0,s.jsx)(n.li,{children:"ur-PK Urdu-\u5df4\u57fa\u65af\u5766"}),"\n",(0,s.jsx)(n.li,{children:"uz Uzbek"}),"\n",(0,s.jsx)(n.li,{children:"uz-UZ-Cyrl Uzbek-(\u897f\u91cc\u5c14\u5b57\u6bcd\u7684) \u4e4c\u5179\u522b\u514b\u65af\u5766"}),"\n",(0,s.jsx)(n.li,{children:"uz-UZ-Latn Uzbek(\u62c9\u4e01\u6587)- \u4e4c\u5179\u522b\u514b\u65af\u5766"}),"\n",(0,s.jsx)(n.li,{children:"vi \u8d8a\u5357"}),"\n",(0,s.jsx)(n.li,{children:"vi-VN \u8d8a\u5357 -\u8d8a\u5357"}),"\n"]}),"\n",(0,s.jsx)(n.h2,{id:"2117-\u53cd\u9988\u4e0e\u5efa\u8bae",children:"21.17 \u53cd\u9988\u4e0e\u5efa\u8bae"}),"\n",(0,s.jsx)(n.admonition,{title:"\u4e0e\u6211\u4eec\u4ea4\u6d41",type:"note",children:(0,s.jsxs)(n.p,{children:["\u7ed9 Furion \u63d0 ",(0,s.jsx)(n.a,{href:"https://gitee.com/dotnetchina/Furion/issues/new?issue",children:"Issue"}),"\u3002"]})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.admonition,{title:"\u4e86\u89e3\u66f4\u591a",type:"note",children:(0,s.jsxs)(n.p,{children:["\u60f3\u4e86\u89e3\u66f4\u591a ",(0,s.jsx)(n.code,{children:"\u591a\u8bed\u8a00"})," \u77e5\u8bc6\u53ef\u67e5\u9605 ",(0,s.jsx)(n.a,{href:"https://docs.microsoft.com/zh-cn/aspnet/core/fundamentals/localization?view=aspnetcore-5.0",children:"ASP.NET Core - \u5168\u5c40\u5316\u548c\u672c\u5730\u5316"})," \u7ae0\u8282\u3002"]})})]})}function j(e={}){const{wrapper:n}={...(0,l.a)(),...e.components};return n?(0,s.jsx)(n,{...e,children:(0,s.jsx)(a,{...e})}):a(e)}},510:(e,n,i)=>{i.d(n,{Z:()=>W});i(7294);const s=(e,n,i)=>e?"string"==typeof e?e:e[n]||i:i;var l=i(5893);const r={display:"block"},c=e=>{let{size:n,color:i,style:c,...d}=e;const h=c?{...r,...c}:r;return(0,l.jsx)("svg",{viewBox:"0 0 1024 1024",width:n+"px",height:n+"px",style:h,...d,children:(0,l.jsx)("path",{d:"M856.4 292.8c-63.3-63.6-126.6-127.1-190.2-190.3-15.3-15.2-32.7-16.1-48.1-0.8-64.3 63.6-128.1 127.6-191.8 191.9-14 14.2-16.3 31.6-1.7 46 14.8 14.7 31.5 10.6 46.1-2.7 5.1-4.6 9.8-9.7 14.7-14.7 39.2-39.7 78.5-79.5 122.8-124.4 0 170 3 332.2-1.1 494-2.4 96.4-91.2 174.6-187.4 176.6-110.6 2.3-198.6-84.4-199-197.4-0.6-136.3-0.2-272.6-0.1-408.9 0-21.8-7.9-37.4-31.2-39.9-18.9-2-33.2 13.2-33.1 37.5 0 145.8-3.4 291.7 2.4 437.2 6 152.1 160.4 263.5 309.5 230.5C591.8 900 672.8 797.2 673.6 664.6c0.8-144 0.2-288.1 0.2-432.1v-33.3c11.2 10.2 17.6 15.4 23.3 21.3 38.5 38.4 76.7 77 115.3 115.2 14.8 14.6 32.2 19.2 47.8 2.9 13.8-14.8 10.3-31.7-3.8-45.8z",fill:s(i,0,"#333333")})})};c.defaultProps={size:18};const d=c,h={display:"block"},o=e=>{let{size:n,color:i,style:r,...c}=e;const d=r?{...h,...r}:h;return(0,l.jsxs)("svg",{viewBox:"0 0 1024 1024",width:n+"px",height:n+"px",style:d,...c,children:[(0,l.jsx)("path",{d:"M143.872 768a51.2 51.2 0 0 1-15.36-2.56 51.2 51.2 0 0 1-35.328-51.2V283.136a148.992 148.992 0 0 1 141.824-153.6h450.56a148.992 148.992 0 0 1 141.824 153.6V512a148.992 148.992 0 0 1-141.824 153.6H244.224l-60.928 80.896a51.2 51.2 0 0 1-39.424 21.504zM235.008 180.224a97.792 97.792 0 0 0-90.624 102.4v430.592L218.624 614.4h466.944a97.792 97.792 0 0 0 90.624-102.4V283.136a97.792 97.792 0 0 0-90.624-102.4z",fill:s(i,0,"#333333")}),(0,l.jsx)("path",{d:"M880.128 875.52a51.2 51.2 0 0 1-39.424-20.48l-60.928-80.896h-243.2a25.6 25.6 0 0 1 0-51.2h268.8l76.288 102.4v-295.936a25.6 25.6 0 0 1 25.6-25.6 25.6 25.6 0 0 1 25.6 25.6v293.888a51.2 51.2 0 0 1-51.2 51.2z",fill:s(i,1,"#333333")})]})};o.defaultProps={size:18};const t=o,x={display:"block"},a=e=>{let{size:n,color:i,style:r,...c}=e;const d=r?{...x,...r}:x;return(0,l.jsxs)("svg",{viewBox:"0 0 1024 1024",width:n+"px",height:n+"px",style:d,...c,children:[(0,l.jsx)("path",{d:"M223.425605 449.2744l161.632237 0 0 253.65714c0 16.954137 13.745049 30.699186 30.699186 30.699186 16.95516 0 30.699186-13.745049 30.699186-30.699186l0-284.356326c0-16.95516-13.744026-30.699186-30.699186-30.699186L291.035446 387.876028l217.23665-248.51605L733.039255 387.580293 607.104031 387.580293c-16.954137 0-30.699186 13.745049-30.699186 30.699186l0 284.652062c0 16.954137 13.745049 30.699186 30.699186 30.699186s30.699186-13.745049 30.699186-30.699186L637.803217 448.978664l164.448376 0c12.140505 0 23.140023-7.154957 28.063149-18.251689 4.922103-11.097756 2.841721-24.053835-5.307889-33.05279L530.62315 72.570829c-5.881964-6.495948-14.273075-10.134825-23.024389-10.091846-8.763594 0.076748-17.076934 3.895727-22.844288 10.494005L200.312188 398.371056c-7.92653 9.067516-9.818623 21.931498-4.839215 32.896224S211.383338 449.2744 223.425605 449.2744z",fill:s(i,0,"#333333")}),(0,l.jsx)("path",{d:"M222.354204 829.113381l581.732178 0c16.954137 0 30.699186-13.745049 30.699186-30.699186s-13.745049-30.699186-30.699186-30.699186L222.354204 767.715009c-16.954137 0-30.699186 13.745049-30.699186 30.699186S205.400067 829.113381 222.354204 829.113381z",fill:s(i,1,"#333333")}),(0,l.jsx)("path",{d:"M804.086381 896.729361 222.354204 896.729361c-16.954137 0-30.699186 13.745049-30.699186 30.699186s13.745049 30.699186 30.699186 30.699186l581.732178 0c16.954137 0 30.699186-13.745049 30.699186-30.699186S821.041542 896.729361 804.086381 896.729361z",fill:s(i,2,"#333333")})]})};a.defaultProps={size:18};const j=a,u={display:"block"},p=e=>{let{size:n,color:i,style:r,...c}=e;const d=r?{...u,...r}:u;return(0,l.jsx)("svg",{viewBox:"0 0 1024 1024",width:n+"px",height:n+"px",style:d,...c,children:(0,l.jsx)("path",{d:"M380.15463648 874.54223633c0 18.12744166-14.83154297 32.95898463-32.95898463 32.95898463s-32.95898463-14.83154297-32.95898462-32.95898463V228.9152832L172.71078883 370.86962865a33.04467773 33.04467773 0 0 1-46.60400416 0 33.04467773 33.04467773 0 0 1 0-46.6040034l197.55615234-198.14941406A32.76782227 32.76782227 0 0 1 347.0967749 116.52514674c0.03295924 0 0.06591772-0.03295924 0.09887695-0.03295924 1.54907201 0 2.90039088 0.69213867 4.41650366 0.88989258 2.66967773 0.39550781 5.40527318 0.59326172 7.94311548 1.61499049 12.03002904 4.94384766 20.59936549 16.71020508 20.59936549 30.45410156v725.0910642z m320.15698192 23.34155248a32.85351537 32.85351537 0 0 1-23.43383789 9.59106445c-0.03295924 0-0.06591772 0.03295924-0.09887696 0.03295924-1.54907201 0-2.90039088-0.69213867-4.41650365-0.92285182-2.70263697-0.36254857-5.40527318-0.56030248-7.94311549-1.61498972-12.03002904-4.91088842-20.59936549-16.67724584-20.59936473-30.42114309V149.45776367c0-18.12744166 14.83154297-32.95898463 32.95898387-32.95898463s32.95898463 14.83154297 32.95898463 32.95898463v645.60058619l141.52587916-141.92138697c12.81445313-12.82104467 33.81591797-12.82104467 46.63037109 0 12.78808619 12.81445313 12.78808619 33.77636719 0 46.60400416L700.3116184 897.88378881z",fill:s(i,0,"#333333")})})};p.defaultProps={size:18};const g=p,m={display:"block"},v=e=>{let{size:n,color:i,style:r,...c}=e;const d=r?{...m,...r}:m;return(0,l.jsx)("svg",{viewBox:"0 0 1172 1024",width:n+"px",height:n+"px",style:d,...c,children:(0,l.jsx)("path",{d:"M870.0416 250.4704a38.4 38.4 0 0 0-8.96 53.5552c13.056 18.2784 24.4224 37.8368 33.7408 58.112a38.4512 38.4512 0 0 0 50.944 18.8928 38.4512 38.4512 0 0 0 18.8416-50.944 436.0192 436.0192 0 0 0-40.96-70.6048 38.3488 38.3488 0 0 0-53.6064-9.0112zM181.4528 566.016a35.9936 35.9936 0 0 0 25.5488-10.5984L351.7952 410.624a36.096 36.096 0 1 0-51.0976-51.0976L217.6 442.5728C250.0096 278.1184 395.264 153.6 569.1392 153.6c50.7904 0 99.8912 10.3936 145.92 30.9248a38.4 38.4 0 1 0 31.232-70.0928 431.36 431.36 0 0 0-177.152-37.632c-214.6816 0-393.1136 156.416-428.4416 361.216L62.1568 359.4752a36.1984 36.1984 0 0 0-51.0976 51.0976l144.8448 144.7936a36.0448 36.0448 0 0 0 25.5488 10.6496zM978.5344 463.104a36.1984 36.1984 0 0 0-51.0976 0l-144.8448 144.7936a36.096 36.096 0 1 0 51.0976 51.0976l88.6272-88.576C894.3104 740.2496 746.8032 870.4 569.1392 870.4a357.7856 357.7856 0 0 1-325.2736-207.7184 38.4 38.4 0 1 0-69.7344 32.3072 434.3808 434.3808 0 0 0 394.9568 252.2112c215.1936 0 393.984-157.184 428.6464-362.7008l74.496 74.496a35.9936 35.9936 0 0 0 51.0976 0 36.096 36.096 0 0 0 0-51.0976l-144.7936-144.7936z",fill:s(i,0,"#333333")})})};v.defaultProps={size:18};const L=v,z={display:"block"},f=e=>{let{size:n,color:i,style:r,...c}=e;const d=r?{...z,...r}:z;return(0,l.jsxs)("svg",{viewBox:"0 0 1024 1024",width:n+"px",height:n+"px",style:d,...c,children:[(0,l.jsx)("path",{d:"M302 332a30 30 0 1 1 0-60h420a30 30 0 0 1 0 60H302zM302 542a30 30 0 0 1 0-60h420a30 30 0 0 1 0 60H302zM302 752a30 30 0 0 1 0-60h120a30 30 0 0 1 0 60H302z",fill:s(i,0,"#333333")}),(0,l.jsx)("path",{d:"M789.47 784.1a30 30 0 0 1 39.36 45.3l-144.24 125.25a30 30 0 0 1-19.68 7.35H214.85C163.4 962 122 919.46 122 867.38V156.62C122 104.54 163.4 62 214.85 62h594.3C860.6 62 902 104.54 902 156.62v529.05a30 30 0 1 1-60 0V156.62C842 137.3 827.09 122 809.15 122H214.85C196.91 122 182 137.3 182 156.62v710.76C182 886.7 196.91 902 214.85 902h438.84l135.78-117.9z",fill:s(i,1,"#333333")}),(0,l.jsx)("path",{d:"M692 931.19a30 30 0 1 1-60 0v-174.6C632 704.57 673.4 662 724.85 662h147.78a30 30 0 0 1 0 60h-147.78c-17.94 0-32.85 15.3-32.85 34.62v174.6z",fill:s(i,2,"#333333")})]})};f.defaultProps={size:18};const C=f,b={display:"block"},N=e=>{let{size:n,color:i,style:r,...c}=e;const d=r?{...b,...r}:b;return(0,l.jsxs)("svg",{viewBox:"0 0 1024 1024",width:n+"px",height:n+"px",style:d,...c,children:[(0,l.jsx)("path",{d:"M512 883.2A371.2 371.2 0 1 0 140.8 512 371.2 371.2 0 0 0 512 883.2z m0 64a435.2 435.2 0 1 1 435.2-435.2 435.2 435.2 0 0 1-435.2 435.2z",fill:s(i,0,"#333333")}),(0,l.jsx)("path",{d:"M557.056 512l122.368 122.368a31.744 31.744 0 1 1-45.056 45.056L512 557.056l-122.368 122.368a31.744 31.744 0 1 1-45.056-45.056L466.944 512 344.576 389.632a31.744 31.744 0 1 1 45.056-45.056L512 466.944l122.368-122.368a31.744 31.744 0 1 1 45.056 45.056z",fill:s(i,1,"#333333")})]})};N.defaultProps={size:18};const y=N,S={display:"block"},w=e=>{let{size:n,color:i,style:r,...c}=e;const d=r?{...S,...r}:S;return(0,l.jsxs)("svg",{viewBox:"0 0 1024 1024",width:n+"px",height:n+"px",style:d,...c,children:[(0,l.jsx)("path",{d:"M940 512H792V412c76.8 0 139-62.2 139-139 0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8 0 34.8-28.2 63-63 63H232c-34.8 0-63-28.2-63-63 0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8 0 76.8 62.2 139 139 139v100H84c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h148v96c0 6.5 0.2 13 0.7 19.3C164.1 728.6 116 796.7 116 876c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8 0-44.2 23.9-82.9 59.6-103.7 6 17.2 13.6 33.6 22.7 49 24.3 41.5 59 76.2 100.5 100.5S460.5 960 512 960s99.8-13.9 141.3-38.2c41.5-24.3 76.2-59 100.5-100.5 9.1-15.5 16.7-31.9 22.7-49C812.1 793.1 836 831.8 836 876c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8 0-79.3-48.1-147.4-116.7-176.7 0.4-6.4 0.7-12.8 0.7-19.3v-96h148c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM716 680c0 36.8-9.7 72-27.8 102.9-17.7 30.3-43 55.6-73.3 73.3-20.1 11.8-42 20-64.9 24.3V484c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v396.5c-22.9-4.3-44.8-12.5-64.9-24.3-30.3-17.7-55.6-43-73.3-73.3C317.7 752 308 716.8 308 680V412h408v268z",fill:s(i,0,"#333333")}),(0,l.jsx)("path",{d:"M304 280h56c4.4 0 8-3.6 8-8 0-28.3 5.9-53.2 17.1-73.5 10.6-19.4 26-34.8 45.4-45.4C450.9 142 475.7 136 504 136h16c28.3 0 53.2 5.9 73.5 17.1 19.4 10.6 34.8 26 45.4 45.4C650 218.9 656 243.7 656 272c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8 0-40-8.8-76.7-25.9-108.1-17.2-31.5-42.5-56.8-74-74C596.7 72.8 560 64 520 64h-16c-40 0-76.7 8.8-108.1 25.9-31.5 17.2-56.8 42.5-74 74C304.8 195.3 296 232 296 272c0 4.4 3.6 8 8 8z",fill:s(i,1,"#333333")})]})};w.defaultProps={size:18};const A=w,U={display:"block"},k=e=>{let{size:n,color:i,style:r,...c}=e;const d=r?{...U,...r}:U;return(0,l.jsxs)("svg",{viewBox:"0 0 1024 1024",width:n+"px",height:n+"px",style:d,...c,children:[(0,l.jsx)("path",{d:"M512 71.68c-242.688 0-440.32 197.632-440.32 440.32s197.632 440.32 440.32 440.32 440.32-197.632 440.32-440.32-197.632-440.32-440.32-440.32z m0 819.2c-208.896 0-378.88-169.984-378.88-378.88s169.984-378.88 378.88-378.88 378.88 169.984 378.88 378.88-169.984 378.88-378.88 378.88z",fill:s(i,0,"#333333")}),(0,l.jsx)("path",{d:"M542.72 261.12H481.28v220.16H261.12v61.44h220.16v220.16h61.44v-220.16h220.16V481.28h-220.16z",fill:s(i,1,"#333333")})]})};k.defaultProps={size:18};const F=k,I={display:"block"},E=e=>{let{size:n,color:i,style:r,...c}=e;const d=r?{...I,...r}:I;return(0,l.jsx)("svg",{viewBox:"0 0 1024 1024",width:n+"px",height:n+"px",style:d,...c,children:(0,l.jsx)("path",{d:"M384 896h-64v-70.4c0-15.2-10.4-28-24.8-31.2C159.2 768 64 644.8 64 496v-32h64v32c0 118.4 73.6 215.2 179.2 236 44.8 8.8 76.8 48 76.8 94.4v69.6zM704 896h-64v-70.4c0-45.6 32-85.6 76.8-94.4C822.4 711.2 896 614.4 896 496v-32h64v32c0 148.8-95.2 272-231.2 298.4-14.4 3.2-24.8 16-24.8 31.2v70.4zM512.8 640l-41.6-37.6c-147.2-133.6-244-208-244-316.8 0-88 68.8-156.8 156.8-156.8 49.6 0 97.6 23.2 128.8 60C544 152 592 128.8 641.6 128.8c88 0 156.8 68.8 156.8 156.8 0 108-96.8 183.2-244 316.8L512.8 640z",fill:s(i,0,"#333333")})})};E.defaultProps={size:18};const T=E,M={display:"block"},R=e=>{let{size:n,color:i,style:r,...c}=e;const d=r?{...M,...r}:M;return(0,l.jsx)("svg",{viewBox:"0 0 1024 1024",width:n+"px",height:n+"px",style:d,...c,children:(0,l.jsx)("path",{d:"M942.4615936 284.62787926c-14.30911886-14.12709945-37.31996786-14.05468217-51.48229632 0.21920654L517.97142983 661.27810333 139.75544149 286.45003606c-14.30911886-14.16232846-37.31996786-14.05468217-51.51948344 0.21920654-14.16232846 14.30911886-14.05468217 37.35519687 0.21920654 51.51948345l401.99014627 398.34974663c0.61847666 0.61847666 1.41897273 0.76526706 2.03940637 1.34655658 0.14483342 0.14483342 0.18201941 0.32685283 0.32685283 0.47364324 7.09877874 7.02636259 16.38375538 10.55911595 25.63154489 10.55911595 9.35739278 0 18.75001458-3.60516949 25.85075143-10.77636551l398.34974663-401.99014628C956.84312974 321.8382427 956.73548345 298.7921647 942.4615936 284.62787926z",fill:s(i,0,"#333333")})})};R.defaultProps={size:18};const B=R,P={display:"block"},H=e=>{let{size:n,color:i,style:r,...c}=e;const d=r?{...P,...r}:P;return(0,l.jsx)("svg",{viewBox:"0 0 1024 1024",width:n+"px",height:n+"px",style:d,...c,children:(0,l.jsx)("path",{d:"M81.5384064 739.37212074c14.30911886 14.12709945 37.31996786 14.05468217 51.48229632-0.21920654L506.02857017 362.72189667 884.24455851 737.54996394c14.30911886 14.16232846 37.31996786 14.05468217 51.51948344-0.21920654 14.16232846-14.30911886 14.05468217-37.35519687-0.21920654-51.51948345l-401.99014627-398.34974663c-0.61847666-0.61847666-1.41897273-0.76526706-2.03940637-1.34655658-0.14483342-0.14483342-0.18201941-0.32685283-0.32685282-0.47364324-7.09877874-7.02636259-16.38375538-10.55911595-25.6315449-10.55911595-9.35739278 0-18.75001458 3.60516949-25.85075143 10.77636551l-398.34974663 401.99014628C67.15687026 702.1617573 67.26451655 725.2078353 81.5384064 739.37212074z",fill:s(i,0,"#333333")})})};H.defaultProps={size:18};const D=H,Z=e=>{let{name:n,...i}=e;switch(n){case"youhua":return(0,l.jsx)(d,{...i});case"dayi":return(0,l.jsx)(t,{...i});case"shengji":return(0,l.jsx)(j,{...i});case"tiaozheng":return(0,l.jsx)(g,{...i});case"gengxin":return(0,l.jsx)(L,{...i});case"wendang":return(0,l.jsx)(C,{...i});case"shanchu":return(0,l.jsx)(y,{...i});case"bug":return(0,l.jsx)(A,{...i});case"xinzeng":return(0,l.jsx)(F,{...i});case"fuwu":return(0,l.jsx)(T,{...i});case"down":return(0,l.jsx)(B,{...i});case"up":return(0,l.jsx)(D,{...i})}return null},O={label:"label_p8vM",icon:"icon_knQK"};function W(e){const{children:n}=e,i={"\u65b0\u589e":{icon:"xinzeng",bgColor:"#39b54a"},"\u4fee\u590d":{icon:"bug",bgColor:"#9c26b0"},"\u6587\u6863":{icon:"wendang",bgColor:"rgb(79, 147, 255)"},"\u66f4\u65b0":{icon:"gengxin",bgColor:"#0081ff"},"\u8c03\u6574":{icon:"tiaozheng",bgColor:"#333"},"\u5347\u7ea7":{icon:"shengji",bgColor:"#e03997"},"\u79fb\u9664":{icon:"shanchu",bgColor:"#666"},"\u7b54\u7591":{icon:"dayi",bgColor:"#bbb"},"\u4f18\u5316":{icon:"youhua",bgColor:"#38e550"}};return(0,l.jsxs)("label",{className:O.label,title:n,style:{backgroundColor:i[n].bgColor},children:[(0,l.jsx)(Z,{name:i[n].icon,color:"white",size:14,className:O.icon})," ",n]})}},1151:(e,n,i)=>{i.d(n,{Z:()=>d,a:()=>c});var s=i(7294);const l={},r=s.createContext(l);function c(e){const n=s.useContext(r);return s.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function d(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(l):e.components||l:c(e.components),s.createElement(r.Provider,{value:n},e.children)}}}]);