text: (window.webpackJsonp=window.webpackJsonp||[]).push([[15],{399:function(t,e,l){"use strict";l.r(e);var a=l(45),n=Object(a.a)({},(function(){var t=this,e=t.$createElement,l=t._self._c||e;return l("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[l("h3",{attrs:{id:"i18n配置"}},[l("a",{staticClass:"header-anchor",attrs:{href:"#i18n配置"}},[t._v("#")]),t._v(" i18n配置 "),l("Badge",{attrs:{text:"1.6.5"}})],1),t._v(" "),l("div",{staticClass:"custom-block tip"},[l("p",{staticClass:"custom-block-title"},[t._v("配置步骤")]),t._v(" "),l("ul",[l("li",[t._v("① 导入"),l("code",[t._v("z-paging-i18n.js")]),t._v("：  "),l("code",[t._v("import zI18n from '@/uni_modules/z-paging/components/z-paging/js/z-paging-i18n'")])]),t._v(" "),l("li",[t._v("② 全局设置语言： "),l("code",[t._v("zI18n.setLanguage('你要设置的语言')")]),t._v("。支持简体中文(zh-cn)、繁体中文(zh-hant-cn)和英文(en)，传null表示语言跟随系统(默认)。")]),t._v(" "),l("li",[t._v("③ 获取当前语言(非必须)："),l("code",[t._v("const language = zI18n.getLanguageName();")]),t._v(" 注意："),l("code",[t._v("getLanguageName()")]),t._v("方法中可以传一个参数(Boolean)用以约束当前获取的语言是否是在不跟随系统语言下获取到的，默认为true。")]),t._v(" "),l("li",[t._v("具体请查阅demo："),l("code",[t._v("i18n-demo.vue")])])])]),t._v(" "),l("table",[l("thead",[l("tr",[l("th",{staticStyle:{"text-align":"left"}},[t._v("参数")]),t._v(" "),l("th",{staticStyle:{"text-align":"left"}},[t._v("说明")]),t._v(" "),l("th",{staticStyle:{"text-align":"left"}},[t._v("类型")]),t._v(" "),l("th",{staticStyle:{"text-align":"left"}},[t._v("默认值")]),t._v(" "),l("th",{staticStyle:{"text-align":"left"}},[t._v("可选值")])])]),t._v(" "),l("tbody",[l("tr",[l("td",{staticStyle:{"text-align":"left"}},[t._v("follow-system-language")]),t._v(" "),l("td",{staticStyle:{"text-align":"left"}},[t._v("i18n国际化默认是否跟随系统语言")]),t._v(" "),l("td",{staticStyle:{"text-align":"left"}},[t._v("Boolean")]),t._v(" "),l("td",{staticStyle:{"text-align":"left"}},[t._v("true")]),t._v(" "),l("td",{staticStyle:{"text-align":"left"}},[t._v("false")])]),t._v(" "),l("tr",[l("td",{staticStyle:{"text-align":"left"}},[t._v("language")]),t._v(" "),l("td",{staticStyle:{"text-align":"left"}},[l("p",{staticStyle:{color:"red"}},[t._v("(不常用，一般使用全局语言配置)i")]),t._v("18n国际化单独设置当前页面的语言，若设置，则会覆盖全局的语言。支持简体中文(zh-cn)、繁体中文(zh-hant-cn)和英文(en)")]),t._v(" "),l("td",{staticStyle:{"text-align":"left"}},[t._v("String")]),t._v(" "),l("td",{staticStyle:{"text-align":"left"}},[t._v("-")]),t._v(" "),l("td",{staticStyle:{"text-align":"left"}},[t._v("-")])])])])])}),[],!1,null,null,null);e.default=n.exports}}]);