diff --git a/src/translations.js b/src/translations.js index f8561352..ff5e7e2b 100644 --- a/src/translations.js +++ b/src/translations.js @@ -27,7 +27,7 @@ const statCardLocales = ({ name, apostrophe }) => { pl: `Statystyki GitHub użytkownika ${encodeHTML(name)}`, }, "statcard.totalstars": { - cn: "总 Star", + cn: "获标星(star)", cs: "Celkem hvězd", de: "Sterne Insgesamt", en: "Total Stars", @@ -51,7 +51,7 @@ const statCardLocales = ({ name, apostrophe }) => { pl: "Liczba Gwiazdek", }, "statcard.commits": { - cn: "总提交", + cn: "累计提交(commit)", cs: "Celkem commitů", de: "Anzahl Commits", en: "Total Commits", @@ -75,7 +75,7 @@ const statCardLocales = ({ name, apostrophe }) => { pl: "Wszystkie commity", }, "statcard.prs": { - cn: "总 PR", + cn: "提案数(PR)", cs: "Celkem PRs", de: "PRs Insgesamt", en: "Total PRs", @@ -99,7 +99,7 @@ const statCardLocales = ({ name, apostrophe }) => { pl: "Wszystkie PR", }, "statcard.issues": { - cn: "总 Issue", + cn: "指出问题(issue)", cs: "Celkem problémů", de: "Anzahl Issues", en: "Total Issues", @@ -123,7 +123,7 @@ const statCardLocales = ({ name, apostrophe }) => { pl: "Wszystkie problemy", }, "statcard.contribs": { - cn: "总贡献", + cn: "参与项目数", cs: "Přispěl k", de: "Beigetragen zu", en: "Contributed to", diff --git a/tests/renderStatsCard.test.js b/tests/renderStatsCard.test.js index 41867ccf..10a6fe39 100644 --- a/tests/renderStatsCard.test.js +++ b/tests/renderStatsCard.test.js @@ -240,26 +240,26 @@ describe("Test renderStatsCard", () => { document.querySelector( 'g[transform="translate(0, 0)"]>.stagger>.stat.bold', ).textContent, - ).toBe("总 Star:"); + ).toBe("获标星(star):"); expect( document.querySelector( 'g[transform="translate(0, 25)"]>.stagger>.stat.bold', ).textContent, - ).toBe(`总提交 (${new Date().getFullYear()}):`); + ).toBe(`累计提交(commit) (${new Date().getFullYear()}):`); expect( document.querySelector( 'g[transform="translate(0, 50)"]>.stagger>.stat.bold', ).textContent, - ).toBe("总 PR:"); + ).toBe("提案数(PR):"); expect( document.querySelector( 'g[transform="translate(0, 75)"]>.stagger>.stat.bold', ).textContent, - ).toBe("总 Issue:"); + ).toBe("指出问题(issue):"); expect( document.querySelector( 'g[transform="translate(0, 100)"]>.stagger>.stat.bold', ).textContent, - ).toBe("总贡献:"); + ).toBe("参与项目数:"); }); });