singleton
singleton copied to clipboard
[BUG] [Ruby Client]String type can be accepted as parameter count value by getString_p() and translate().
Describe the bug String type can be accepted as parameter count value by getString_p() and translate().
To Reproduce Steps to reproduce the behavior:
- Load config file.
Singleton.load_config(
, ) - 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")
- 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.