diff --git a/locales/ja-JP.yml b/locales/ja-JP.yml
index 859930edb..27d497c29 100644
--- a/locales/ja-JP.yml
+++ b/locales/ja-JP.yml
@@ -156,6 +156,8 @@ common:
view-on-remote: "正確な情報を見る"
renoted-by: "{user}がRenote"
no-notes: "投稿がありません"
+ turn-on-darkmode: "闇に飲まれる"
+ turn-off-darkmode: "光あれ"
error:
title: "問題が発生しました"
diff --git a/src/client/app/desktop/views/components/ui.header.account.vue b/src/client/app/desktop/views/components/ui.header.account.vue
index 7a6339f20..78888c087 100644
--- a/src/client/app/desktop/views/components/ui.header.account.vue
+++ b/src/client/app/desktop/views/components/ui.header.account.vue
@@ -68,9 +68,8 @@
- {{ $t('dark') }}
-
-
+ {{ $store.state.device.darkmode ? $t('@.turn-off-darkmode') : $t('@.turn-on-darkmode') }}
+
@@ -97,13 +96,14 @@ import MkSettingsWindow from './settings-window.vue';
import MkDriveWindow from './drive-window.vue';
import contains from '../../../common/scripts/contains';
import { faHome, faColumns } from '@fortawesome/free-solid-svg-icons';
+import { faMoon, faSun } from '@fortawesome/free-regular-svg-icons';
export default Vue.extend({
i18n: i18n('desktop/views/components/ui.header.account.vue'),
data() {
return {
isOpen: false,
- faHome, faColumns
+ faHome, faColumns, faMoon, faSun
};
},
computed: {
diff --git a/src/client/app/mobile/views/components/ui.nav.vue b/src/client/app/mobile/views/components/ui.nav.vue
index ba27b87a5..26da9d668 100644
--- a/src/client/app/mobile/views/components/ui.nav.vue
+++ b/src/client/app/mobile/views/components/ui.nav.vue
@@ -33,7 +33,7 @@
{{ $t('search') }}
{{ $t('settings') }}
{{ $t('admin') }}
- {{ $t('darkmode') }}
+ {{ $store.state.device.darkmode ? $t('@.turn-off-darkmode') : $t('@.turn-on-darkmode') }}
@@ -53,6 +53,7 @@ import Vue from 'vue';
import i18n from '../../../i18n';
import { lang } from '../../../config';
import { faNewspaper, faHashtag } from '@fortawesome/free-solid-svg-icons';
+import { faMoon, faSun } from '@fortawesome/free-regular-svg-icons';
export default Vue.extend({
i18n: i18n('mobile/views/components/ui.nav.vue'),
@@ -65,7 +66,7 @@ export default Vue.extend({
aboutUrl: `/docs/${lang}/about`,
announcements: [],
searching: false,
- faNewspaper, faHashtag
+ faNewspaper, faHashtag, faMoon, faSun
};
},