fix: default trans tag

This commit is contained in:
Gabe Yuan
2024-03-15 16:00:20 +08:00
parent 746ec019c4
commit 6dd581d5e2
3 changed files with 7 additions and 3 deletions

View File

@@ -12,6 +12,7 @@ import {
DEFAULT_COLOR,
MSG_TRANS_CURRULE,
TRANS_NEWLINE_LENGTH,
DEFAULT_TRANS_TAG,
} from "../../config";
import { useTranslate } from "../../hooks/Translate";
import { styled, css } from "@mui/material/styles";
@@ -90,7 +91,7 @@ export default function Content({ q, keeps, translator, $el }) {
const {
newlineLength = TRANS_NEWLINE_LENGTH,
transTag = "span",
transTag = DEFAULT_TRANS_TAG,
transOnly = false,
} = translator.setting;

View File

@@ -26,6 +26,7 @@ import {
OPT_LANGS_TO,
DEFAULT_BLACKLIST,
MSG_CONTEXT_MENUS,
DEFAULT_TRANS_TAG,
} from "../../config";
import { useShortcut } from "../../hooks/Shortcut";
import ShortcutInput from "./ShortcutInput";
@@ -97,7 +98,7 @@ export default function Settings() {
mouseKey = OPT_MOUSEKEY_DISABLE,
detectRemote = false,
contextMenuType = 1,
transTag = "span",
transTag = DEFAULT_TRANS_TAG,
transOnly = false,
transTitle = false,
touchTranslate = 2,