summaryrefslogtreecommitdiff
path: root/sync_translations.sh
diff options
context:
space:
mode:
authorjwijenbergh <jeroenwijenbergh@protonmail.com>2023-08-16 13:38:11 +0200
committerJeroen Wijenbergh <46386452+jwijenbergh@users.noreply.github.com>2023-09-25 09:43:37 +0200
commit231f7b924a28c5c08e9b7ee9ddd60343589705f6 (patch)
treeb881a37f75681904609d9da348bb034457f65801 /sync_translations.sh
parent129594e5871ae0a045563a9f5b9a54eda413d1ad (diff)
Locales: Add a script to sync translations and use it
Diffstat (limited to 'sync_translations.sh')
-rwxr-xr-xsync_translations.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/sync_translations.sh b/sync_translations.sh
new file mode 100755
index 0000000..ae61df1
--- /dev/null
+++ b/sync_translations.sh
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+# This should be run when the source code is updated
+
+go generate ./...
+files=$(find client/locales -iname "out.gotext.json")
+for f in $files
+do
+ dir=$(dirname $f)
+ cp "$f" "$dir"/messages.gotext.json
+done