special treatment for Local source

This commit is contained in:
Aria Moradi
2021-09-19 17:11:29 +04:30
parent 0ac2e41597
commit 0e682c6897
2 changed files with 7 additions and 5 deletions

View File

@@ -107,13 +107,15 @@ export default function SourceCard(props: IProps) {
alt={name}
src={`${serverAddress}${iconUrl}?useCache=${useCache}`}
/>
<div style={{ display: 'flex', flexDirection: 'column' }}>
<div style={{ display: 'flex', flexDirection: 'column', justifyContent: 'center' }}>
<Typography variant="h5" component="h2">
{name}
</Typography>
<Typography variant="caption" display="block" gutterBottom>
{langCodeToName(lang)}
</Typography>
{id !== '0' && (
<Typography variant="caption" display="block" gutterBottom>
{langCodeToName(lang)}
</Typography>
)}
</div>
</div>
<div>

View File

@@ -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' },