Skip to content

Commit

Permalink
wip: fix unknown status
Browse files Browse the repository at this point in the history
  • Loading branch information
noomorph committed Oct 11, 2022
1 parent 555a9c0 commit c11794a
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 18 deletions.
43 changes: 29 additions & 14 deletions src/translations/data.json
Original file line number Diff line number Diff line change
Expand Up @@ -89,20 +89,20 @@
"mk": "Глаголица",
"bg": "Глаголица"
},
"verified": {
"en": "Verified",
"isv": "Prověreno",
"ru": "Проверено",
"uk": "Перевірено",
"be": "Праверана",
"pl": "Sprawdzone",
"cs": "Ověřeno",
"sk": "Overené",
"sl": "Preverjeno",
"hr": "Provjereno",
"sr": "Проверено",
"mk": "Потврдено",
"bg": "Проверена"
"notVerified": {
"en": "Not verified",
"isv": "Ne prověreno",
"ru": "Не проверено",
"uk": "Не еревірено",
"be": "Не праверана",
"pl": "Nie sprawdzone",
"cs": "Neověřeno",
"sk": "Neoverené",
"sl": "Ni preverjeno",
"hr": "Nije provjereno",
"sr": "Није проверено",
"mk": "Не е потврдено",
"bg": "Непроверено"
},
"autoTranslation": {
"en": "Auto-translation",
Expand Down Expand Up @@ -3316,6 +3316,21 @@
"mk": "Не разумливо",
"bg": "Не разумливо"
},
"unknownStatus": {
"en": "Unknown",
"isv": "Neznano",
"ru": "Неизвестно",
"uk": "Невідомо",
"be": "Невядома",
"pl": "Nieznane",
"cs": "Neznámé",
"sk": "Neznáme",
"sl": "Neznano",
"hr": "Nepoznato",
"sr": "Непознато",
"mk": "Непознато",
"bg": "Неизвестно"
},
"falseFriend": {
"en": "False friend",
"isv": "Falsivy prijatelj",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ export function getIntelligibilityReport(lang: string, sameInLanguages: string)
const record = sameInLanguages.split(' ').find(w => w.replace(/[^a-z]+/g, '') === lang);

const result = {
emoji: '🔴',
status: t('nonIntelligibleStatus'),
emoji: '',
status: t('unknownStatus'),
verified: false,
};

Expand All @@ -30,8 +30,8 @@ export function getIntelligibilityReport(lang: string, sameInLanguages: string)
}

result.verified = !record.startsWith('!');
if (result.verified) {
result.status = `(${t('verified')}) ${result.status}`;
if (!result.verified) {
result.status = `(${t('notVerified')}) ${result.status}`;
}
}

Expand Down

0 comments on commit c11794a

Please sign in to comment.