Files
habitica/website
Helcostr 10e18a2051 Fix toLocalString language key - Fixes #13255 (#13258)
* Fix toLocalString language key
* We use underscore, they use dash
* Strip beyond @ symbol to allow custom languages
* Catch null (hinted in #13255)

* Use empty array instead of empty string

Documentation says to pass `undefined` or an array. 
An empty string is not supported upon closer inspection.
Recommended not to pass `undefined` as it might cause weird quirks.
People recommend using empty array.

* Add number l10n to another area
_Originally posted by @citrusella in https://github.com/HabitRPG/habitica/issues/9470#issuecomment-842279146_
2021-05-18 11:55:21 -05:00
..