feat: add some i18n translations

This commit is contained in:
codytseng
2025-06-24 23:21:14 +08:00
parent 2298254903
commit 3d2f19427a
15 changed files with 29 additions and 16 deletions

View File

@@ -58,11 +58,9 @@ export default function TranslateButton({
if (/[\u4e00-\u9fff]/.test(cleanText)) {
return i18n.language !== 'zh'
}
if (/[\u0600-\u06ff]/.test(cleanText)) {
return i18n.language !== 'ar'
}
if (/[\u0400-\u04ff]/.test(cleanText)) {
return i18n.language !== 'ru'
}