From 0d9ef154266a653152eab164353a15d31564e613 Mon Sep 17 00:00:00 2001 From: JarbasAI <33701864+JarbasAl@users.noreply.github.com> Date: Mon, 4 Nov 2024 17:56:28 +0000 Subject: [PATCH] Update sync_translations.py --- scripts/sync_translations.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/sync_translations.py b/scripts/sync_translations.py index 33831a0..4720f8a 100644 --- a/scripts/sync_translations.py +++ b/scripts/sync_translations.py @@ -16,6 +16,8 @@ vocs = f"{tx}/{lang}/vocabs.json" regexes = f"{tx}/{lang}/regexes.json" + os.makedirs(f"{locale}/{lang}", exist_ok=True) + if os.path.isfile(intents): with open(intents) as f: data = json.load(f)