add warning banner about word mute limitations

This commit is contained in:
Hazelnoot 2025-05-10 21:39:25 -04:00
parent 1a9f8f782a
commit 535d316839
3 changed files with 10 additions and 0 deletions

4
locales/index.d.ts vendored
View file

@ -13053,6 +13053,10 @@ export interface Locale extends ILocale {
* Timeout in milliseconds for translation API requests. * Timeout in milliseconds for translation API requests.
*/ */
"translationTimeoutCaption": string; "translationTimeoutCaption": string;
/**
* Except for regular expressions, all word mutes are *case-sensitive* and match on any substring, including part of a longer word or name.
*/
"wordMuteWarning": string;
} }
declare const locales: { declare const locales: {
[lang: string]: Locale; [lang: string]: Locale;

View file

@ -22,6 +22,8 @@ SPDX-License-Identifier: AGPL-3.0-only
<div class="_gaps_m"> <div class="_gaps_m">
<MkInfo>{{ i18n.ts.wordMuteDescription }}</MkInfo> <MkInfo>{{ i18n.ts.wordMuteDescription }}</MkInfo>
<MkInfo warn>{{ i18n.ts.wordMuteWarning }}</MkInfo>
<SearchMarker <SearchMarker
:label="i18n.ts.showMutedWord" :label="i18n.ts.showMutedWord"
:keywords="['show']" :keywords="['show']"
@ -44,6 +46,9 @@ SPDX-License-Identifier: AGPL-3.0-only
<div class="_gaps_m"> <div class="_gaps_m">
<MkInfo>{{ i18n.ts.hardWordMuteDescription }}</MkInfo> <MkInfo>{{ i18n.ts.hardWordMuteDescription }}</MkInfo>
<MkInfo warn>{{ i18n.ts.wordMuteWarning }}</MkInfo>
<XWordMute :muted="$i.hardMutedWords" @save="saveHardMutedWords"/> <XWordMute :muted="$i.hardMutedWords" @save="saveHardMutedWords"/>
</div> </div>
</MkFolder> </MkFolder>

View file

@ -560,6 +560,7 @@ wordMuteTestTest: "Test"
wordMuteTestMatch: "Matched words: {words}" wordMuteTestMatch: "Matched words: {words}"
wordMuteTestNoResults: "No results yet, enter some text and click \"Test\" to check it." wordMuteTestNoResults: "No results yet, enter some text and click \"Test\" to check it."
wordMuteTestNoMatch: "Text does not match any patterns." wordMuteTestNoMatch: "Text does not match any patterns."
wordMuteWarning: "Except for regular expressions, all word mutes are *case-sensitive* and match on any substring, including part of a longer word or name."
bubbleTimeline: "Bubble timeline" bubbleTimeline: "Bubble timeline"
bubbleTimelineDescription: "Choose which instances should be displayed in the bubble." bubbleTimelineDescription: "Choose which instances should be displayed in the bubble."