You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The first argument of Choice() has to be the index of which option is the "normal" option. I've added some checking and better error-messages, so your mistake gets caught upon construction and tells you what's wrong, rather than just throwing a mysterious-looking error message during .format().
Finally, as general reflexion, I must say that coding in JS is not tented to make validation, checking, etc. Principally because it adds more verbosity and is tedious. But, it save a lot of time when the users (pity users like me) of that library use it in his code.
The following JS piece of code, on execution, fails:
And, this other one (is an equivalent of the preceding) also:
Error details:
The text was updated successfully, but these errors were encountered: