atst/script/find_unused_translations.py
2019-06-14 09:59:07 -04:00

18 lines
386 B
Python
Executable File

#! .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)