From de9cc033df32a4668ac8d05a770312c029d20c4c Mon Sep 17 00:00:00 2001
From: kPherox
Date: Fri, 15 Nov 2019 22:52:20 +0900
Subject: Add i18n en
---
src/i18n/en.json | 6 ++++++
1 file changed, 6 insertions(+)
(limited to 'src/i18n')
diff --git a/src/i18n/en.json b/src/i18n/en.json
index c322e538..ca49514e 100644
--- a/src/i18n/en.json
+++ b/src/i18n/en.json
@@ -333,6 +333,12 @@
"loop_video_silent_only": "Loop only videos without sound (i.e. Mastodon's \"gifs\")",
"mutes_tab": "Mutes",
"play_videos_in_modal": "Play videos in a popup frame",
+ "profile_fields": {
+ "label": "Profile metadata",
+ "add_field": "Add Field",
+ "name": "Label",
+ "value": "Content"
+ },
"use_contain_fit": "Don't crop the attachment in thumbnails",
"name": "Name",
"name_bio": "Name & Bio",
--
cgit v1.2.3-70-g09d2
From 14540e2a078bd59ca8f13cd5c0b894acad3d639f Mon Sep 17 00:00:00 2001
From: lain
Date: Tue, 16 Jun 2020 13:27:36 +0200
Subject: Service Worker: Extract messages to own module.
---
src/i18n/service_worker_messages.js | 35 +++++++++++++++++++++++++++++++++++
src/sw.js | 32 +-------------------------------
2 files changed, 36 insertions(+), 31 deletions(-)
create mode 100644 src/i18n/service_worker_messages.js
(limited to 'src/i18n')
diff --git a/src/i18n/service_worker_messages.js b/src/i18n/service_worker_messages.js
new file mode 100644
index 00000000..270ed043
--- /dev/null
+++ b/src/i18n/service_worker_messages.js
@@ -0,0 +1,35 @@
+/* eslint-disable import/no-webpack-loader-syntax */
+// This module exports only the notification part of the i18n,
+// which is useful for the service worker
+
+const messages = {
+ ar: require('../lib/notification-i18n-loader.js!./ar.json'),
+ ca: require('../lib/notification-i18n-loader.js!./ca.json'),
+ cs: require('../lib/notification-i18n-loader.js!./cs.json'),
+ de: require('../lib/notification-i18n-loader.js!./de.json'),
+ eo: require('../lib/notification-i18n-loader.js!./eo.json'),
+ es: require('../lib/notification-i18n-loader.js!./es.json'),
+ et: require('../lib/notification-i18n-loader.js!./et.json'),
+ eu: require('../lib/notification-i18n-loader.js!./eu.json'),
+ fi: require('../lib/notification-i18n-loader.js!./fi.json'),
+ fr: require('../lib/notification-i18n-loader.js!./fr.json'),
+ ga: require('../lib/notification-i18n-loader.js!./ga.json'),
+ he: require('../lib/notification-i18n-loader.js!./he.json'),
+ hu: require('../lib/notification-i18n-loader.js!./hu.json'),
+ it: require('../lib/notification-i18n-loader.js!./it.json'),
+ ja: require('../lib/notification-i18n-loader.js!./ja_pedantic.json'),
+ ja_easy: require('../lib/notification-i18n-loader.js!./ja_easy.json'),
+ ko: require('../lib/notification-i18n-loader.js!./ko.json'),
+ nb: require('../lib/notification-i18n-loader.js!./nb.json'),
+ nl: require('../lib/notification-i18n-loader.js!./nl.json'),
+ oc: require('../lib/notification-i18n-loader.js!./oc.json'),
+ pl: require('../lib/notification-i18n-loader.js!./pl.json'),
+ pt: require('../lib/notification-i18n-loader.js!./pt.json'),
+ ro: require('../lib/notification-i18n-loader.js!./ro.json'),
+ ru: require('../lib/notification-i18n-loader.js!./ru.json'),
+ te: require('../lib/notification-i18n-loader.js!./te.json'),
+ zh: require('../lib/notification-i18n-loader.js!./zh.json'),
+ en: require('../lib/notification-i18n-loader.js!./en.json')
+}
+
+export default messages
diff --git a/src/sw.js b/src/sw.js
index 6e31516a..c971222e 100644
--- a/src/sw.js
+++ b/src/sw.js
@@ -1,41 +1,11 @@
/* eslint-env serviceworker */
-/* eslint-disable import/no-webpack-loader-syntax */
import localForage from 'localforage'
import { parseNotification } from './services/entity_normalizer/entity_normalizer.service.js'
import { prepareNotificationObject } from './services/notification_utils/notification_utils.js'
import Vue from 'vue'
import VueI18n from 'vue-i18n'
-
-const messages = {
- ar: require('./lib/notification-i18n-loader.js!./i18n/ar.json'),
- ca: require('./lib/notification-i18n-loader.js!./i18n/ca.json'),
- cs: require('./lib/notification-i18n-loader.js!./i18n/cs.json'),
- de: require('./lib/notification-i18n-loader.js!./i18n/de.json'),
- eo: require('./lib/notification-i18n-loader.js!./i18n/eo.json'),
- es: require('./lib/notification-i18n-loader.js!./i18n/es.json'),
- et: require('./lib/notification-i18n-loader.js!./i18n/et.json'),
- eu: require('./lib/notification-i18n-loader.js!./i18n/eu.json'),
- fi: require('./lib/notification-i18n-loader.js!./i18n/fi.json'),
- fr: require('./lib/notification-i18n-loader.js!./i18n/fr.json'),
- ga: require('./lib/notification-i18n-loader.js!./i18n/ga.json'),
- he: require('./lib/notification-i18n-loader.js!./i18n/he.json'),
- hu: require('./lib/notification-i18n-loader.js!./i18n/hu.json'),
- it: require('./lib/notification-i18n-loader.js!./i18n/it.json'),
- ja: require('./lib/notification-i18n-loader.js!./i18n/ja_pedantic.json'),
- ja_easy: require('./lib/notification-i18n-loader.js!./i18n/ja_easy.json'),
- ko: require('./lib/notification-i18n-loader.js!./i18n/ko.json'),
- nb: require('./lib/notification-i18n-loader.js!./i18n/nb.json'),
- nl: require('./lib/notification-i18n-loader.js!./i18n/nl.json'),
- oc: require('./lib/notification-i18n-loader.js!./i18n/oc.json'),
- pl: require('./lib/notification-i18n-loader.js!./i18n/pl.json'),
- pt: require('./lib/notification-i18n-loader.js!./i18n/pt.json'),
- ro: require('./lib/notification-i18n-loader.js!./i18n/ro.json'),
- ru: require('./lib/notification-i18n-loader.js!./i18n/ru.json'),
- te: require('./lib/notification-i18n-loader.js!./i18n/te.json'),
- zh: require('./lib/notification-i18n-loader.js!./i18n/zh.json'),
- en: require('./lib/notification-i18n-loader.js!./i18n/en.json')
-}
+import messages from './i18n/service_worker_messages.js'
Vue.use(VueI18n)
const i18n = new VueI18n({
--
cgit v1.2.3-70-g09d2
From 2451956d838d132a14a3089546ceac59c07e1b3a Mon Sep 17 00:00:00 2001
From: Sergey Suprunenko
Date: Sun, 21 Jun 2020 14:59:05 +0200
Subject: Add 'bot' flag to Profile settings
---
src/components/settings_modal/tabs/profile_tab.js | 2 ++
src/components/settings_modal/tabs/profile_tab.vue | 5 +++++
src/i18n/en.json | 1 +
src/i18n/ru.json | 1 +
4 files changed, 9 insertions(+)
(limited to 'src/i18n')
diff --git a/src/components/settings_modal/tabs/profile_tab.js b/src/components/settings_modal/tabs/profile_tab.js
index 8658b097..56e956cd 100644
--- a/src/components/settings_modal/tabs/profile_tab.js
+++ b/src/components/settings_modal/tabs/profile_tab.js
@@ -23,6 +23,7 @@ const ProfileTab = {
showRole: this.$store.state.users.currentUser.show_role,
role: this.$store.state.users.currentUser.role,
discoverable: this.$store.state.users.currentUser.discoverable,
+ bot: this.$store.state.users.currentUser.bot,
allowFollowingMove: this.$store.state.users.currentUser.allow_following_move,
pickAvatarBtnVisible: true,
bannerUploading: false,
@@ -79,6 +80,7 @@ const ProfileTab = {
hide_follows: this.hideFollows,
hide_followers: this.hideFollowers,
discoverable: this.discoverable,
+ bot: this.bot,
allow_following_move: this.allowFollowingMove,
hide_follows_count: this.hideFollowsCount,
hide_followers_count: this.hideFollowersCount,
diff --git a/src/components/settings_modal/tabs/profile_tab.vue b/src/components/settings_modal/tabs/profile_tab.vue
index fff4f970..decdb389 100644
--- a/src/components/settings_modal/tabs/profile_tab.vue
+++ b/src/components/settings_modal/tabs/profile_tab.vue
@@ -95,6 +95,11 @@
{{ $t('settings.discoverable') }}
+
+
+ {{ $t('settings.bot') }}
+
+