from pathlib import Path root = Path(__file__).resolve().parents[1] p = root / 'lib/l10n/app_en.arb' p.write_text(p.read_text(encoding='utf-8').replace('ИКАР','IKAR'), encoding='utf-8')