vant/v1/async_105.1c460425.js
2024-04-20 08:49:23 +00:00

1 line
3.1 KiB
JavaScript

(window.webpackJsonp=window.webpackJsonp||[]).push([[105],{315:function(s,t,a){"use strict";a.r(t);var e={created:function(){this.content=unescape("%3Ch2%3EInternationalization%3C/h2%3E%0A%3Cp%3EThe%20default%20language%20of%20Vant%20is%20Chinese.%20If%20you%20want%20to%20use%20other%20languages%2C%20you%20can%20follow%20the%20instructions%20below.%3C/p%3E%0A%3Ch3%3ESwitch%20languages%3C/h3%3E%0A%3Cp%3EVant%20supports%20multiple%20languages%20with%20the%20Locale%20component%2C%20and%20the%20%3Ccode%3ELocale.use%3C/code%3E%20method%20allows%20you%20to%20switch%20to%20diffrent%20languages.%3C/p%3E%0A%3Cpre%3E%3Ccode%20class%3D%22language-js%22%3E%3Cspan%20class%3D%22hljs-keyword%22%3Eimport%3C/span%3E%20%7B%20Locale%20%7D%20%3Cspan%20class%3D%22hljs-keyword%22%3Efrom%3C/span%3E%20%3Cspan%20class%3D%22hljs-string%22%3E%27vant%27%3C/span%3E%3B%0A%3Cspan%20class%3D%22hljs-keyword%22%3Eimport%3C/span%3E%20enUS%20%3Cspan%20class%3D%22hljs-keyword%22%3Efrom%3C/span%3E%20%3Cspan%20class%3D%22hljs-string%22%3E%27vant/lib/locale/lang/en-US%27%3C/span%3E%3B%0A%0ALocale.use%28%3Cspan%20class%3D%22hljs-string%22%3E%27en-US%27%3C/span%3E%2C%20enUS%29%3B%0A%3C/code%3E%3C/pre%3E%0A%3Ch3%3EModify%20default%20configs%3C/h3%3E%0A%3Cp%3EUse%20%3Ccode%3ELocale.add%3C/code%3E%20method%20to%20modify%20the%20default%20configs.%3C/p%3E%0A%3Cpre%3E%3Ccode%20class%3D%22language-js%22%3E%3Cspan%20class%3D%22hljs-keyword%22%3Eimport%3C/span%3E%20%7B%20Locale%20%7D%20%3Cspan%20class%3D%22hljs-keyword%22%3Efrom%3C/span%3E%20%3Cspan%20class%3D%22hljs-string%22%3E%27vant%27%3C/span%3E%3B%0A%0A%3Cspan%20class%3D%22hljs-keyword%22%3Econst%3C/span%3E%20messages%20%3D%20%7B%0A%20%20%3Cspan%20class%3D%22hljs-string%22%3E%27en-US%27%3C/span%3E%3A%20%7B%0A%20%20%20%20%3Cspan%20class%3D%22hljs-attr%22%3EvanPicker%3C/span%3E%3A%20%7B%0A%20%20%20%20%20%20%3Cspan%20class%3D%22hljs-attr%22%3Econfirm%3C/span%3E%3A%20%3Cspan%20class%3D%22hljs-string%22%3E%27Close%27%3C/span%3E%0A%20%20%20%20%7D%0A%20%20%7D%0A%7D%3B%0A%0ALocale.add%28messages%29%3B%0A%3C/code%3E%3C/pre%3E%0A%3Ch3%3EConfig%20files%3C/h3%3E%0A%3Cp%3ECurrent%20supported%20languages%3A%3C/p%3E%0A%3Ctable%3E%0A%3Cthead%3E%0A%3Ctr%3E%0A%3Cth%3ELanguage%3C/th%3E%0A%3Cth%3EFilename%3C/th%3E%0A%3C/tr%3E%0A%3C/thead%3E%0A%3Ctbody%3E%0A%3Ctr%3E%0A%3Ctd%3EChinese%3C/td%3E%0A%3Ctd%3Ezh-CN%3C/td%3E%0A%3C/tr%3E%0A%3Ctr%3E%0A%3Ctd%3ETraditional%20Chinese%20%28HK%29%3C/td%3E%0A%3Ctd%3Ezh-HK%3C/td%3E%0A%3C/tr%3E%0A%3Ctr%3E%0A%3Ctd%3ETraditional%20Chinese%20%28TW%29%3C/td%3E%0A%3Ctd%3Ezh-TW%3C/td%3E%0A%3C/tr%3E%0A%3Ctr%3E%0A%3Ctd%3EEnglish%3C/td%3E%0A%3Ctd%3Een-US%3C/td%3E%0A%3C/tr%3E%0A%3Ctr%3E%0A%3Ctd%3ETurkish%3C/td%3E%0A%3Ctd%3Etr-TR%3C/td%3E%0A%3C/tr%3E%0A%3C/tbody%3E%0A%3C/table%3E%0A%3Cp%3EView%20all%20language%20configs%20%3Ca%20href%3D%22https%3A//github.com/youzan/vant/tree/dev/packages/locale/lang%22%3EHere%3C/a%3E.%3C/p%3E%0A")}},n=a(7),C=Object(n.a)(e,function(){this.$createElement;this._self._c;return this._m(0)},[function(){var s=this.$createElement;return(this._self._c||s)("section",{domProps:{innerHTML:this._s(this.content)}})}],!1,null,null,null);t.default=C.exports}}]);