Script to find unused translations

This commit is contained in:
George Drummond
2019-06-13 16:59:47 -04:00
parent 1caf8b8d21
commit 9f274a7d1c
4 changed files with 40 additions and 2 deletions

View File

@@ -0,0 +1,17 @@
#! .venv/bin/python
import os
import sys
import subprocess
from subprocess import check_output
parent_dir = os.path.abspath(os.path.join(os.path.dirname(__file__), ".."))
sys.path.append(parent_dir)
from atst.utils.localization import all_keys
for key in all_keys():
try:
check_output("git grep -q '{}'".format(key), shell=True)
except Exception:
print(key)