special treatment for Local source
This commit is contained in:
@@ -107,13 +107,15 @@ export default function SourceCard(props: IProps) {
|
|||||||
alt={name}
|
alt={name}
|
||||||
src={`${serverAddress}${iconUrl}?useCache=${useCache}`}
|
src={`${serverAddress}${iconUrl}?useCache=${useCache}`}
|
||||||
/>
|
/>
|
||||||
<div style={{ display: 'flex', flexDirection: 'column' }}>
|
<div style={{ display: 'flex', flexDirection: 'column', justifyContent: 'center' }}>
|
||||||
<Typography variant="h5" component="h2">
|
<Typography variant="h5" component="h2">
|
||||||
{name}
|
{name}
|
||||||
</Typography>
|
</Typography>
|
||||||
<Typography variant="caption" display="block" gutterBottom>
|
{id !== '0' && (
|
||||||
{langCodeToName(lang)}
|
<Typography variant="caption" display="block" gutterBottom>
|
||||||
</Typography>
|
{langCodeToName(lang)}
|
||||||
|
</Typography>
|
||||||
|
)}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ export const ISOLanguages = [
|
|||||||
|
|
||||||
{ code: 'other', name: 'other langs?', nativeName: 'Other' },
|
{ 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
|
// full list: https://github.com/meikidd/iso-639-1/blob/master/src/data.js
|
||||||
{ code: 'en', name: 'English', nativeName: 'English' },
|
{ code: 'en', name: 'English', nativeName: 'English' },
|
||||||
|
|||||||
Reference in New Issue
Block a user