Skip to content

Commit

Permalink
refactor(TripSeriesModal): fix trips language
Browse files Browse the repository at this point in the history
  • Loading branch information
philip-cline committed Oct 30, 2023
1 parent 1916ad1 commit 2cdd534
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions i18n/english.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1370,6 +1370,7 @@ components:
incrementStartPlaceholder: Increment start (default 0)
prefixPlaceholder: Trip ID prefix (optional)
startTime: "Start Time:"
trips: trip(s)
UserAccount:
account:
title: Account
Expand Down
2 changes: 2 additions & 0 deletions i18n/german.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1569,3 +1569,5 @@ components:
incrementStartPlaceholder: Increment start (default 0)
prefixPlaceholder: Trip ID prefix (optional)
startTime: "Start Time:"
trips: trip(s)

1 change: 1 addition & 0 deletions i18n/polish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1540,3 +1540,4 @@ components:
incrementStartPlaceholder: Increment start (default 0)
prefixPlaceholder: Trip ID prefix (optional)
startTime: "Start Time:"
trips: trip(s)
5 changes: 3 additions & 2 deletions lib/editor/components/timetable/TripSeriesModal.js
Original file line number Diff line number Diff line change
Expand Up @@ -140,16 +140,17 @@ const TripSeriesModal = (props: Props) => {
placeholder={messages('blockIdPrefixPlaceholder')}
style={{width: '30%', marginRight: '5px'}}
type='text'
value={autoBlockIdPrefix} // Remove me??
value={autoBlockIdPrefix}
/>
{messages('alternateEvery')}
<FormControl
onChange={handleBlockIncrementUpdate}
placeholder={messages('blockIncrementPlaceholder')}
style={{width: '15%', marginLeft: '5px'}}
style={{width: '15%', marginLeft: '5px', marginRight: '5px'}}
type='number'
value={autoBlockIdIncrement}
/>
{messages('trips')}
</div>
<span style={{fontSize: 'smaller'}}>{messages('formatExplanation')}</span>
</>
Expand Down

0 comments on commit 2cdd534

Please sign in to comment.