1
1
mirror of https://github.com/kokonect-link/cherrypick synced 2024-11-27 14:28:53 +09:00
This commit is contained in:
NoriDev 2023-06-18 20:50:29 +09:00
parent eb4acc358b
commit f34ee384d5
8 changed files with 5 additions and 9 deletions

View File

@ -1,6 +1,5 @@
---
_lang_: "English"
closeTranslate: "Close translation"
posted: "Note are now published."
translateNote: "Translate Note"
showTranslateButtonInNote: "Display translate button in note body"

3
locales/index.d.ts vendored
View File

@ -3,7 +3,6 @@
// Do not edit this file directly.
export interface Locale {
"_lang_": string;
"closeTranslate": string;
"posted": string;
"translateNote": string;
"showTranslateButtonInNote": string;
@ -1113,10 +1112,10 @@ export interface Locale {
"goToMisskey": string;
"additionalEmojiDictionary": string;
"installed": string;
"branding": string;
"additionalPermissionsForFlash": string;
"thisFlashRequiresTheFollowingPermissions": string;
"doYouWantToAllowThisPlayToAccessYourAccount": string;
"branding": string;
"translateProfile": string;
"_group": {
"leader": string;

View File

@ -1,6 +1,5 @@
_lang_: "日本語"
closeTranslate: "翻訳を閉じる"
posted: "ノートを公開しました。"
translateNote: "ノートを翻訳する"
showTranslateButtonInNote: "ノート本文に翻訳ボタンを表示"

View File

@ -1,6 +1,5 @@
---
_lang_: "한국어"
closeTranslate: "번역 닫기"
posted: "노트를 게시했어요!"
translateNote: "노트 번역하기"
showTranslateButtonInNote: "노트 본문에 번역 버튼 표시"

View File

@ -67,7 +67,7 @@
<Mfm v-if="appearNote.text" :text="appearNote.text" :author="appearNote.user" :i="$i" :emojiUrls="appearNote.emojis"/>
<div v-if="defaultStore.state.showTranslateButtonInNote" style="padding-top: 5px; color: var(--accent);">
<button v-if="!(translating || translation)" ref="translateButton" class="_button" @mousedown="translate()">{{ i18n.ts.translateNote }}</button>
<button v-else class="_button" @mousedown="translation = null">{{ i18n.ts.closeTranslate }}</button>
<button v-else class="_button" @mousedown="translation = null"><i class="ti ti-x"></i> {{ i18n.ts.close }}</button>
</div>
<div v-if="translating || translation" :class="$style.translation">
<MkLoading v-if="translating" mini/>

View File

@ -88,7 +88,7 @@
<a v-if="appearNote.renote != null" :class="$style.rn">RN:</a>
<div v-if="defaultStore.state.showTranslateButtonInNote" style="padding-top: 5px; color: var(--accent);">
<button v-if="!(translating || translation)" ref="translateButton" class="_button" @mousedown="translate()">{{ i18n.ts.translateNote }}</button>
<button v-else class="_button" @mousedown="translation = null">{{ i18n.ts.closeTranslate }}</button>
<button v-else class="_button" @mousedown="translation = null"><i class="ti ti-x"></i> {{ i18n.ts.close }}</button>
</div>
<div v-if="translating || translation" :class="$style.translation">
<MkLoading v-if="translating" mini/>

View File

@ -8,7 +8,7 @@
<MkA v-if="note.renoteId" :class="$style.rp" :to="`/notes/${note.renoteId}`">RN: ...</MkA>
<div v-if="defaultStore.state.showTranslateButtonInNote" style="padding-top: 5px; color: var(--accent);">
<button v-if="!(translating || translation)" ref="translateButton" class="_button" @mousedown="translate()">{{ i18n.ts.translateNote }}</button>
<button v-else class="_button" @mousedown="translation = null">{{ i18n.ts.closeTranslate }}</button>
<button v-else class="_button" @mousedown="translation = null"><i class="ti ti-x"></i> {{ i18n.ts.close }}</button>
</div>
<div v-if="translating || translation" :class="$style.translation">
<MkLoading v-if="translating" mini/>

View File

@ -75,7 +75,7 @@
<p v-else class="empty">{{ i18n.ts.noAccountDescription }}</p>
<div v-if="user.description">
<MkButton v-if="!(translating || translation)" class="translateButton" small @click="translate"><i class="ti ti-language-hiragana"></i> {{ i18n.ts.translateProfile }}</MkButton>
<MkButton v-else class="translateButton" small @click="translation = null">{{ i18n.ts.closeTranslate }}</MkButton>
<MkButton v-else class="translateButton" small @click="translation = null"><i class="ti ti-x"></i> {{ i18n.ts.close }}</MkButton>
</div>
<div v-if="translating || translation" class="translation">
<MkLoading v-if="translating" mini/>