Skip to content

Commit a989797

Browse files
authored
feat(locale): simplified chinese translation
PR #177 * Simplified Chinese translation i18n file * There are non-ascii in i18n translation, only-ascii mode will report an error
1 parent c698cfd commit a989797

File tree

4 files changed

+2591
-11
lines changed
  • client/packages
    • lowcoder
    • lowcoder-comps/src/i18n/comps/locales
    • lowcoder-design/src/i18n/design/locales

4 files changed

+2591
-11
lines changed
Lines changed: 137 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,137 @@
1-
import { en } from "./en";
2-
3-
export const zh: typeof en | undefined = undefined;
4-
1+
export const zh = {
2+
chart: {
3+
delete: "删除",
4+
data: "数据",
5+
mode: "模式",
6+
config: "配置",
7+
UIMode: "UI模式",
8+
chartType: "图表类型",
9+
xAxis: "X轴",
10+
chartSeries: "图表系列",
11+
customSeries: "自定义系列",
12+
add: "添加",
13+
confirmDelete: "确认删除:",
14+
seriesName: "系列名称",
15+
dataColumns: "数据列",
16+
title: "标题",
17+
xAxisDirection: "X轴方向",
18+
xAxisName: "X轴名称",
19+
xAxisType: "X轴类型",
20+
xAxisTypeTooltip: "默认情况下,根据X轴数据自动检测.有关类型描述,请参考:",
21+
logBase: "对数底数",
22+
yAxisName: "Y轴名称",
23+
yAxisType: "Y轴类型",
24+
yAxisDataFormat: "Y轴数据格式",
25+
yAxisDataFormatTooltip: `值表示每个坐标的值.示例:'{{value * 100 + "%"}}'`,
26+
basicBar: "基本柱状图",
27+
stackedBar: "堆叠柱状图",
28+
barType: "柱状图类型",
29+
categoryAxis: "分类轴",
30+
valueAxis: "值轴",
31+
timeAxis: "时间轴",
32+
logAxis: "对数轴",
33+
auto: "自动",
34+
legendPosition: "图例位置",
35+
basicLine: "基本折线图",
36+
stackedLine: "堆叠折线图",
37+
areaLine: "区域折线图",
38+
smooth: "平滑曲线",
39+
lineType: "折线图类型",
40+
basicPie: "基本饼图",
41+
doughnutPie: "环形饼图",
42+
rosePie: "玫瑰饼图",
43+
pieType: "饼图类型",
44+
spending: "支出",
45+
budget: "预算",
46+
bar: "柱状图",
47+
line: "折线图",
48+
scatter: "散点图",
49+
pie: "饼图",
50+
horizontal: "水平",
51+
vertical: "垂直",
52+
noData: "无数据",
53+
unknown: "未知",
54+
select: "选择",
55+
unSelect: "取消选择",
56+
echartsOptionLabel: "选项",
57+
echartsOptionTooltip: "ECharts选项",
58+
echartsOptionExamples: "ECharts示例",
59+
selectDesc: "当用户选择图表中的部分数据时触发",
60+
unselectDesc: "当用户取消选择图表中的部分数据时触发",
61+
selectedPointsDesc: "已选中的数据点",
62+
dataDesc: "当前图表使用的原始数据",
63+
titleDesc: "当前图表标题",
64+
scatterShape: "散点形状",
65+
circle: "圆形",
66+
rect: "矩形",
67+
triangle: "三角形",
68+
diamond: "菱形",
69+
pin: "图钉",
70+
arrow: "箭头",
71+
pointColorLabel: "数据点颜色",
72+
pointColorTooltip: `根据系列名称和当前数据点值设置数据点颜色,可选变量:seriesName、value.示例:'{{value < 25000 ? "red" : "green"}}'`,
73+
},
74+
imageEditor: {
75+
defaultSrc: "",
76+
save: "保存",
77+
saveDesc: "保存图像",
78+
src: "图像来源",
79+
name: "图像名称",
80+
buttonText: "按钮文本",
81+
srcDesc: "图像来源",
82+
nameDesc: "图像名称",
83+
dataURIDesc: "图像数据URI",
84+
dataDesc: "图像数据",
85+
buttonTextDesc: "按钮文本",
86+
},
87+
calendar: {
88+
events: "事件数据",
89+
editable: "可编辑",
90+
defaultDate: "默认日期",
91+
defaultDateTooltip: "日历最初显示的日期",
92+
defaultView: "默认视图",
93+
defaultViewTooltip: "日历最初显示的视图",
94+
showEventTime: "显示事件时间",
95+
showEventTimeTooltip: "是否显示事件的时间文本",
96+
showWeekends: "显示周末",
97+
showAllDay: "显示全天",
98+
showAllDayTooltip: "是否在周视图和日视图中显示全天时间段",
99+
dayMaxEvents: "每日最多事件数",
100+
dayMaxEventsTooltip: "在月视图中每天显示的事件最大数量,为0表示限制为单元格的高度",
101+
eventMaxStack: "事件最大堆叠数",
102+
eventMaxStackTooltip: "在周视图和日视图中水平堆叠的事件的最大数量,为0表示没有限制",
103+
selectInterval: "日历上选择的时间间隔",
104+
selectEvent: "已选事件",
105+
changeSet: "拖动日历中更改的事件对象,键为eventId,值为事件对象",
106+
headerBtnBackground: "按钮背景",
107+
btnText: "按钮文本",
108+
title: "标题",
109+
selectBackground: "选择背景",
110+
today: "今天",
111+
month: "月",
112+
week: "周",
113+
day: "日",
114+
list: "列表",
115+
monday: "星期一",
116+
tuesday: "星期二",
117+
wednesday: "星期三",
118+
thursday: "星期四",
119+
friday: "星期五",
120+
saturday: "星期六",
121+
sunday: "星期日",
122+
startWeek: "起始星期",
123+
creatEvent: "创建事件",
124+
editEvent: "编辑事件",
125+
eventName: "事件名称",
126+
eventColor: "事件颜色",
127+
eventGroupId: "分组ID",
128+
groupIdTooltip: "分组ID用于将不同的事件分组,同一组内的事件可以一起拖动和调整大小.",
129+
more: "更多",
130+
allDay: "全天",
131+
eventNameRequire: "请输入事件名称",
132+
eventId: "事件ID",
133+
eventIdRequire: "请输入事件ID",
134+
eventIdTooltip: "每个事件的唯一标识符",
135+
eventIdExist: "ID已存在",
136+
},
137+
};
Lines changed: 60 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,60 @@
1-
import { en } from "./en";
2-
3-
export const zh: typeof en | undefined = undefined;
4-
1+
export const zh = {
2+
addItem: "添加",
3+
duplicate: "复制",
4+
rename: "重命名",
5+
delete: "删除",
6+
edit: "编辑",
7+
ok: "确定",
8+
cancel: "取消",
9+
previousStep: "上一步",
10+
nextStep: "下一步",
11+
finish: "完成",
12+
country: {
13+
china: "中国",
14+
},
15+
notification: {
16+
copySuccess: "复制成功",
17+
copyFail: "复制失败",
18+
},
19+
prop: {
20+
basic: "基础",
21+
interaction: "交互",
22+
advanced: "高级",
23+
validation: "验证",
24+
layout: "布局",
25+
style: "样式",
26+
},
27+
passwordInput: {
28+
label: "密码:",
29+
placeholder: "请输入密码",
30+
inconsistentPassword: "两次密码输入不一致",
31+
confirmPasswordLabel: "确认密码:",
32+
confirmPasswordPlaceholder: "请再次输入密码",
33+
},
34+
verifyCodeInput: {
35+
label: "验证码:",
36+
errorMsg: "验证码应为 {digitNum} 位数字",
37+
placeholder: "请输入 {digitNum} 位数字验证码",
38+
sendCode: "发送验证码",
39+
},
40+
iconSelect: {
41+
title: "选择图标",
42+
searchPlaceholder: "搜索图标",
43+
},
44+
eventHandler: {
45+
advanced: "高级",
46+
},
47+
comp: {
48+
selectedCompsTitle: "已选择 {selectCompNum} 个组件",
49+
selectedCompsDetail: "点击组件查看其属性",
50+
batchDelete: "批量删除",
51+
},
52+
optionsControl: {
53+
optionItemErrorMSg: `发现重复的选项值 "{value}",只会显示第一项,请更改为唯一值.`,
54+
emptyList: "无选项",
55+
},
56+
container: {
57+
hintPlaceHolder: "从右侧面板拖动组件",
58+
},
59+
};
60+

client/packages/lowcoder/.eslintrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33
"plugins": ["only-ascii"],
44
"rules": {
55
// "react-hooks/exhaustive-deps": "off"
6-
"only-ascii/only-ascii": "error"
6+
//"only-ascii/only-ascii": "error"
77
}
88
}

0 commit comments

Comments
 (0)