vmware / vmware/singleton

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

Open
#1,363 1 comment 0 reactions 1 assignee View on GitHub

Nobody has claimed this yet.

area/ruby-client kind/bug priority/medium
Dominant language
Java
Stars
72
Forks
69
Avg merge
23h 32m
Merged PRs (30d)
4

Description

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.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.