fix: removed isLongLocale param

This commit is contained in:
Julian Holfeld
2021-07-25 11:18:43 +02:00
parent 91dbebea5a
commit 55f1e2d8c2
+1 -15
View File
@@ -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))
@@ -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,
}),
);