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\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