* add/reset languages, make single language source
* update i18n for additional languages
* move import statement
* update 'zh-tw' to 'zh-tx'
* update 'zh-tx' to 'zh-tw', support both
Co-authored-by: Harshil Sharma <harshilsharma63@gmail.com>
* [GH-314] Export native app user settings on change
This switches from exporting the native app user settings on window close to exporting
on settings change. This way the settings export remains independent of native application
life-cycle events.
This is a stop-gap towards enabling settings export on the native Linux app. The latter
does not have an easy way to catch window close events.
Relates to: #314
* Disable no-shadow rule to prevent false-positive
* Verify allowed localStorage keys
* Fix import order/spacing
* Treat JSON parsing errors as failed import
* Read known keys from the correct type 🤦
* Extend logging with imported keys and always include _current_ user settings
* Fixing eslint
Co-authored-by: Hossein <hahmadia@users.noreply.github.com>
Co-authored-by: Jesús Espino <jespinog@gmail.com>
* Updated lanquage selectors and fixed traditional chinese
#448
- Modified the language selectors to remain the base language regardless of the translation.
- Traditional Chinese also had the wrong code and the name/code swapped.
* Removed the split on `-`
This was causing an issue with Chinese traditional / simplified.
* Updated supported lanquages for chinese
removed `zh` and replaced it with `zh-cn`. Modified the supported languages to match the `navigator.language` for chinese.
* Updated chinese lanquage codes
Updated the Chinese language codes to match the rest of the language codes.
* Fixing snapshots and fixing a deprecation problem
Co-authored-by: Jesús Espino <jespinog@gmail.com>