Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitc3ecd0c

Browse files
authored
chore: changetotal stars tototal stars earned (anuraghazra#1293)
1 parent98ceb75 commitc3ecd0c

File tree

2 files changed

+11
-16
lines changed

2 files changed

+11
-16
lines changed

‎src/cards/stats-card.js

Lines changed: 10 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -78,20 +78,15 @@ const renderStatsCard = (stats = {}, options = { hide: [] }) => {
7878
constlheight=parseInt(line_height,10);
7979

8080
// returns theme based colors with proper overrides and defaults
81-
const{
82-
titleColor,
83-
textColor,
84-
iconColor,
85-
bgColor,
86-
borderColor,
87-
}=getCardColors({
88-
title_color,
89-
icon_color,
90-
text_color,
91-
bg_color,
92-
border_color,
93-
theme,
94-
});
81+
const{ titleColor, textColor, iconColor, bgColor, borderColor}=
82+
getCardColors({
83+
title_color,
84+
icon_color,
85+
text_color,
86+
bg_color,
87+
border_color,
88+
theme,
89+
});
9590

9691
constapostrophe=["x","s"].includes(name.slice(-1).toLocaleLowerCase())
9792
?""
@@ -162,7 +157,7 @@ const renderStatsCard = (stats = {}, options = { hide: [] }) => {
162157
index,
163158
showIcons:show_icons,
164159
shiftValuePos:
165-
(!include_all_commits ?50 :20)+(isLongLocale ?50 :0),
160+
(!include_all_commits ?50 :35)+(isLongLocale ?50 :0),
166161
}),
167162
);
168163

‎src/translations.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ const statCardLocales = ({ name, apostrophe }) => {
3434
cn:"获标星数(star)",
3535
cs:"Celkem hvězd",
3636
de:"Insgesamt erhaltene Sterne",
37-
en:"Total Stars",
37+
en:"Total Stars Earned",
3838
bn:"সর্বমোট Stars",
3939
es:"Estrellas totales",
4040
fr:"Total d'étoiles",

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp