singleton icon indicating copy to clipboard operation
singleton copied to clipboard

[BUG] [Ruby Client]Get same output when requesting same production/component/locale/key with different namedArg placeholders.

Open lyiyu66 opened this issue 3 years ago • 1 comments

Describe the bug commit: 4c2a80e7fdc91c8c36dcadb05ca54565523766bf Get same output when requesting same production/component/locale/key with different placeholders.

To Reproduce Steps to reproduce the behavior:

"arg.usage.1" : "{A2}, welcome login {A1}!"

@ZHHans_arg_str_1 = SgtnClient::Translation.getString_f("JAVA", "arg.usage.1", {"A1": "中文a1", "A2": "d'inforl'entrée a2"}, "en") @ZHHans_arg_str_11 = SgtnClient::Translation.getString_f("JAVA", "arg.usage.1", {"A1": "a1", "A2": "a2"}, "en")

Actual behavior Same output even the placeholder values are different. @EN_arg_str_1: d'inforl'entrée a2, welcome login 中文a1! @EN_arg_str_11: d'inforl'entrée a2, welcome login 中文a1!

Expected behavior The output should be different with specific placeholder values. @EN_arg_str_1: d'inforl'entrée a2, welcome login 中文a1! @EN_arg_str_11: a2, welcome login a1!

Additional comments Reproduce on getString_f() and SgtnClient::T.s_f() with NamedArg placeholders APIs.

lyiyu66 avatar Nov 15 '21 10:11 lyiyu66

The issue is not fixed in latest commit: f7ba75e0e60f42bf7ac5c4dd4f4070707a114df6

lyiyu66 avatar Jun 07 '22 01:06 lyiyu66