From 5600f0d2415b9ce9ad3efcd173fa632869731efb Mon Sep 17 00:00:00 2001 From: Alexandr <53787217+qwerty541@users.noreply.github.com> Date: Sun, 17 Jan 2021 11:32:12 +0200 Subject: [PATCH] fix(translation): more languages marked as long (#804) --- src/cards/stats-card.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/cards/stats-card.js b/src/cards/stats-card.js index 9bd69572..16b65e79 100644 --- a/src/cards/stats-card.js +++ b/src/cards/stats-card.js @@ -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)