mirror of
https://github.com/System-End/github-readme-stats.git
synced 2026-04-19 21:05:16 +00:00
chore(translation): improved Chinese locale (#774)
Localise with English annotated
This commit is contained in:
parent
7bc0ccebc2
commit
cf8f23a0cc
2 changed files with 10 additions and 10 deletions
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -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("参与项目数:");
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue