import_locale.md 708 B

Import locales from Crowdin

  1. Download the ZIP archive from Crowdin and unzip it.
  2. Go to root directory of the repository.
  3. Run the import subcommand:

    $ ./gogs import locale --source <path to the unzipped directory> --target ./conf/locale
    Locale files has been successfully imported!
    
  4. Run make generate to generate corresponding bindata.

  5. Run ./gogs web to start the web server, then visit the site in browser to make sure nothing blows up.

  6. Check out a new branch using git checkout -b update-locales.

  7. Stash changes then run git commit -m "locale: sync from Crowdin".

  8. Push the commit then open up a pull request on GitHub.