-
Notifications
You must be signed in to change notification settings - Fork 9.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
resource-summary cannot be translated #9378
Comments
Don't we just split the string in two and join with the dot? :) |
RTL 😉 And we can't join multiple seperate ICU's in 1 string the join iirc? |
I doubt this is hardly the only case where we combine several strings given the other set of non-nesting requirements though :) A RTL-aware join seems like that's all that's necessary to solve these cases right now compared to the "it's impossible" state we're currently in, no? |
I think the main issue is that Also,
is an annoying limitation. Surely this comes up a lot? I see
in the official ICU docs. Is this a TC thing? It feels a lot like an incomplete implementation and they said "eh, they can always concat". |
My way-too-quick-probably-naive thought was that the RTL aware join just returns a new string placeholder that contains a ref to the real i18n placeholder replacements to be made. Doesn't necessary need to be any difference on the structural side ( |
@brendankenny and I just tested this and looked around the translation console docs. It seems like:
We also just tested using the string like: displayValue: `{requestCount, plural,
=1 {1 request • {byteCount, number, kilobytes} KB}
other {# requests • {byteCount, number, kilobytes} KB}}`, And it works kinda. The nested ICU replacement is possible, but our custom complex formatting is off, so it seems like this is the translation console preferred way of doing things and is possible for us with some modification. |
resource-summary
- displayValue cannot be translated because it has text after an ICU plural. Which is not allowed.It needs to contain all text within the plural content which we can't really do because it becomes nested ICU.
The text was updated successfully, but these errors were encountered: