Add support for RTL languages.

Replace all FunctionComponent with ComponentType.
Pull new locales
This commit is contained in:
ErickSkrauch
2021-03-28 01:02:52 +01:00
parent 5dc8aae90c
commit 6a65e714ff
35 changed files with 436 additions and 85 deletions

View File

@@ -37,6 +37,7 @@ const RELEASED_LOCALES = ['be', 'fr', 'id', 'pt', 'ru', 'uk', 'vi', 'zh'];
* Array of Crowdin locales to our internal locales representation
*/
const LOCALES_MAP = {
'es-ES': 'es',
'pt-BR': 'pt',
'zh-CN': 'zh',
};
@@ -146,7 +147,7 @@ async function pull() {
throw new Error('Unable to find translation file. Please check the CROWDIN_FILE_PATH param.');
}
const progress = fileInfo.words_approved / fileInfo.words * 100;
const progress = fileInfo.words_translated / fileInfo.words * 100;
if (!RELEASED_LOCALES.includes(toInternalLocale(locale.code)) && progress < MIN_RELEASE_PROGRESS) {
return null;
}