From 231f7b924a28c5c08e9b7ee9ddd60343589705f6 Mon Sep 17 00:00:00 2001 From: jwijenbergh Date: Wed, 16 Aug 2023 13:38:11 +0200 Subject: Locales: Add a script to sync translations and use it --- sync_translations.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 sync_translations.sh (limited to 'sync_translations.sh') 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 -- cgit v1.2.3