diff options
| author | Luc Donnet | 2018-02-13 09:35:25 +0100 |
|---|---|---|
| committer | GitHub | 2018-02-13 09:35:25 +0100 |
| commit | 423178805d896e429b1b6f54972fab890249e39f (patch) | |
| tree | f260490da043fa6d98262224248af946f30b22e3 /app/javascript/routes/components/StopPoint.js | |
| parent | 81cb1f8251e3506f7c75a229aabeaba3a83e6d8a (diff) | |
| parent | 2f895a1ee52922565b7ca1a0c00defe68f40aebd (diff) | |
| download | chouette-core-423178805d896e429b1b6f54972fab890249e39f.tar.bz2 | |
Merge pull request #300 from af83/5888-fix-i18n-in-js
5888 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 +} |
