From 72df167d2d339688a6b0cdbcb6651a21bec82da0 Mon Sep 17 00:00:00 2001 From: Lukas Date: Thu, 29 Dec 2022 13:41:59 +0100 Subject: [PATCH] Lazy load locales (#1362) Closes #1345 `index.js` size reduction: `538.71 KiB` -> `382.74 KiB` Also sets correct html `lang` attribute. --- web/src/App.vue | 44 +++++++++++++++------------------ web/src/compositions/useI18n.ts | 29 +++++++++++++++++----- web/src/views/RepoAdd.vue | 2 +- web/src/views/User.vue | 14 ++++++----- web/src/vite-env.d.ts | 4 +++ web/vite.config.ts | 27 ++++++++++++++++++-- 6 files changed, 81 insertions(+), 39 deletions(-) diff --git a/web/src/App.vue b/web/src/App.vue index dbe42f8b8..5725b561b 100644 --- a/web/src/App.vue +++ b/web/src/App.vue @@ -16,8 +16,8 @@ -