aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 10 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 659af47f43..999cced678 100644
--- a/Makefile
+++ b/Makefile
@@ -278,3 +278,13 @@ swagger-ui:
.PHONY: assets
assets: javascripts stylesheets
+
+.PHONY: update-translations
+update-translations:
+ mkdir -p ./translations
+ cd ./translations && curl -L https://crowdin.com/download/project/gitea.zip > gitea.zip && unzip gitea.zip
+ rm ./translations/gitea.zip
+ $(SED_INPLACE) -e 's/="/=/g' -e 's/"$$//g' ./translations/*.ini
+ $(SED_INPLACE) -e 's/\\"/"/g' ./translations/*.ini
+ mv ./translations/*.ini ./options/locale/
+ rmdir ./translations \ No newline at end of file