this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Try delay run localeTargetLanguages

+7 -6
+7 -6
src/utils/get-translate-target-language.jsx
··· 8 8 ...navigator.languages, 9 9 ]; 10 10 11 - const localeTargetLanguages = localeMatch( 12 - locales, 13 - translationTargetLanguages.map((l) => l.code.replace('_', '-')), // The underscore will fail Intl.Locale inside `match` 14 - 'en', 15 - ); 11 + const localeTargetLanguages = () => 12 + localeMatch( 13 + locales, 14 + translationTargetLanguages.map((l) => l.code.replace('_', '-')), // The underscore will fail Intl.Locale inside `match` 15 + 'en', 16 + ); 16 17 17 18 function getTranslateTargetLanguage(fromSettings = false) { 18 19 if (fromSettings) { ··· 21 22 return contentTranslationTargetLanguage; 22 23 } 23 24 } 24 - return localeTargetLanguages; 25 + return localeTargetLanguages(); 25 26 } 26 27 27 28 export default getTranslateTargetLanguage;