Unverified Commit 72529729 authored by Jalen's avatar Jalen Committed by GitHub
Browse files

chore(card-translation): improve translathion of Chinese (#539)

* improve: improve translation of Chinese

* improve: update the text on test files
parent cb849ddc
Loading
Loading
Loading
Loading
+9 −9
Original line number Diff line number Diff line
@@ -15,7 +15,7 @@ const statCardLocales = ({ name, apostrophe }) => {
      np: `${encodeHTML(name)}'${apostrophe} गिटहब तथ्याङ्क`,
    },
    "statcard.totalstars": {
      cn: "星数",
      cn: " Star",
      de: "Sterne Insgesamt",
      en: "Total Stars",
      es: "Estrellas totales",
@@ -27,7 +27,7 @@ const statCardLocales = ({ name, apostrophe }) => {
      np: "कुल ताराहरू",
    },
    "statcard.commits": {
      cn: "承诺",
      cn: "提交",
      de: "Anzahl Commits",
      en: "Total Commits",
      es: "Compromisos totales",
@@ -39,7 +39,7 @@ const statCardLocales = ({ name, apostrophe }) => {
      np: "कुल Commits",
    },
    "statcard.prs": {
      cn: "公关",
      cn: " PR",
      de: "PRs Insgesamt",
      en: "Total PRs",
      es: "RP totales",
@@ -51,7 +51,7 @@ const statCardLocales = ({ name, apostrophe }) => {
      np: "कुल PRs",
    },
    "statcard.issues": {
      cn: "发行量",
      cn: " Issue",
      de: "Anzahl Issues",
      en: "Total Issues",
      es: "Problemas totales",
@@ -63,7 +63,7 @@ const statCardLocales = ({ name, apostrophe }) => {
      np: "कुल मुद्दाहरू",
    },
    "statcard.contribs": {
      cn: "有助于",
      cn: "总贡献",
      de: "Beigetragen zu",
      en: "Contributed to",
      es: "Contribuido a",
@@ -91,7 +91,7 @@ const repoCardLocales = {
    np: "टेम्पलेट",
  },
  "repocard.archived": {
    cn: "封存",
    cn: "归档",
    de: "Archiviert",
    en: "Archived",
    es: "Archivé",
@@ -133,7 +133,7 @@ const wakatimeCardLocales = {
    np: "Wakatime हप्ता तथ्याङ्क",
  },
  "wakatimecard.nocodingactivity": {
    cn: "本周没有编活动",
    cn: "本周没有编活动",
    de: "Keine Aktivitäten in dieser Woche",
    en: "No coding activity this week",
    es: "No hay actividad de codificación esta semana",
+1 −1
Original line number Diff line number Diff line
@@ -319,7 +319,7 @@ describe("Test renderRepoCard", () => {
      },
    );

    expect(queryByTestId(document.body, "badge")).toHaveTextContent("封存");
    expect(queryByTestId(document.body, "badge")).toHaveTextContent("归档");

    document.body.innerHTML = renderRepoCard(
      {
+6 −6
Original line number Diff line number Diff line
@@ -219,26 +219,26 @@ describe("Test renderStatsCard", () => {
      document.querySelector(
        'g[transform="translate(0, 0)"]>.stagger>.stat.bold',
      ).textContent,
    ).toBe("星数:");
    ).toBe(" Star:");
    expect(
      document.querySelector(
        'g[transform="translate(0, 25)"]>.stagger>.stat.bold',
      ).textContent,
    ).toBe("承诺 (2020):");
    ).toBe("提交 (2020):");
    expect(
      document.querySelector(
        'g[transform="translate(0, 50)"]>.stagger>.stat.bold',
      ).textContent,
    ).toBe("公关:");
    ).toBe(" PR:");
    expect(
      document.querySelector(
        'g[transform="translate(0, 75)"]>.stagger>.stat.bold',
      ).textContent,
    ).toBe("发行量:");
    ).toBe(" Issue:");
    expect(
      document.querySelector(
        'g[transform="translate(0, 100)"]>.stagger>.stat.bold',
      ).textContent,
    ).toBe("有助于:");
    ).toBe("总贡献:");
  });
});
+2 −2
Original line number Diff line number Diff line
@@ -122,6 +122,6 @@ describe("Test Render Wakatime Card", () => {
    expect(
      document.querySelector('g[transform="translate(0, 0)"]>text.stat.bold')
        .textContent,
    ).toBe("本周没有编活动");
    ).toBe("本周没有编活动");
  });
});