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;