feat: add some i18n translations
This commit is contained in:
parent
2298254903
commit
3d2f19427a
15 changed files with 29 additions and 16 deletions
|
|
@ -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'
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue