From 3db53d446209b4d40a756311e21a131557a53055 Mon Sep 17 00:00:00 2001 From: ThatOneCalculator Date: Wed, 16 Nov 2022 01:29:18 -0800 Subject: [PATCH] i18n: `$t` to `i18n.t` --- package.json | 2 +- .../client/src/components/MkNoteDetailed.vue | 2 +- packages/client/src/components/MkPoll.vue | 4 +- .../client/src/components/MkPollEditor.vue | 2 +- packages/client/src/components/MkSignin.vue | 38 +++++++++---------- .../src/components/MkSubNoteContent.vue | 2 +- .../src/components/MkTokenGenerateWindow.vue | 2 +- packages/client/src/pages/admin/relays.vue | 2 +- packages/client/src/pages/auth.form.vue | 4 +- packages/client/src/pages/auth.vue | 3 +- packages/client/src/pages/miauth.vue | 4 +- .../page-editor/els/page-editor.el.button.vue | 2 +- .../page-editor/page-editor.container.vue | 22 ++++++----- .../page-editor/page-editor.script-block.vue | 8 ++-- packages/client/src/pages/settings/apps.vue | 2 +- packages/client/src/pages/settings/sounds.vue | 2 +- packages/client/src/pages/user/home.vue | 2 +- .../client/src/pages/welcome.entrance.b.vue | 2 +- .../client/src/pages/welcome.entrance.c.vue | 2 +- packages/client/src/ui/deck/tl-column.vue | 4 +- packages/client/src/widgets/calendar.vue | 8 ++-- packages/client/src/widgets/slideshow.vue | 2 +- packages/client/src/widgets/timeline.vue | 2 +- packages/client/src/widgets/trends.vue | 2 +- 24 files changed, 64 insertions(+), 61 deletions(-) diff --git a/package.json b/package.json index 4b0c0d90d..edff41f67 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "calckey", - "version": "12.119.0-calc.14.5", + "version": "12.119.0-calc.14.6", "codename": "aqua", "repository": { "type": "git", diff --git a/packages/client/src/components/MkNoteDetailed.vue b/packages/client/src/components/MkNoteDetailed.vue index 003c41526..4de5b8464 100644 --- a/packages/client/src/components/MkNoteDetailed.vue +++ b/packages/client/src/components/MkNoteDetailed.vue @@ -60,7 +60,7 @@
- {{ $t('translatedFrom', { x: translation.sourceLang }) }}: + {{ i18n.t('translatedFrom', { x: translation.sourceLang }) }}:
diff --git a/packages/client/src/components/MkPoll.vue b/packages/client/src/components/MkPoll.vue index 96a0fa1ad..7fbe515d7 100644 --- a/packages/client/src/components/MkPoll.vue +++ b/packages/client/src/components/MkPoll.vue @@ -6,12 +6,12 @@ - ({{ $t('_poll.votesCount', { n: choice.votes }) }}) + ({{ i18n.t('_poll.votesCount', { n: choice.votes }) }})

- {{ $t('_poll.totalVotes', { n: total }) }} + {{ i18n.t('_poll.totalVotes', { n: total }) }} ยท {{ showResult ? i18n.ts._poll.vote : i18n.ts._poll.showResult }} {{ i18n.ts._poll.voted }} diff --git a/packages/client/src/components/MkPollEditor.vue b/packages/client/src/components/MkPollEditor.vue index 57520a6f5..3803d98dd 100644 --- a/packages/client/src/components/MkPollEditor.vue +++ b/packages/client/src/components/MkPollEditor.vue @@ -5,7 +5,7 @@