[BUG] [Ruby Client]getString_p() interface doesn't support the requested string with placeholder.
Open
@Xiaochao8 is already working on this.
Since Mar 11, 2022.
area/ruby-client
kind/bug
priority/low
- Dominant language
- Java
- Stars
- 72
- Forks
- 69
- Avg merge
- 23h 32m
- Merged PRs (30d)
- 4
Description
Describe the bug
getString_p(component, key, plural_args, locale) interface doesn't support the requested string with placeholder.
To Reproduce
Steps to reproduce the behavior:
- There is no placeholder parameter in getString_p(component, key, plural_args, locale) interface.
- User can't get the string with placeholder in plural form.
pluralsstrArg: "%<{ \"cat_count\": { \"one\": \"s_there is one cat in %2$s and %1$s room\", \"other\": \"s_there are %{cat_count} cats in %2$s and %1$s room\" } }>"
pluralsstrNamedArg: "%<{ \"cat_count\": { \"one\": \"s_there is one cat in {A2} and {A1} room\", \"other\": \"s_there are %{cat_count} cats in {A2} and {A1} room\" } }>"
Expected behavior
User can get the string with placeholder in plural form.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.