serialise_localised_string was assuming that non-table values of a LocalisedString were always strings, which is not true. Other primitive values are also allowed as arguments to localised strings. I also improved the comma-separator logic to not use gsub.
serialise_localised_string
was assuming that non-table values of aLocalisedString
were always strings, which is not true. Other primitive values are also allowed as arguments to localised strings. I also improved the comma-separator logic to not usegsub
.