From 0e682c6897ad8c2bc5b650e0e3589667fecc0009 Mon Sep 17 00:00:00 2001 From: Aria Moradi Date: Sun, 19 Sep 2021 17:11:29 +0430 Subject: [PATCH] special treatment for Local source --- src/components/manga/SourceCard.tsx | 10 ++++++---- src/util/language.tsx | 2 +- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/src/components/manga/SourceCard.tsx b/src/components/manga/SourceCard.tsx index 887da154..1ca0da6a 100644 --- a/src/components/manga/SourceCard.tsx +++ b/src/components/manga/SourceCard.tsx @@ -107,13 +107,15 @@ export default function SourceCard(props: IProps) { alt={name} src={`${serverAddress}${iconUrl}?useCache=${useCache}`} /> -
+
{name} - - {langCodeToName(lang)} - + {id !== '0' && ( + + {langCodeToName(lang)} + + )}
diff --git a/src/util/language.tsx b/src/util/language.tsx index 1a88e403..328b0f61 100644 --- a/src/util/language.tsx +++ b/src/util/language.tsx @@ -12,7 +12,7 @@ export const ISOLanguages = [ { code: 'other', name: 'other langs?', nativeName: 'Other' }, - { code: 'localsourcelang', name: 'Local source', nativeName: 'Other' }, + { code: 'localsourcelang', name: 'Local source', nativeName: 'Local source' }, // full list: https://github.com/meikidd/iso-639-1/blob/master/src/data.js { code: 'en', name: 'English', nativeName: 'English' },