special treatment for Local source
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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' },
|
||||
|
||||
Reference in New Issue
Block a user