Skip to content

Commit

Permalink
chore(macros/CSSSyntax): add zh-CN translation (#10275)
Browse files Browse the repository at this point in the history
  • Loading branch information
yin1999 authored Jan 25, 2024
1 parent 6370f06 commit 402a365
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions kumascript/src/lib/css-syntax.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,65 +32,77 @@ export async function getCSSSyntax(
fragment: "asterisk",
tooltip: localString({
"en-US": "Asterisk: the entity may occur zero, one or several times",
"zh-CN": "星号:该实体可以出现零次、一次或多次",
}),
},
"+": {
fragment: "plus",
tooltip: localString({
"en-US": "Plus: the entity may occur one or several times",
"zh-CN": "加号:该实体可以出现一次或多次",
}),
},
"?": {
fragment: "question_mark",
tooltip: localString({
"en-US": "Question mark: the entity is optional",
"zh-CN": "问号:该实体是可选的",
}),
},
"{}": {
fragment: "curly_braces",
tooltip: localString({
"en-US":
"Curly braces: encloses two integers defining the minimal and maximal numbers of occurrences of the entity, or a single integer defining the exact number required",
"zh-CN":
"花括号:包含两个整数,定义实体的最少和最多出现次数;或包含单个整数,定义所需的确切数量",
}),
},
"#": {
fragment: "hash_mark",
tooltip: localString({
"en-US":
"Hash mark: the entity is repeated one or several times, each occurence separated by a comma",
"zh-CN": "井号:该实体重复一次或多次,每个实体由逗号分隔",
}),
},
"!": {
fragment: "exclamation_point_!",
tooltip: localString({
"en-US": "Exclamation point: the group must produce at least one value",
"zh-CN": "感叹号:该组必须产生至少一个值",
}),
},
"[]": {
fragment: "brackets",
tooltip: localString({
"en-US":
"Brackets: enclose several entities, combinators, and multipliers to transform them as a single component",
"zh-CN":
"方括号:将多个实体、组合符号和数量符号组合在一起,将它们转换为单个组件",
}),
},
"|": {
fragment: "single_bar",
tooltip: localString({
"en-US": "Single bar: exactly one of the entities must be present",
"zh-CN": "“互斥”组合符:必须恰好存在其中的一个实体",
}),
},
"||": {
fragment: "double_bar",
tooltip: localString({
"en-US":
"Double bar: one or several of the entities must be present, in any order",
"zh-CN": "“或”组合符:必须存在一个或多个实体,顺序不限",
}),
},
"&&": {
fragment: "double_ampersand",
tooltip: localString({
"en-US":
"Double ampersand: all of the entities must be present, in any order",
"zh-CN": "“与”组合符:必须存在所有实体,顺序不限",
}),
},
};
Expand Down

0 comments on commit 402a365

Please sign in to comment.