Unverified Commit 6e82cfb3 authored by Nathan Chu's avatar Nathan Chu Committed by GitHub
Browse files

fix: names ending in "X" or "S" (#612)

* Update stats-card.js

* Update stats-card.js
parent 9ca5039e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -77,7 +77,7 @@ const renderStatsCard = (stats = {}, options = { hide: [] }) => {
    theme,
  });

  const apostrophe = ["x", "s"].includes(name.slice(-1)) ? "" : "s";
  const apostrophe = ["x", "s"].includes(name.slice(-1).toLocaleLowerCase()) ? "" : "s";
  const i18n = new I18n({
    locale,
    translations: statCardLocales({ name, apostrophe }),