You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* chore: translate the slack notification
The feature stale, experiment running and MAU count notifications were
sent in Japanese regardless of the recipient's language setting. Only
the domain event notification honored it.
Move the hardcoded Japanese strings into the locale bundle and pass the
existing localizer (built from Recipient.Language in notify()) down to
the three remaining attachment builders. This also covers the days-left
line of the experiment list, which was inlined in slack.go rather than
in message.go.
message.go is removed since localizedMessage() has no callers left.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
* refactor(locale): add Template suffix to templated notification constants
The Template suffix marks message IDs that must be resolved with
MustLocalizeWithTemplate. Every other templated constant in this file
follows it, so align the three subscription notification keys that take
a template field.
NotificationExperimentRunning keeps no suffix since it has no
placeholder and is resolved with MustLocalize.
Only the Go identifiers change; the message IDs and the localized data
are untouched.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
* fix(locale): use count-neutral wording for the experiment days-left message
Address review comments on PR #2778:
- "{{ .Field_1 }} days left" rendered "`1` days left" for an experiment
with exactly one day remaining. Reword it as "Days left: {{ .Field_1 }}"
so the English notification is grammatical for singular, plural, zero
and negative values, and update the test expectation accordingly.
The Japanese message is already count-neutral and stays unchanged.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
---------
Co-authored-by: s35560 <s35560@cyberagent.email>
Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
0 commit comments