Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adaptRollingStockCard #2042

Merged
merged 1 commit into from
Oct 7, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion front/public/locales/fr/rollingstock.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,13 @@
"startupTime": "Durée de démarrage",
"subSerie": "Sous-série",
"timetableGamma": "Décélération horaire",
"electricOnly": "Uniquement Eléctrique",
"compatibleVoltages": "Voltages Compatibles",
"noCompatibleVoltages": "Aucun",
"title": "Générateur de composition matériel train",
"tractionMode": "Mode de traction",
"waitingLoader": "Veuillez patienter, chargement de la base de données matériel...",
"weight": "Masse"
"weight": "Masse",
"yes": "Oui",
"no": "Non"
}
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,21 @@ export default function RollingStockCard(props) {
<span className="small text-muted ml-1">m/s²</span>
</td>
</tr>
<tr>
<td className="text-primary">{t('electricOnly')}</td>
<td>{data.electric_only === true ? t('yes') : t('no')}</td>
</tr>
<tr>
<td className="text-primary">{t('compatibleVoltages')}</td>
{data.compatible_voltages.length > 0 ? (
<td>
{data.compatible_voltages.join(' / ')}
<span className="small text-muted ml-1">V</span>
</td>
) : (
t('noCompatibleVoltages')
)}
</tr>
</tbody>
</table>
</div>
Expand Down