From c3ecd0cea3fabdad764159286c763c58c61d0d0e Mon Sep 17 00:00:00 2001 From: Anurag Hazra Date: Mon, 6 Sep 2021 00:29:18 +0530 Subject: [PATCH] chore: change `total stars` to `total stars earned` (#1293) --- src/cards/stats-card.js | 25 ++++++++++--------------- src/translations.js | 2 +- 2 files changed, 11 insertions(+), 16 deletions(-) diff --git a/src/cards/stats-card.js b/src/cards/stats-card.js index 345c2a4..22e4be7 100644 --- a/src/cards/stats-card.js +++ b/src/cards/stats-card.js @@ -78,20 +78,15 @@ const renderStatsCard = (stats = {}, options = { hide: [] }) => { const lheight = parseInt(line_height, 10); // returns theme based colors with proper overrides and defaults - const { - titleColor, - textColor, - iconColor, - bgColor, - borderColor, - } = getCardColors({ - title_color, - icon_color, - text_color, - bg_color, - border_color, - theme, - }); + const { titleColor, textColor, iconColor, bgColor, borderColor } = + getCardColors({ + title_color, + icon_color, + text_color, + bg_color, + border_color, + theme, + }); const apostrophe = ["x", "s"].includes(name.slice(-1).toLocaleLowerCase()) ? "" @@ -162,7 +157,7 @@ const renderStatsCard = (stats = {}, options = { hide: [] }) => { index, showIcons: show_icons, shiftValuePos: - (!include_all_commits ? 50 : 20) + (isLongLocale ? 50 : 0), + (!include_all_commits ? 50 : 35) + (isLongLocale ? 50 : 0), }), ); diff --git a/src/translations.js b/src/translations.js index edfa30b..e8a85bd 100644 --- a/src/translations.js +++ b/src/translations.js @@ -34,7 +34,7 @@ const statCardLocales = ({ name, apostrophe }) => { cn: "获标星数(star)", cs: "Celkem hvězd", de: "Insgesamt erhaltene Sterne", - en: "Total Stars", + en: "Total Stars Earned", bn: "সর্বমোট Stars", es: "Estrellas totales", fr: "Total d'étoiles",