Skip to content

Commit

Permalink
fix(trip-tools): Localize header.
Browse files Browse the repository at this point in the history
  • Loading branch information
binh-dam-ibigroup committed Oct 17, 2023
1 parent fc57cad commit 353fe4e
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 8 deletions.
1 change: 1 addition & 0 deletions i18n/en-US.yml
Original file line number Diff line number Diff line change
Expand Up @@ -677,6 +677,7 @@ components:
notificationsDisabled: "Notifications: <strong>Disabled</strong>"
TripTools:
copyLink: Copy Link
header: Trip Tools
linkCopied: Copied
reportEmailSubject: Reporting an Issue with OpenTripPlanner
reportEmailTemplate: >
Expand Down
7 changes: 4 additions & 3 deletions i18n/es.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ actions:
emailVerificationResent: El mensaje de verificación de correo electrónico ha sido reenviado.
genericError: "Se ha encontrado un error: {err}"
itineraryExistenceCheckFailed: Comprobación de errores para ver si el viaje seleccionado es posible.
mustBeLoggedInToSavePlace: Por favor, inicia la sesión para guardar las ubicaciones.
placeRemembered: La configuración de este lugar se ha guardado.
preferencesSaved: Sus preferencias se han guardado.
smsInvalidCode: El código introducido no es válido. Por favor, inténtelo de nuevo.
smsResendThrottled: >-
Expand All @@ -63,8 +65,6 @@ actions:
smsVerificationFailed: >-
Su teléfono no ha podido ser verificado. Quizás el código que has
introducido ha caducado. Solicita un nuevo código e inténtalo de nuevo.
mustBeLoggedInToSavePlace: Por favor, inicia la sesión para guardar las ubicaciones.
placeRemembered: La configuración de este lugar se ha guardado.
common:
coordinates: "{lat}; {lon}"
dateExpressions:
Expand Down Expand Up @@ -487,11 +487,11 @@ components:
tripsFound: Encontramos {count, plural, one {# opción} other {# opciones}}
waiting: Espera...
RouteDetails:
headsignTo: "{headsign} ({lastStop})"
moreDetails: Más detalles
operatedBy: Servicio operado por {agencyName}
selectADirection: Seleccione una dirección…
stopsTo: Hacia
headsignTo: '{headsign} ({lastStop})'
RouteViewer:
agencyFilter: Filtro de agencia
allAgencies: Todas las agencias
Expand Down Expand Up @@ -703,6 +703,7 @@ components:
notificationsDisabled: "Notificaciones: <strong>Disabled</strong>"
TripTools:
copyLink: Copiar enlace
header: Herramientas
linkCopied: Copiado
reportEmailSubject: Informar un problema con OpenTripPlanner
reportEmailTemplate: >
Expand Down
1 change: 1 addition & 0 deletions i18n/fr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -703,6 +703,7 @@ components:
notificationsDisabled: "Notifications : <strong>Désactivées</strong>"
TripTools:
copyLink: Copier le lien
header: Outils
linkCopied: Copié
reportEmailSubject: Signaler un problème avec OpenTripPlanner
reportEmailTemplate: >
Expand Down
1 change: 1 addition & 0 deletions i18n/ko.yml
Original file line number Diff line number Diff line change
Expand Up @@ -561,6 +561,7 @@ components:
notificationsDisabled: "알림: <strong>비활성화됨</strong>"
TripTools:
copyLink: 링크 복사
header: 도구
linkCopied: 복사됨
reportEmailSubject: OpenTripPlanner로 문제 보고
reportEmailTemplate: |
Expand Down
1 change: 1 addition & 0 deletions i18n/vi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -602,6 +602,7 @@ components:
notificationsDisabled: "Thông báo: <strong>Đã tắt</strong>"
TripTools:
copyLink: Sao chép URL
header: Công cụ
linkCopied: Đã sao chép
reportEmailSubject: Báo cáo sự cố với OpenTripPlanner
reportEmailTemplate: |
Expand Down
1 change: 1 addition & 0 deletions i18n/zh.yml
Original file line number Diff line number Diff line change
Expand Up @@ -559,6 +559,7 @@ components:
notificationsDisabled: "通知: <strong>已禁用</strong>"
TripTools:
copyLink: 复制链接
header: 工具
linkCopied: 已复制
reportEmailSubject: 报告OpenTripPlanner的问题
reportEmailTemplate: |
Expand Down
9 changes: 4 additions & 5 deletions lib/components/narrative/trip-tools.js
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,6 @@ LinkButton.propTypes = {

const TripTools = ({
buttonTypes,
intl,
location,
popupTarget,
reactRouterConfig,
Expand Down Expand Up @@ -224,7 +223,6 @@ const TripTools = ({
location?.search
)
buttonComponents.push(
// FIXME: The Spanish string does not fit in button width.
<LinkButton
Icon={Undo}
text={<FormattedMessage id="common.forms.startOver" />}
Expand All @@ -250,7 +248,9 @@ const TripTools = ({

return (
<div className="trip-tools-container">
<h2>Trip Tools</h2>
<h2>
<FormattedMessage id="components.TripTools.header" />
</h2>
<div className="trip-tools">
{buttonComponents.map((btn, i) => (
<div className="button-container" key={i}>
Expand All @@ -264,7 +264,6 @@ const TripTools = ({

TripTools.propTypes = {
buttonTypes: PropTypes.arrayOf(PropTypes.string),
intl: PropTypes.object,
location: PropTypes.object,
popupTarget: PropTypes.string,
reactRouterConfig: PropTypes.object,
Expand All @@ -290,5 +289,5 @@ const mapDispatchToProps = {
}

export default withRouter(
connect(mapStateToProps, mapDispatchToProps)(injectIntl(TripTools))
connect(mapStateToProps, mapDispatchToProps)(TripTools)
)

0 comments on commit 353fe4e

Please sign in to comment.