Skip to content

Commit

Permalink
chore: change total stars to total stars earned (#1293)
Browse files Browse the repository at this point in the history
  • Loading branch information
anuraghazra authored Sep 5, 2021
1 parent 98ceb75 commit c3ecd0c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 16 deletions.
25 changes: 10 additions & 15 deletions src/cards/stats-card.js
Original file line number Diff line number Diff line change
Expand Up @@ -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())
? ""
Expand Down Expand Up @@ -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),
}),
);

Expand Down
2 changes: 1 addition & 1 deletion src/translations.js
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

1 comment on commit c3ecd0c

@vercel
Copy link

@vercel vercel bot commented on c3ecd0c Sep 5, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.