singleton icon indicating copy to clipboard operation
singleton copied to clipboard

[BUG] [Ruby Client]String type can be accepted as parameter count value by getString_p() and translate().

Open lyiyu66 opened this issue 2 years ago • 0 comments

Describe the bug String type can be accepted as parameter count value by getString_p() and translate().

To Reproduce Steps to reproduce the behavior:

  1. Load config file. Singleton.load_config(, )
  2. Invoke interface as below: actualresult = SgtnClient::Translation.getString_p("plural", "plural.no.placeholder", { :cat_count => "string" }, :fr) actualresult = Singleton.translate("pluralNamedArg", "plural", :fr, cat_count: "string", A1: "apple", A2: "lemon")
  3. Return fr one category translation: "il y a un chat dans la chambre" "il y a un chat dans la chambre lemon et apple"

Expected behavior Should get an exception if parameter count value is non-number type.

lyiyu66 avatar May 11 '22 08:05 lyiyu66