diff options
| author | Mar0xy <marie@kaifa.ch> | 2023-11-06 01:38:15 +0100 |
|---|---|---|
| committer | Mar0xy <marie@kaifa.ch> | 2023-11-06 01:38:15 +0100 |
| commit | f17f630acd39f9f6fba8acc389ccf8d5a23b0e5e (patch) | |
| tree | 61cac68e3481d5384f256e50a7c9e452bf456be0 /packages/frontend/src/components/MkSubNoteContent.vue | |
| parent | chore: add spacing between text and play mfm button (diff) | |
| download | sharkey-f17f630acd39f9f6fba8acc389ccf8d5a23b0e5e.tar.gz sharkey-f17f630acd39f9f6fba8acc389ccf8d5a23b0e5e.tar.bz2 sharkey-f17f630acd39f9f6fba8acc389ccf8d5a23b0e5e.zip | |
add: locales for mfm play button and dialog
Diffstat (limited to 'packages/frontend/src/components/MkSubNoteContent.vue')
| -rw-r--r-- | packages/frontend/src/components/MkSubNoteContent.vue | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/packages/frontend/src/components/MkSubNoteContent.vue b/packages/frontend/src/components/MkSubNoteContent.vue index b5032e6a38..e1b57536fd 100644 --- a/packages/frontend/src/components/MkSubNoteContent.vue +++ b/packages/frontend/src/components/MkSubNoteContent.vue @@ -10,8 +10,8 @@ SPDX-License-Identifier: AGPL-3.0-only <span v-if="note.deletedAt" style="opacity: 0.5">({{ i18n.ts.deleted }})</span> <MkA v-if="note.replyId" :class="$style.reply" :to="`/notes/${note.replyId}`" v-on:click.stop><i class="ph-arrow-bend-left-up ph-bold ph-lg"></i></MkA> <Mfm v-if="note.text" :text="note.text" :author="note.user" :nyaize="'account'" :isAnim="allowAnim" :emojiUrls="note.emojis"/> - <MkButton v-if="!allowAnim && animated && !hideFiles" :class="$style.playMFMButton" :small="true" @click="animatedMFM()" v-on:click.stop><i class="ph-play ph-bold ph-lg "></i> Animated MFM</MkButton> - <MkButton v-else-if="!defaultStore.state.animatedMfm && allowAnim && animated && !hideFiles" :class="$style.playMFMButton" :small="true" @click="animatedMFM()" v-on:click.stop><i class="ph-stop ph-bold ph-lg "></i> Animated MFM</MkButton> + <MkButton v-if="!allowAnim && animated && !hideFiles" :class="$style.playMFMButton" :small="true" @click="animatedMFM()" v-on:click.stop><i class="ph-play ph-bold ph-lg "></i> {{ i18n.ts._animatedMFM.play }}</MkButton> + <MkButton v-else-if="!defaultStore.state.animatedMfm && allowAnim && animated && !hideFiles" :class="$style.playMFMButton" :small="true" @click="animatedMFM()" v-on:click.stop><i class="ph-stop ph-bold ph-lg "></i> {{ i18n.ts._animatedMFM.stop }}</MkButton> <div v-if="note.text && translating || note.text && translation" :class="$style.translation"> <MkLoading v-if="translating" mini/> <div v-else> @@ -78,8 +78,8 @@ function animatedMFM() { } else { os.confirm({ type: 'warning', - text: 'Animated MFMs could include flashing lights and fast moving text/emojis.', - okText: 'Animate', + text: i18n.ts._animatedMFM._alert.text, + okText: i18n.ts._animatedMFM._alert.confirm, }).then((res) => { if (!res.canceled) allowAnim = true; }); } } |