Skip to content

Commit e2b6390

Browse files
committed
Updated missing translations
1 parent e97e1cb commit e2b6390

6 files changed

Lines changed: 35 additions & 17 deletions

File tree

src/components/map-projects/AICandidatesAnalysis.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ const AICandidatesAnalysis = ({ analysis, onClose, sx }) => {
104104
</pre>
105105
</DialogContent>
106106
<DialogActions sx={{p: 3}}>
107-
<Button onClick={() => setOpenDetails(false)}>Close</Button>
107+
<Button onClick={() => setOpenDetails(false)}>{t('common.close')}</Button>
108108
</DialogActions>
109109

110110
</Dialog>

src/components/map-projects/Discuss.jsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,9 @@ const Discuss = ({ logs, onAdd }) => {
7171
return <b>{log.description}</b>
7272
}
7373
if(log.action === 'algo_finished')
74-
return <>Finished running <b>{log.extras.algo}</b></>
74+
return <>{t('map_project.finished_running')} <b>{log.extras.algo}</b></>
7575
if(log.action === 'rerank_finished')
76-
return <>Finished <b>Reranking</b></>
76+
return <>{t('map_project.finished_reranking')}</>
7777
return log.description || startCase(log.action)
7878
}
7979

@@ -171,7 +171,7 @@ const Discuss = ({ logs, onAdd }) => {
171171
</Typography>
172172
}
173173
<Typography sx={{fontSize: '12px', color: 'rgba(0, 0, 0, 0.7)'}}>
174-
{log.user} at {moment(log.created_at).format('ll LTS')}
174+
{log.user} {t('common.at')} {moment(log.created_at).format('ll LTS')}
175175
</Typography>
176176
</TimelineContent>
177177
}

src/components/map-projects/MultiAlgoSelector.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@ export default function MultiAlgoSelector({
384384
updateSelected(sel.__key, { batch_size: clampInt(e.target.value, 1, 1000) })
385385
}
386386
InputProps={{
387-
endAdornment: <InputAdornment position="end">rows</InputAdornment>,
387+
endAdornment: <InputAdornment position="end">{t('map_project.rows')}</InputAdornment>,
388388
}}
389389
/>
390390

@@ -399,7 +399,7 @@ export default function MultiAlgoSelector({
399399
})
400400
}
401401
/>
402-
<FormControlLabel sx={{'.MuiTypography-root': {fontSize: '14px'}}} control={<Checkbox size='small' checked={sel.lookup_required || false} />} label="Lookup Required" onChange={e => updateSelected(sel.__key, {lookup_required: e.target.checked})} />
402+
<FormControlLabel sx={{'.MuiTypography-root': {fontSize: '14px'}}} control={<Checkbox size='small' checked={sel.lookup_required || false} />} label={t('map_project.lookup_required')} onChange={e => updateSelected(sel.__key, {lookup_required: e.target.checked})} />
403403
</Stack>
404404

405405
<Stack direction="row" spacing={1} justifyContent="flex-end">

src/i18n/locales/en/translations.json

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -100,12 +100,14 @@
100100
"download_csv": "Download CSV",
101101
"advance_settings": "Advanced Settings",
102102
"sort": "Sort",
103-
"group": "Group"
103+
"group": "Group",
104+
"remove": "Remove",
105+
"at": "at"
104106
},
105107
"errors": {
106-
"404": "Sorry your page could not be found.",
107108
"401": "Login is required",
108109
"403": "Access to this page is not authorized",
110+
"404": "Sorry your page could not be found.",
109111
"network_error": "Network Error"
110112
},
111113
"dashboard": {
@@ -295,7 +297,6 @@
295297
"last_name": "Last Name",
296298
"company": "Company",
297299
"email_address": "Email Address",
298-
"location": "Location",
299300
"profile_update_success": "Profile updated successfully",
300301
"profile_update_failure": "An error occurred while updating profile.",
301302
"copy_api_token": "Copy API token",
@@ -569,10 +570,15 @@
569570
"out_of": "out of",
570571
"retrieve_candidates": "Retrieve Candidates",
571572
"retrieve_candidates_helper_text": "Your project is configured to use the following match algorithms:",
572-
"all_candidates": "All Candidates"
573+
"all_candidates": "All Candidates",
574+
"rows": "rows",
575+
"finished_running": "Finished running",
576+
"finished_reranking": "Finished reranking",
577+
"proposed_successfully": "Proposed successfully."
573578
},
574579
"app": {
575580
"web_version": "Web Version",
576581
"api_version": "API Version"
577-
}
582+
},
583+
"unknown_error": "Unknown error"
578584
}

src/i18n/locales/es/translations.json

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,9 @@
101101
"custom": "Personalizado",
102102
"apply": "Aplicar",
103103
"reset": "Restablecer",
104-
"checking_auth": "Verificando autenticación..."
104+
"checking_auth": "Verificando autenticación...",
105+
"remove": "Eliminar",
106+
"at": "a las"
105107
},
106108
"errors": {
107109
"401": "Se requiere iniciar sesión",
@@ -544,7 +546,10 @@
544546
"out_of": "de",
545547
"retrieve_candidates": "Recuperar candidatos",
546548
"retrieve_candidates_helper_text": "Su proyecto está configurado para usar los siguientes algoritmos de coincidencia:",
547-
"all_candidates": "Todos los candidatos"
549+
"all_candidates": "Todos los candidatos",
550+
"rows": "filas",
551+
"finished_running": "Ejecución finalizada",
552+
"finished_reranking": "Reordenamiento finalizado"
548553
},
549554
"app": {
550555
"web_version": "Versión Web",
@@ -576,5 +581,6 @@
576581
"resolve_failed_without_entry_global": "{{url}} no coincidió con una entrada en el Registro Global",
577582
"target_owner": "Propietario de destino",
578583
"view_canonical_url_registry": "Ver registro de URL canónicas"
579-
}
584+
},
585+
"unknown_error": "Error desconocido"
580586
}

src/i18n/locales/zh/translations.json

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,9 @@
100100
"advance_settings": "高级设置",
101101
"sort": "排序",
102102
"group": "分组",
103-
"action": "操作"
103+
"action": "操作",
104+
"remove": "移除",
105+
"at": ""
104106
},
105107
"errors": {
106108
"401": "需要登录",
@@ -569,10 +571,14 @@
569571
"out_of": "",
570572
"retrieve_candidates": "获取候选项",
571573
"retrieve_candidates_helper_text": "你的项目已配置为使用以下匹配算法:",
572-
"all_candidates": "所有候选项"
574+
"all_candidates": "所有候选项",
575+
"rows": "",
576+
"finished_running": "已完成运行",
577+
"finished_reranking": "已完成重新排序"
573578
},
574579
"app": {
575580
"web_version": "Web 版本",
576581
"api_version": "API 版本"
577-
}
582+
},
583+
"unknown_error": "未知错误"
578584
}

0 commit comments

Comments
 (0)