mirror of
https://gitee.com/ant-design-blazor/ant-design-blazor.git
synced 2024-12-05 13:37:35 +08:00
bd34858efd
* feat: add locale * feat: add locale interfaces * fix: add locale interfaces for components * fix: use local classes instead of interfaces * feat: implement the locale provider * feat: make some components to support localization * fix: default language * fix: test * chore: remove the useless reference
197 lines
6.6 KiB
JSON
197 lines
6.6 KiB
JSON
{
|
|
"locale": "zh-cn",
|
|
"Pagination": {
|
|
"items_per_page": "条/页",
|
|
"jump_to": "跳至",
|
|
"jump_to_confirm": "确定",
|
|
"page": "页",
|
|
"prev_page": "上一页",
|
|
"next_page": "下一页",
|
|
"prev_5": "向前 5 页",
|
|
"next_5": "向后 5 页",
|
|
"prev_3": "向前 3 页",
|
|
"next_3": "向后 3 页"
|
|
},
|
|
"DatePicker": {
|
|
"lang": {
|
|
"placeholder": "请选择日期",
|
|
"yearPlaceholder": "请选择年份",
|
|
"quarterPlaceholder": "请选择季度",
|
|
"monthPlaceholder": "请选择月份",
|
|
"weekPlaceholder": "请选择周",
|
|
"rangePlaceholder": [ "开始日期", "结束日期" ],
|
|
"rangeYearPlaceholder": [ "开始年份", "结束年份" ],
|
|
"rangeMonthPlaceholder": [ "开始月份", "结束月份" ],
|
|
"rangeWeekPlaceholder": [ "开始周", "结束周" ],
|
|
"locale": "zh_CN",
|
|
"today": "今天",
|
|
"now": "此刻",
|
|
"backToToday": "返回今天",
|
|
"ok": "确定",
|
|
"timeSelect": "选择时间",
|
|
"dateSelect": "选择日期",
|
|
"weekSelect": "选择周",
|
|
"clear": "清除",
|
|
"month": "月",
|
|
"year": "年",
|
|
"previousMonth": "上个月 (翻页上键)",
|
|
"nextMonth": "下个月 (翻页下键)",
|
|
"monthSelect": "选择月份",
|
|
"yearSelect": "选择年份",
|
|
"decadeSelect": "选择年代",
|
|
"yearFormat": "YYYY年",
|
|
"dayFormat": "D日",
|
|
"dateFormat": "YYYY年M月D日",
|
|
"dateTimeFormat": "YYYY年M月D日 HH时mm分ss秒",
|
|
"previousYear": "上一年 (Control键加左方向键)",
|
|
"nextYear": "下一年 (Control键加右方向键)",
|
|
"previousDecade": "上一年代",
|
|
"nextDecade": "下一年代",
|
|
"previousCentury": "上一世纪",
|
|
"nextCentury": "下一世纪"
|
|
},
|
|
"timePickerLocale": {
|
|
"placeholder": "请选择时间",
|
|
"rangePlaceholder": [ "开始时间", "结束时间" ]
|
|
}
|
|
},
|
|
"TimePicker": {
|
|
"placeholder": "请选择时间",
|
|
"rangePlaceholder": [ "开始时间", "结束时间" ]
|
|
},
|
|
"Calendar": {
|
|
"lang": {
|
|
"placeholder": "请选择日期",
|
|
"yearPlaceholder": "请选择年份",
|
|
"quarterPlaceholder": "请选择季度",
|
|
"monthPlaceholder": "请选择月份",
|
|
"weekPlaceholder": "请选择周",
|
|
"rangePlaceholder": [ "开始日期", "结束日期" ],
|
|
"rangeYearPlaceholder": [ "开始年份", "结束年份" ],
|
|
"rangeMonthPlaceholder": [ "开始月份", "结束月份" ],
|
|
"rangeWeekPlaceholder": [ "开始周", "结束周" ],
|
|
"locale": "zh_CN",
|
|
"today": "今天",
|
|
"now": "此刻",
|
|
"backToToday": "返回今天",
|
|
"ok": "确定",
|
|
"timeSelect": "选择时间",
|
|
"dateSelect": "选择日期",
|
|
"weekSelect": "选择周",
|
|
"clear": "清除",
|
|
"month": "月",
|
|
"year": "年",
|
|
"previousMonth": "上个月 (翻页上键)",
|
|
"nextMonth": "下个月 (翻页下键)",
|
|
"monthSelect": "选择月份",
|
|
"yearSelect": "选择年份",
|
|
"decadeSelect": "选择年代",
|
|
"yearFormat": "YYYY年",
|
|
"dayFormat": "D日",
|
|
"dateFormat": "YYYY年M月D日",
|
|
"dateTimeFormat": "YYYY年M月D日 HH时mm分ss秒",
|
|
"previousYear": "上一年 (Control键加左方向键)",
|
|
"nextYear": "下一年 (Control键加右方向键)",
|
|
"previousDecade": "上一年代",
|
|
"nextDecade": "下一年代",
|
|
"previousCentury": "上一世纪",
|
|
"nextCentury": "下一世纪"
|
|
},
|
|
"timePickerLocale": {
|
|
"placeholder": "请选择时间",
|
|
"rangePlaceholder": [ "开始时间", "结束时间" ]
|
|
}
|
|
},
|
|
"global": { "placeholder": "请选择" },
|
|
"Table": {
|
|
"filterTitle": "筛选",
|
|
"filterConfirm": "确定",
|
|
"filterReset": "重置",
|
|
"selectAll": "全选当页",
|
|
"selectInvert": "反选当页",
|
|
"selectionAll": "全选所有",
|
|
"sortTitle": "排序",
|
|
"expand": "展开行",
|
|
"collapse": "关闭行",
|
|
"triggerDesc": "点击降序",
|
|
"triggerAsc": "点击升序",
|
|
"cancelSort": "取消排序"
|
|
},
|
|
"Modal": {
|
|
"okText": "确定",
|
|
"cancelText": "取消",
|
|
"justOkText": "知道了"
|
|
},
|
|
"Popconfirm": {
|
|
"cancelText": "取消",
|
|
"okText": "确定"
|
|
},
|
|
"Transfer": {
|
|
"searchPlaceholder": "请输入搜索内容",
|
|
"itemUnit": "项",
|
|
"itemsUnit": "项"
|
|
},
|
|
"Upload": {
|
|
"uploading": "文件上传中",
|
|
"removeFile": "删除文件",
|
|
"uploadError": "上传错误",
|
|
"previewFile": "预览文件",
|
|
"downloadFile": "下载文件"
|
|
},
|
|
"Empty": { "description": "暂无数据" },
|
|
"Icon": { "icon": "图标" },
|
|
"Text": {
|
|
"edit": "编辑",
|
|
"copy": "复制",
|
|
"copied": "复制成功",
|
|
"expand": "展开"
|
|
},
|
|
"PageHeader": { "back": "返回" },
|
|
"Form": {
|
|
"defaultValidateMessages": {
|
|
"default": "字段验证错误${label}",
|
|
"required": "请输入${label}",
|
|
"enum": "${label}必须是其中一个[${enum}]",
|
|
"whitespace": "${label}不能为空字符",
|
|
"date": {
|
|
"format": "${label}日期格式无效",
|
|
"parse": "${label}不能转换为日期",
|
|
"invalid": "${label}是一个无效日期"
|
|
},
|
|
"types": {
|
|
"string": "${label}不是一个有效的${type}",
|
|
"method": "${label}不是一个有效的${type}",
|
|
"array": "${label}不是一个有效的${type}",
|
|
"object": "${label}不是一个有效的${type}",
|
|
"number": "${label}不是一个有效的${type}",
|
|
"date": "${label}不是一个有效的${type}",
|
|
"boolean": "${label}不是一个有效的${type}",
|
|
"integer": "${label}不是一个有效的${type}",
|
|
"float": "${label}不是一个有效的${type}",
|
|
"regexp": "${label}不是一个有效的${type}",
|
|
"email": "${label}不是一个有效的${type}",
|
|
"url": "${label}不是一个有效的${type}",
|
|
"hex": "${label}不是一个有效的${type}"
|
|
},
|
|
"string": {
|
|
"len": "${label}须为${len}个字符",
|
|
"min": "${label}最少${min}个字符",
|
|
"max": "${label}最多${max}个字符",
|
|
"range": "${label}须在${min}-${max}字符之间"
|
|
},
|
|
"number": {
|
|
"len": "${label}必须等于${len}",
|
|
"min": "${label}最小值为${min}",
|
|
"max": "${label}最大值为${max}",
|
|
"range": "${label}须在${min}-${max}之间"
|
|
},
|
|
"array": {
|
|
"len": "须为${len}个${label}",
|
|
"min": "最少${min}个${label}",
|
|
"max": "最多${max}个${label}",
|
|
"range": "${label}数量须在${min}-${max}之间"
|
|
},
|
|
"pattern": { "mismatch": "${label}与模式不匹配${pattern}" }
|
|
}
|
|
}
|
|
} |