Unverified Commit cf8f23a0 authored by Yishuai Li's avatar Yishuai Li Committed by GitHub
Browse files

chore(translation): improved Chinese locale (#774)

Localise with English annotated
parent 7bc0cceb
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
@@ -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",
+5 −5
Original line number Diff line number Diff line
@@ -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("参与项目数:");
  });
});