Increase Detail field size

This commit is contained in:
Gucheng Wang
2022-12-07 01:53:03 +08:00
parent 042e52bd16
commit 96566a626b
4 changed files with 19 additions and 4 deletions

View File

@ -544,6 +544,21 @@ export function getAvatarColor(s) {
return colorList[hash % 4];
}
export function getLanguageText(text) {
if (!text.includes("|")) {
return text;
}
let res;
const tokens = text.split("|");
if (getLanguage() !== "zh") {
res = trim(tokens[0], "");
} else {
res = trim(tokens[1], "");
}
return res;
}
export function getLanguage() {
return i18next.language;
}