aboutsummaryrefslogtreecommitdiff
path: root/docs/dev/import_locale.md
diff options
context:
space:
mode:
Diffstat (limited to 'docs/dev/import_locale.md')
-rw-r--r--docs/dev/import_locale.md16
1 files changed, 16 insertions, 0 deletions
diff --git a/docs/dev/import_locale.md b/docs/dev/import_locale.md
new file mode 100644
index 00000000..fec093c6
--- /dev/null
+++ b/docs/dev/import_locale.md
@@ -0,0 +1,16 @@
+# Import locales from Crowdin
+
+1. Download the ZIP archive from [Crowdin](https://crowdin.gogs.io/) and unzip it.
+1. Go to root directory of the repository.
+1. Run the `import` subcommand:
+
+ ```
+ $ ./gogs import locale --source <path to the unzipped directory> --target ./conf/locale
+ Locale files has been successfully imported!
+ ```
+
+1. Run `make generate` to generate corresponding bindata.
+1. Run `./gogs web` to start the web server, then visit the site in browser to make sure nothing blows up.
+1. Check out a new branch using `git checkout -b update-locales`.
+1. Stash changes then run `git commit -m "locale: sync from Crowdin"`.
+1. Push the commit then open up a pull request on GitHub.