From ec29fff548ced20be1d256cb1b37da039f94c436 Mon Sep 17 00:00:00 2001 From: ThatOneCalculator Date: Wed, 9 Nov 2022 20:52:40 -0800 Subject: [PATCH 01/49] less cheesy intro --- locales/en-US.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/locales/en-US.yml b/locales/en-US.yml index f91163dd9..d8150f71a 100644 --- a/locales/en-US.yml +++ b/locales/en-US.yml @@ -1,7 +1,7 @@ --- _lang_: "English" headlineMisskey: "An open source, decentralized social media platform that's free forever! ๐Ÿš€" -introMisskey: "Welcome! Calckey is an open source, decentralized microblogging service.\nCreate \"notes\" to share your thoughts with everyone around you. ๐Ÿ“ก\nWith \"reactions\", you can also quickly express your feelings about everyone's notes. ๐Ÿ‘\nLet's explore a new world! ๐Ÿš€" +introMisskey: "Welcome! Calckey is an open source, decentralized social media platform that's free forever! ๐Ÿš€" monthAndDay: "{month}/{day}" search: "Search" notifications: "Notifications" From 134048b1fb565e98060c8e592b885e36ef60a223 Mon Sep 17 00:00:00 2001 From: ThatOneCalculator Date: Thu, 10 Nov 2022 13:13:09 -0800 Subject: [PATCH 02/49] fill tiny quotes --- .../client/src/components/MkNotification.vue | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/packages/client/src/components/MkNotification.vue b/packages/client/src/components/MkNotification.vue index 3d2310ae2..4dd369ff5 100644 --- a/packages/client/src/components/MkNotification.vue +++ b/packages/client/src/components/MkNotification.vue @@ -33,14 +33,14 @@ - + - + - + - + @@ -52,14 +52,14 @@ - + - + - + - + {{ i18n.ts.youGotNewFollower }}
{{ i18n.ts.followRequestAccepted }} From ca1b1c932169e024a2ade514d65086099bd10be3 Mon Sep 17 00:00:00 2001 From: ThatOneCalculator Date: Thu, 10 Nov 2022 14:12:44 -0800 Subject: [PATCH 03/49] refactor: :recycle: Replace all `$ts` with i18n --- CALCKEY.md | 1 + .../client/src/components/MkContainer.vue | 3 +- .../client/src/components/MkFormDialog.vue | 13 +- packages/client/src/components/MkGoogle.vue | 3 +- .../client/src/components/MkMediaBanner.vue | 5 +- .../client/src/components/MkMediaCaption.vue | 7 +- .../client/src/components/MkMediaImage.vue | 7 +- .../client/src/components/MkMediaVideo.vue | 5 +- .../src/components/MkModalPageWindow.vue | 5 +- .../src/components/MkPostFormAttaches.vue | 15 +- .../src/components/MkTokenGenerateWindow.vue | 11 +- .../client/src/components/form/suspense.vue | 5 +- .../client/src/components/global/MkAd.vue | 7 +- packages/client/src/pages/about.emojis.vue | 9 +- packages/client/src/pages/admin/metrics.vue | 139 +++++++++--------- packages/client/src/pages/announcements.vue | 3 +- .../client/src/pages/antenna-timeline.vue | 2 +- packages/client/src/pages/auth.form.vue | 7 +- packages/client/src/pages/auth.vue | 11 +- packages/client/src/pages/explore.users.vue | 7 +- .../page-editor/els/page-editor.el.button.vue | 31 ++-- .../page-editor/els/page-editor.el.canvas.vue | 9 +- .../els/page-editor.el.counter.vue | 9 +- .../page-editor/els/page-editor.el.if.vue | 8 +- .../page-editor/els/page-editor.el.image.vue | 3 +- .../page-editor/els/page-editor.el.note.vue | 9 +- .../els/page-editor.el.number-input.vue | 9 +- .../page-editor/els/page-editor.el.post.vue | 9 +- .../els/page-editor.el.radio-button.vue | 11 +- .../page-editor/els/page-editor.el.switch.vue | 9 +- .../els/page-editor.el.text-input.vue | 9 +- .../page-editor/els/page-editor.el.text.vue | 3 +- .../els/page-editor.el.textarea-input.vue | 9 +- .../els/page-editor.el.textarea.vue | 3 +- .../page-editor/page-editor.script-block.vue | 15 +- .../src/pages/page-editor/page-editor.vue | 30 ++-- packages/client/src/pages/settings/2fa.vue | 2 +- .../client/src/pages/user/index.activity.vue | 2 +- .../client/src/pages/user/index.photos.vue | 5 +- .../client/src/pages/welcome.entrance.b.vue | 17 ++- .../client/src/pages/welcome.entrance.c.vue | 25 ++-- packages/client/src/ui/classic.header.vue | 7 +- packages/client/src/ui/classic.sidebar.vue | 11 +- packages/client/src/ui/classic.widgets.vue | 5 +- packages/client/src/ui/visitor/a.vue | 7 +- packages/client/src/ui/visitor/b.vue | 16 +- packages/client/src/ui/visitor/header.vue | 19 +-- packages/client/src/ui/visitor/kanban.vue | 11 +- 48 files changed, 306 insertions(+), 262 deletions(-) diff --git a/CALCKEY.md b/CALCKEY.md index 8f64109e7..c2925d4c8 100644 --- a/CALCKEY.md +++ b/CALCKEY.md @@ -84,6 +84,7 @@ - Phosphor icons instead of FontAwesome - Fully deprecate MkEmojiPickerWindow in favor of MkEmojiPickerDialog - Link hover effect +- Replace all `$ts` with i18n - Obliteration of Ai-chan - [Make showing ads optional](https://github.com/misskey-dev/misskey/pull/8996) - [Tapping avatar in mobile opens account modal](https://github.com/misskey-dev/misskey/pull/9056) diff --git a/packages/client/src/components/MkContainer.vue b/packages/client/src/components/MkContainer.vue index dbb028f48..03a2b40ce 100644 --- a/packages/client/src/components/MkContainer.vue +++ b/packages/client/src/components/MkContainer.vue @@ -20,7 +20,7 @@
@@ -29,6 +29,7 @@ diff --git a/packages/client/src/pages/announcements.vue b/packages/client/src/pages/announcements.vue index 17c056e0e..b038a6857 100644 --- a/packages/client/src/pages/announcements.vue +++ b/packages/client/src/pages/announcements.vue @@ -10,7 +10,7 @@ @@ -25,6 +25,7 @@ import MkButton from '@/components/MkButton.vue'; import * as os from '@/os'; import { i18n } from '@/i18n'; import { definePageMetadata } from '@/scripts/page-metadata'; +import { i18n } from '@/i18n'; const pagination = { endpoint: 'announcements' as const, diff --git a/packages/client/src/pages/antenna-timeline.vue b/packages/client/src/pages/antenna-timeline.vue index 3fd763138..348512ea7 100644 --- a/packages/client/src/pages/antenna-timeline.vue +++ b/packages/client/src/pages/antenna-timeline.vue @@ -2,7 +2,7 @@
-
+
{{ app.description }}

-

{{ $ts._auth.permissionAsk }}

+

{{ i18n.ts._auth.permissionAsk }}

  • {{ $t(`_permissions.${p}`) }}
@@ -23,6 +23,7 @@ import { defineComponent } from 'vue'; import MkButton from '@/components/MkButton.vue'; import * as os from '@/os'; +import { i18n } from '@/i18n'; const emit = defineEmits<{ (ev: 'denied'): void; diff --git a/packages/client/src/pages/auth.vue b/packages/client/src/pages/auth.vue index bb55881a2..70c2c9622 100644 --- a/packages/client/src/pages/auth.vue +++ b/packages/client/src/pages/auth.vue @@ -12,15 +12,15 @@ @accepted="accepted" />
-

{{ $ts._auth.denied }}

+

{{ i18n.ts._auth.denied }}

-

{{ session.app.isAuthorized ? $t('already-authorized') : $ts.allowed }}

-

{{ $ts._auth.callback }}

-

{{ $ts._auth.pleaseGoBack }}

+

{{ session.app.isAuthorized ? $t('already-authorized') : i18n.ts.allowed }}

+

{{ i18n.ts._auth.callback }}

+

{{ i18n.ts._auth.pleaseGoBack }}

-

{{ $ts.somethingHappened }}

+

{{ i18n.ts.somethingHappened }}