fix(translation): more languages marked as long (#804)

This commit is contained in:
Alexandr 2021-01-17 11:32:12 +02:00 committed by GitHub
parent dff732adf5
commit 5600f0d241
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -128,7 +128,8 @@ const renderStatsCard = (stats = {}, options = { hide: [] }) => {
},
};
const isLongLocale = ["fr", "pt-br", "es", "ru"].includes(locale) === true;
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)