Skip to content

Commit 70add4c

Browse files
fix: update Simplified Chinese translations (#3766)
* chore(translations): Update translation for cn Signed-off-by: crrashh1542 <[email protected]> * update tests * prettier --------- Signed-off-by: crrashh1542 <[email protected]> Co-authored-by: Alexandr <[email protected]>
1 parent b13d6a9 commit 70add4c

File tree

2 files changed

+13
-15
lines changed

2 files changed

+13
-15
lines changed

src/translations.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ const statCardLocales = ({ name, apostrophe }) => {
8282
"statcard.totalstars": {
8383
ar: "مجموع النجوم",
8484
az: "Ümumi Ulduz",
85-
cn: "获标星数(star)",
85+
cn: "获标星数",
8686
"zh-tw": "得標星星數量(Star)",
8787
cs: "Celkem hvězd",
8888
de: "Insgesamt erhaltene Sterne",
@@ -114,7 +114,7 @@ const statCardLocales = ({ name, apostrophe }) => {
114114
"statcard.commits": {
115115
ar: "مجموع المساهمات",
116116
az: "Ümumi Commit",
117-
cn: "累计提交数(commit)",
117+
cn: "累计提交总数",
118118
"zh-tw": "累計提交數量(Commit)",
119119
cs: "Celkem commitů",
120120
de: "Anzahl Commits",
@@ -146,7 +146,7 @@ const statCardLocales = ({ name, apostrophe }) => {
146146
"statcard.prs": {
147147
ar: "مجموع طلبات السحب",
148148
az: "Ümumi PR",
149-
cn: "拉取请求数(PR)",
149+
cn: "发起的 PR 总数",
150150
"zh-tw": "拉取請求數量(PR)",
151151
cs: "Celkem PRs",
152152
de: "PRs Insgesamt",
@@ -178,7 +178,7 @@ const statCardLocales = ({ name, apostrophe }) => {
178178
"statcard.issues": {
179179
ar: "مجموع التحسينات",
180180
az: "Ümumi Problem",
181-
cn: "指出问题数(issue",
181+
cn: "提出的 issue 总数",
182182
"zh-tw": "提出問題數量(Issue)",
183183
cs: "Celkem problémů",
184184
de: "Anzahl Issues",
@@ -210,7 +210,7 @@ const statCardLocales = ({ name, apostrophe }) => {
210210
"statcard.contribs": {
211211
ar: "ساهم في (العام الماضي)",
212212
az: "Töhfə verdi (ötən il)",
213-
cn: "贡献于(去年)",
213+
cn: "贡献的项目数(去年)",
214214
"zh-tw": "參與項目數量(去年)",
215215
cs: "Přispěl k (minulý rok)",
216216
de: "Beigetragen zu (letztes Jahr)",
@@ -242,7 +242,7 @@ const statCardLocales = ({ name, apostrophe }) => {
242242
"statcard.reviews": {
243243
ar: "طلبات السحب التي تم مراجعتها",
244244
az: "Nəzərdən Keçirilən Ümumi PR",
245-
cn: "審查的 PR 總數",
245+
cn: "审查的 PR 总数",
246246
"zh-tw": "審核的 PR 總計",
247247
cs: "Celkový počet PR",
248248
de: "Insgesamt überprüfte PRs",
@@ -369,7 +369,7 @@ const statCardLocales = ({ name, apostrophe }) => {
369369
"statcard.prs-merged-percentage": {
370370
ar: "نسبة طلبات السحب المُدمجة",
371371
az: "Birləşdirilmiş PR-ların Faizi",
372-
cn: "合并的 PR 百分比",
372+
cn: "被合并的 PR 占比",
373373
"zh-tw": "合併的 PR 百分比",
374374
cs: "Sloučené PRs v procentech",
375375
de: "Zusammengeführte PRs in Prozent",
@@ -503,7 +503,7 @@ const langCardLocales = {
503503
"langcard.nodata": {
504504
ar: "لا توجد بيانات للغات.",
505505
az: "Dil məlumatı yoxdur.",
506-
cn: "沒有語言數據。",
506+
cn: "没有语言数据。",
507507
"zh-tw": "沒有語言資料。",
508508
cs: "Žádné jazykové údaje.",
509509
de: "Keine Sprachdaten.",

tests/renderStatsCard.test.js

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -382,29 +382,27 @@ describe("Test renderStatsCard", () => {
382382
document.querySelector(
383383
'g[transform="translate(0, 0)"]>.stagger>.stat.bold',
384384
).textContent,
385-
).toMatchInlineSnapshot(`"获标星数(star):"`);
385+
).toMatchInlineSnapshot(`"获标星数:"`);
386386
expect(
387387
document.querySelector(
388388
'g[transform="translate(0, 25)"]>.stagger>.stat.bold',
389389
).textContent,
390-
).toMatchInlineSnapshot(
391-
`"累计提交数(commit) (${new Date().getFullYear()}):"`,
392-
);
390+
).toMatchInlineSnapshot(`"累计提交总数 (${new Date().getFullYear()}):"`);
393391
expect(
394392
document.querySelector(
395393
'g[transform="translate(0, 50)"]>.stagger>.stat.bold',
396394
).textContent,
397-
).toMatchInlineSnapshot(`"拉取请求数(PR):"`);
395+
).toMatchInlineSnapshot(`"发起的 PR 总数:"`);
398396
expect(
399397
document.querySelector(
400398
'g[transform="translate(0, 75)"]>.stagger>.stat.bold',
401399
).textContent,
402-
).toMatchInlineSnapshot(`"指出问题数(issue:"`);
400+
).toMatchInlineSnapshot(`"提出的 issue 总数:"`);
403401
expect(
404402
document.querySelector(
405403
'g[transform="translate(0, 100)"]>.stagger>.stat.bold',
406404
).textContent,
407-
).toMatchInlineSnapshot(`"贡献于(去年):"`);
405+
).toMatchInlineSnapshot(`"贡献的项目数(去年):"`);
408406
});
409407

410408
it("should render without rounding", () => {

0 commit comments

Comments
 (0)