mirror of
https://github.com/tiennm99/github-readme-stats.git
synced 2026-05-23 04:25:42 +00:00
fix: names ending in "X" or "S" (#612)
* Update stats-card.js * Update stats-card.js
This commit is contained in:
@@ -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 }),
|
||||
|
||||
Reference in New Issue
Block a user