Skip to content

Commit

Permalink
fix: removed isLongLocale param
Browse files Browse the repository at this point in the history
  • Loading branch information
Morphclue committed Jul 25, 2021
1 parent 91dbebe commit 55f1e2d
Showing 1 changed file with 1 addition and 15 deletions.
16 changes: 1 addition & 15 deletions src/cards/stats-card.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,19 +137,6 @@ const renderStatsCard = (stats = {}, options = { hide: [] }) => {
},
};

const longLocales = [
"cn",
"es",
"fr",
"pt-br",
"ru",
"uk-ua",
"id",
"my",
"pl",
];
const isLongLocale = longLocales.includes(locale) === true;

// filter out hidden stats defined by user & create the text nodes
const statItems = Object.keys(STATS)
.filter((key) => !hide.includes(key))
Expand All @@ -159,8 +146,7 @@ const renderStatsCard = (stats = {}, options = { hide: [] }) => {
...STATS[key],
index,
showIcons: show_icons,
shiftValuePos:
(!include_all_commits ? 50 : 20) + (isLongLocale ? 50 : 0),
shiftValuePos: 100,
}),
);

Expand Down

0 comments on commit 55f1e2d

Please sign in to comment.