fix: default trans tag
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user