Page 1 of 1

Types/LocalisedString missing number variant

Posted: Fri Nov 10, 2023 6:44 am
by BrainGamer_
Localised strings appear to not only consist of strings, bools or arrays of itself.
Apparently they can also be numbers (integers and floats, tho double would make the most sense here I guess).

The provided examples even show localised strings with numbers in them :D

Re: Types/LocalisedString missing number variant

Posted: Tue Dec 05, 2023 6:45 pm
by Bilka
They indeed allow numbers. Added to the docs for the next version, thanks for pointing it out.

Note that in 2.0, they do not allow any number or bool - you need to call tostring() on them first if you want to use those types.