From a4bb0d48fe0f275881cc32823509b41d60cda3ce Mon Sep 17 00:00:00 2001 From: Marvin Witt Date: Tue, 22 Oct 2019 08:20:55 +0200 Subject: [PATCH] Load strings from external file instead of using hard coded values First step to translations --- components/chat/index.vue | 2 +- components/chat/input.vue | 4 +- components/chat/typing.vue | 2 +- components/player/index.vue | 29 ++-- components/player/user-icon.vue | 17 ++- components/player/viewer.vue | 6 +- components/room/create.vue | 6 +- components/room/join.vue | 8 +- lang/en_US.json | 118 +++++++++++++++ middleware/i18n.js | 15 ++ nuxt.config.js | 1 + package.json | 3 +- pages/auth/discord.vue | 10 +- pages/home.vue | 259 ++++++++++++++++---------------- pages/i/_id.vue | 26 ++-- pages/index.vue | 101 +++++++------ yarn.lock | 5 + 17 files changed, 391 insertions(+), 221 deletions(-) create mode 100644 lang/en_US.json create mode 100644 middleware/i18n.js diff --git a/components/chat/index.vue b/components/chat/index.vue index 83d8f5f..987d2f2 100644 --- a/components/chat/index.vue +++ b/components/chat/index.vue @@ -1,6 +1,6 @@