laydate lang

This commit is contained in:
thinkgem
2022-06-30 17:56:33 +08:00
parent a656de1601
commit 8062f0273d

View File

@@ -1251,7 +1251,7 @@
,showBottom: true //是否显示底部栏
,isPreview: true //是否显示值预览
,btns: ['clear', 'now', 'confirm'] //右下角显示的按钮,会按照数组顺序排列
,lang: 'cn' //语言只支持cn/en即中文和英文
,lang: window.lang || 'zh_CN' //语言只支持cn/en即中文和英文
,theme: 'default' //主题
,position: null //控件定位方式定位, 默认absolute支持fixed/absolute/static
,calendar: false //是否开启公历重要节日,仅支持中文版
@@ -1266,7 +1266,7 @@
var that = this
,options = that.config
,text = {
cn: {
zh_CN: {
weeks: ['日', '一', '二', '三', '四', '五', '六']
,time: ['时', '分', '秒']
,timeTips: '选择时间'
@@ -1303,7 +1303,7 @@
,preview: 'The selected result'
}
};
return text[options.lang] || text['cn'];
return text[options.lang] || text['zh_CN'];
};
//初始准备