Skip to content

Commit 5ef6178

Browse files
committed
fix: correct interpolation syntax in event notification messages for English, Spanish, and French locales
1 parent 7fb64e6 commit 5ef6178

File tree

3 files changed

+25
-21
lines changed

3 files changed

+25
-21
lines changed

config/locales/en.yml

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1106,18 +1106,22 @@ en:
11061106
new_message_notifier:
11071107
from_html: 'From: %{sender}'
11081108
new_message: New Message
1109+
not_found:
1110+
description: La página que buscas pudo haber sido eliminada, cambiada o está
1111+
temporalmente no disponible.
1112+
title: 404 - Página no encontrada
11091113
notifications:
11101114
event_invitation:
1111-
body: Invitation to %<event_name>s
1115+
body: Invitation to %{event_name}
11121116
title: You have been invited to an event
11131117
event_reminder:
1114-
body_1h: "%<event_name>s starts in 1 hour at %<starts_at>s"
1115-
body_24h: "%<event_name>s starts tomorrow at %<starts_at>s"
1116-
body_generic: 'Reminder: %<event_name>s starts at %<starts_at>s'
1117-
title: 'Reminder: %<event_name>s'
1118+
body_1h: "%{event_name} starts in 1 hour at %{starts_at}"
1119+
body_24h: "%{event_name} starts tomorrow at %{starts_at}"
1120+
body_generic: 'Reminder: %{event_name} starts at %{starts_at}'
1121+
title: 'Reminder: %{event_name}'
11181122
event_update:
1119-
body: "%<event_name>s has been updated: %<changes>s"
1120-
title: 'Event updated: %<event_name>s'
1123+
body: "%{event_name} has been updated: %{changes}"
1124+
title: 'Event updated: %{event_name}'
11211125
index:
11221126
no_notifications: You have no notifications.
11231127
notifications: Notifications

config/locales/es.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1148,16 +1148,16 @@ es:
11481148
title: 404 - Página no encontrada
11491149
notifications:
11501150
event_invitation:
1151-
body: Invitation to %{event_name}s
1151+
body: Invitation to %{event_name}
11521152
title: You have been invited to an event
11531153
event_reminder:
1154-
body_1h: "%{event_name}s starts in 1 hour at %<starts_at>s"
1155-
body_24h: "%{event_name}s starts tomorrow at %<starts_at>s"
1156-
body_generic: 'Reminder: %{event_name}s starts at %<starts_at>s'
1157-
title: 'Reminder: %{event_name}s'
1154+
body_1h: "%{event_name} starts in 1 hour at %{starts_at}"
1155+
body_24h: "%{event_name} starts tomorrow at %{starts_at}"
1156+
body_generic: 'Reminder: %{event_name} starts at %{starts_at}'
1157+
title: 'Reminder: %{event_name}'
11581158
event_update:
1159-
body: "%{event_name}s has been updated: %{changes}s"
1160-
title: 'Event updated: %{event_name}s'
1159+
body: "%{event_name} has been updated: %{changes}"
1160+
title: 'Event updated: %{event_name}'
11611161
index:
11621162
no_notifications: No tienes notificaciones.
11631163
notifications: Notificaciones

config/locales/fr.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1114,16 +1114,16 @@ fr:
11141114
new_message: Nouveau message
11151115
notifications:
11161116
event_invitation:
1117-
body: Invitation to %<event_name>s
1117+
body: Invitation to %{event_name}
11181118
title: You have been invited to an event
11191119
event_reminder:
1120-
body_1h: "%<event_name>s starts in 1 hour at %<starts_at>s"
1121-
body_24h: "%<event_name>s starts tomorrow at %<starts_at>s"
1122-
body_generic: 'Reminder: %<event_name>s starts at %<starts_at>s'
1123-
title: 'Reminder: %<event_name>s'
1120+
body_1h: "%{event_name} starts in 1 hour at %{starts_at}"
1121+
body_24h: "%{event_name} starts tomorrow at %{starts_at}"
1122+
body_generic: 'Reminder: %{event_name} starts at %{starts_at}'
1123+
title: 'Reminder: %{event_name}'
11241124
event_update:
1125-
body: "%<event_name>s has been updated: %<changes>s"
1126-
title: 'Event updated: %<event_name>s'
1125+
body: "%{event_name} has been updated: %{changes}"
1126+
title: 'Event updated: %{event_name}'
11271127
index:
11281128
no_notifications: Vous n'avez aucune notification.
11291129
notifications: Notifications

0 commit comments

Comments
 (0)