singleton icon indicating copy to clipboard operation
singleton copied to clipboard

[BUG] [Ruby Client]getString_p() interface doesn't support the requested string with placeholder.

Open lyiyu66 opened this issue 3 years ago • 1 comments

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:

  1. There is no placeholder parameter in getString_p(component, key, plural_args, locale) interface.
  2. 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.

lyiyu66 avatar Jan 14 '22 11:01 lyiyu66

These interfaces are deprecated and will be removed. So mark it as low priority.

Xiaochao8 avatar Apr 27 '23 03:04 Xiaochao8