[BUG] [Ruby Client]String type can be accepted as parameter count value by getString_p() and translate().
Open
@Xiaochao8 is already working on this.
Since May 11, 2022.
area/ruby-client
kind/bug
priority/low
- Dominant language
- Java
- Stars
- 72
- Forks
- 69
- Avg merge
- 23h 32m
- Merged PRs (30d)
- 4
Description
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.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.