From 40513a117f83077bfaffb9bf969b2000d85ba7cc Mon Sep 17 00:00:00 2001 From: ᴜɴᴋɴᴡᴏɴ Date: Sat, 22 Aug 2020 22:35:09 +0800 Subject: docs: add instructions for release (#6268) --- docs/dev/import_locale.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 docs/dev/import_locale.md (limited to 'docs/dev/import_locale.md') 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 --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. -- cgit v1.2.3