Moin
January 21, 2026, 7:56pm
1
Continuing the discussion from Message Format support for localization :
Important: You need to modify the plural forms of your translation if your language uses forms other than “one” and “other”. You can add or remove forms within a { FOO, plural, ... } block in order to make it work for your languages
I ran into issues testing my text with MessageFormat in different languages, because it didn’t work in Polish.
But after looking at an existing text, I think the error isn’t on my end, but rather that something isn’t working as expected.
The example I looked at is in the invite modal: js.user.invited.invite.link_validity_MF
In English, everything is fine:
link_validity_MF: |
Link is valid for up to { user_count, plural,
one {# user}
other {# users}
} and expires in { duration_days, plural,
one {# day}
other {# days}
}.
It also works in German:
share_link: "Link teilen"
link_validity_MF: |
Der Link ist gültig für bis zu { user_count, plural,
one {# Benutzer}
other {# Benutzer}
} und läuft in { duration_days, plural,
one {# Tag}
other {# Tagen}
} ab.
But it doesn’t work in Polish:
link_validity_MF: |
Link jest ważny do { user_count, plural,
one {# użytkownika}
few {# użytkowników}
many {# użytkowników}
other {# użytkowników}
} i wygasa za { duration_days, plural,
one {# dzień}
few {# dni}
many {# dni}
other {# dni}
}.
And it doesn’t work in Chinese:
link_validity_MF: |
链接最多可用于 { user_count, plural,
other {# 个用户}
},并且将在 { duration_days, plural,
other {# 天}
}后到期。
Based on the documentation topic, I would expect all these translations to work, not only the German translation. So, I assume there is a bug somewhere that affects languages that have a different number of plurals than English.