emojiMute/emojiUnmute

This commit is contained in:
tai-cha 2025-05-07 09:30:37 +09:00
parent 9c32a66689
commit 5fb7f6c8af
No known key found for this signature in database
GPG Key ID: 1D5EE39F870DC283
6 changed files with 11 additions and 6 deletions

4
locales/index.d.ts vendored
View File

@ -5421,6 +5421,10 @@ export interface Locale extends ILocale {
* *
*/ */
"emojiMute": string; "emojiMute": string;
/**
*
*/
"emojiUnmute": string;
/** /**
* {x} * {x}
*/ */

View File

@ -1350,6 +1350,7 @@ federationJobs: "連合ジョブ"
driveAboutTip: "ドライブでは、過去にアップロードしたファイルの一覧が表示されます。<br>\nートに添付する際に再利用したり、あとで投稿するファイルを予めアップロードしておくこともできます。<br>\n<b>ファイルを削除すると、今までそのファイルを使用した全ての場所(ノート、ページ、アバター、バナー等)からも見えなくなるので注意してください。</b><br>\nフォルダを作って整理することもできます。" driveAboutTip: "ドライブでは、過去にアップロードしたファイルの一覧が表示されます。<br>\nートに添付する際に再利用したり、あとで投稿するファイルを予めアップロードしておくこともできます。<br>\n<b>ファイルを削除すると、今までそのファイルを使用した全ての場所(ノート、ページ、アバター、バナー等)からも見えなくなるので注意してください。</b><br>\nフォルダを作って整理することもできます。"
scrollToClose: "スクロールして閉じる" scrollToClose: "スクロールして閉じる"
emojiMute: "絵文字ミュート" emojiMute: "絵文字ミュート"
emojiUnmute: "絵文字ミュート解除"
muteX: "{x}をミュート" muteX: "{x}をミュート"
unmuteX: "{x}のミュートを解除" unmuteX: "{x}のミュートを解除"

View File

@ -141,7 +141,7 @@ async function menu(ev) {
if (isEmojiMuted(props.reaction).value) { if (isEmojiMuted(props.reaction).value) {
menuItems.push({ menuItems.push({
text: i18n.ts.unmute, text: i18n.ts.emojiUnmute,
icon: 'ti ti-mood-smile', icon: 'ti ti-mood-smile',
action: () => { action: () => {
os.confirm({ os.confirm({
@ -155,7 +155,7 @@ async function menu(ev) {
}); });
} else { } else {
menuItems.push({ menuItems.push({
text: i18n.ts.mute, text: i18n.ts.emojiMute,
icon: 'ti ti-mood-off', icon: 'ti ti-mood-off',
action: () => { action: () => {
os.confirm({ os.confirm({

View File

@ -141,7 +141,7 @@ function onClick(ev: MouseEvent) {
} }
menuItems.push({ menuItems.push({
text: i18n.ts.mute, text: i18n.ts.emojiMute,
icon: 'ti ti-mood-off', icon: 'ti ti-mood-off',
action: async () => { action: async () => {
await mute(); await mute();

View File

@ -95,13 +95,13 @@ function onClick(ev: MouseEvent) {
menuItems.push({ menuItems.push({
type: 'divider', type: 'divider',
}, isMuted.value ? { }, isMuted.value ? {
text: i18n.ts.unmute, text: i18n.ts.emojiUnmute,
icon: 'ti ti-mood-smile', icon: 'ti ti-mood-smile',
action: () => { action: () => {
unmute(); unmute();
}, },
} : { } : {
text: i18n.ts.mute, text: i18n.ts.emojiMute,
icon: 'ti ti-mood-off', icon: 'ti ti-mood-off',
action: () => { action: () => {
mute(); mute();

View File

@ -61,7 +61,7 @@ function onEmojiClick(ev: MouseEvent, emoji: string) {
type: 'label', type: 'label',
text: emoji, text: emoji,
}, { }, {
text: i18n.ts.unmute, text: i18n.ts.emojiUnmute,
icon: 'ti ti-mood-off', icon: 'ti ti-mood-off',
action: () => unmute(emoji), action: () => unmute(emoji),
}]; }];