Commit graph

12 commits

Author SHA1 Message Date
Scott Bishel
c56e6edc51
GH-1133 add/reset languages, make single language source (#1134)
* 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>
2021-09-06 17:47:33 +05:30
Johannes Marbach
b6d32da68c
[GH-314] Export native app user settings on change (#380)
* [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>
2021-08-15 12:51:19 +02:00
Jesús Espino
362b0c601a
Fix simplified chinesse language (#929) 2021-08-11 16:58:10 +02:00
Colton Shaw
cc06e0ff93
Updated lanquage selectors and fixed traditional chinese (#598)
* 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>
2021-06-21 11:51:11 +02:00
Jesús Espino
521028612a Fixed eslint problem 2021-04-30 16:59:14 +02:00
Jesús Espino
0265e41c72 Adding support for traditional and simplified chinese 2021-04-30 12:25:14 +02:00
Jesús Espino
252dcc2c50 Fixing code styles 2021-03-26 11:54:55 +01:00
Jesús Espino
325cedc5df Adding new languages 2021-03-25 19:46:59 +01:00
Jesús Espino
a27fba347c Adding Russian and Dutch languages 2021-03-21 19:47:47 +01:00
Jesús Espino
c8a06c6a8e Adding french support 2021-03-19 23:11:14 +01:00
Jesús Espino
98153b8e98 Adding german and japanese translations 2021-03-19 16:10:39 +01:00
Jesús Espino
48e4d8b569 Addining initial 18n support 2020-10-23 13:40:39 +02:00