From 7516cd859f0c9bc078548f801cbb6a63b72ced97 Mon Sep 17 00:00:00 2001 From: Roger Braun Date: Tue, 7 Nov 2017 15:14:37 +0100 Subject: [PATCH] Prepare for i18n. --- package.json | 1 + src/components/nav_panel/nav_panel.vue | 8 +-- .../notifications/notifications.vue | 6 +- src/components/settings/settings.vue | 20 +++--- src/components/timeline/timeline.vue | 12 ++-- src/components/user_card/user_card.vue | 2 +- .../user_card_content/user_card_content.vue | 28 ++++---- .../user_settings/user_settings.vue | 32 ++++----- src/i18n/messages.js | 70 +++++++++++++++++++ src/main.js | 11 +++ yarn.lock | 4 ++ 11 files changed, 142 insertions(+), 52 deletions(-) create mode 100644 src/i18n/messages.js diff --git a/package.json b/package.json index 63fd490d..e8d84274 100644 --- a/package.json +++ b/package.json @@ -24,6 +24,7 @@ "sanitize-html": "^1.13.0", "sass-loader": "^4.0.2", "vue": "^2.3.4", + "vue-i18n": "^7.3.2", "vue-router": "^2.5.3", "vue-template-compiler": "^2.3.4", "vue-timeago": "^3.1.2", diff --git a/src/components/nav_panel/nav_panel.vue b/src/components/nav_panel/nav_panel.vue index d4339778..aea841e9 100644 --- a/src/components/nav_panel/nav_panel.vue +++ b/src/components/nav_panel/nav_panel.vue @@ -4,22 +4,22 @@ diff --git a/src/components/notifications/notifications.vue b/src/components/notifications/notifications.vue index 2ad7c488..dfc7b0c9 100644 --- a/src/components/notifications/notifications.vue +++ b/src/components/notifications/notifications.vue @@ -3,8 +3,8 @@
{{unseenCount}} - Notifications - + {{$t('notifications.notifications')}} +
@@ -44,7 +44,7 @@
- @{{ notification.action.user.screen_name }} followed you + @{{ notification.action.user.screen_name }} {{$t('notifications.followed_you')}}
diff --git a/src/components/settings/settings.vue b/src/components/settings/settings.vue index 6ff96fec..5978e4ed 100644 --- a/src/components/settings/settings.vue +++ b/src/components/settings/settings.vue @@ -1,40 +1,40 @@