Source Code added

This commit is contained in:
Fr4nz D13trich 2026-02-02 15:06:40 +01:00
parent 800376eafd
commit 9efa9bc6dd
3912 changed files with 754770 additions and 2 deletions

View file

@ -0,0 +1,24 @@
#!/usr/bin/env python3
import json
import subprocess
def main():
with open('assets/i18n/en-US.json', 'r+') as f:
data = json.load(f)
keys_to_delete = []
for k in data.keys():
sp = subprocess.run(['sh', '-c', f'grep -q -r --include="*.dart" "{k}"'])
if sp.returncode != 0:
print("Not found in source code, key:", k)
keys_to_delete.append(k)
for k in keys_to_delete:
del data[k]
f.seek(0)
f.truncate()
json.dump(data, f, indent=4)
if __name__ == '__main__':
main()