Skip to content
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

key has a defined format for the 'valueName' placeholder that will be ignored. #115

Open
Korpyc opened this issue Aug 21, 2023 · 1 comment

Comments

@Korpyc
Copy link

Korpyc commented Aug 21, 2023

Hey, I have next string:
"page_subtitle": "{rangeTitle} • {somethingCount, plural, one{1 Apple} other{{somethingCount} Apples}}", "@page_subtitle": { "placeholders": { "rangeTitle": { "type": "String", }, "somethingCount": { "type": "int", "format": "decimalPattern" } } },

so, as a result, if somethingCount >1000, I expect to see result like this:
rangeTitle • 12,123 Apples

but, generator said:
key has a defined format for the 'somethingCount' placeholder that will be ignored.
Consider using an additional placeholder for formatting purposes.

Can we fix it without adding one more, same int value, just for formatting purposes?

@lzoran
Copy link
Collaborator

lzoran commented Oct 10, 2023

You're right. Currently, an additional placeholder is required for the formatting purpose in ICU plural messages.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants