Skip to content

Commit

Permalink
Detect more meaningless translations
Browse files Browse the repository at this point in the history
  • Loading branch information
GarboMuffin committed May 29, 2024
1 parent 64cac38 commit 587ff9e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,10 @@ const isMeaninglessTranslation = (text) => (
// Some other common autogenerated translations we've observed.
/^[a-z&]\d+$/.test(text) ||
/[0-9]{15}/.test(text) ||
/^[a-zA-Z]{25}$/.test(text)
/^[a-zA-Z]{25}$/.test(text) ||
/^[a-z0-9]{100}$/.test(text) ||
/^Combo of \d{5,} Fruits!$/.test(text) ||
/^안녕-?\d{5,}$/.test(text)
);

const getTranslate = async (language, text) => {
Expand Down

0 comments on commit 587ff9e

Please sign in to comment.