lazy load locales (#1940)

* lazy load locales

* fix translation getter

* prettier ignore all generated i18n files

* fix menu translation reactivity

* put language and country translations into namespace

* use Intl.DisplayNames to provide language and region translations

* update typesafe-i18n

* fix newly added translations

* remove unused translations

* add fallback to locale code when Intl.DisplayNames is unavailable
This commit is contained in:
Lukas
2022-04-25 16:45:02 +02:00
committed by GitHub
parent 1c9caa690a
commit 9e0f43d542
16 changed files with 55 additions and 82 deletions
-2
View File
@@ -16,8 +16,6 @@ import trigger from "./trigger";
const zh_CN: Translation = {
...(en_US as Translation),
language: "中文",
country: "中国",
audio,
camera,
chat,