Skip to content

Commit

Permalink
add translation action
Browse files Browse the repository at this point in the history
  • Loading branch information
newhinton committed Apr 27, 2024
1 parent 1251c5d commit 9a51dbf
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/translations.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
with:
PATTERNS: |
**/strings.xml
FORMAT: json
- run: echo '${{ env.GIT_DIFF }}' | jq .

checkLint:
Expand Down
11 changes: 11 additions & 0 deletions scripts/checkProfanity.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/usr/bin/python

import sys
from profanity_check import predict, predict_prob
import joblib


for line in sys.stdin:
prediction = predict_prob([line.rstrip()])
if prediction[0] > 0.5:
print(str(line.rstrip()))

0 comments on commit 9a51dbf

Please sign in to comment.