Script to find unused translations
This commit is contained in:
17
script/find_unused_translations.py
Executable file
17
script/find_unused_translations.py
Executable 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)
|
Reference in New Issue
Block a user