diff options
| author | Zog | 2018-02-12 09:33:53 +0100 |
|---|---|---|
| committer | Zog | 2018-02-12 09:33:53 +0100 |
| commit | 2f895a1ee52922565b7ca1a0c00defe68f40aebd (patch) | |
| tree | f18e1eab0549ea071483e14fdd2f8c7c74a4c0ef /app/javascript/routes/components/StopPoint.js | |
| parent | 045afc75458d1d3fc4a56875bd86e112f0a665da (diff) | |
| download | chouette-core-2f895a1ee52922565b7ca1a0c00defe68f40aebd.tar.bz2 | |
Refs #5888; Fix I18n in JS5888-fix-i18n-in-js
Diffstat (limited to 'app/javascript/routes/components/StopPoint.js')
| -rw-r--r-- | app/javascript/routes/components/StopPoint.js | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/app/javascript/routes/components/StopPoint.js b/app/javascript/routes/components/StopPoint.js index 2d47e802b..af51a6bb4 100644 --- a/app/javascript/routes/components/StopPoint.js +++ b/app/javascript/routes/components/StopPoint.js @@ -18,15 +18,15 @@ export default function StopPoint(props, {I18n}) { <div> <select className='form-control' value={props.value.for_boarding} id="for_boarding" onChange={props.onSelectChange}> - <option value="normal">{I18n.routes.edit.stop_point.boarding.normal}</option> - <option value="forbidden">{I18n.routes.edit.stop_point.boarding.forbidden}</option> + <option value="normal">{I18n.t('routes.edit.stop_point.boarding.normal')}</option> + <option value="forbidden">{I18n.t('routes.edit.stop_point.boarding.forbidden')}</option> </select> </div> <div> <select className='form-control' value={props.value.for_alighting} id="for_alighting" onChange={props.onSelectChange}> - <option value="normal">{I18n.routes.edit.stop_point.alighting.normal}</option> - <option value="forbidden">{I18n.routes.edit.stop_point.alighting.forbidden}</option> + <option value="normal">{I18n.t('routes.edit.stop_point.alighting.normal')}</option> + <option value="forbidden">{I18n.t('routes.edit.stop_point.alighting.forbidden')}</option> </select> </div> @@ -77,7 +77,7 @@ export default function StopPoint(props, {I18n}) { ) } -StopPoint.PropTypes = { +StopPoint.propTypes = { onToggleMap: PropTypes.func.isRequired, onToggleEdit: PropTypes.func.isRequired, onDeleteClick: PropTypes.func.isRequired, @@ -93,4 +93,4 @@ StopPoint.PropTypes = { StopPoint.contextTypes = { I18n: PropTypes.object -}
\ No newline at end of file +} |
