Files
gogs/docs/dev/import_locale.md
T
2026-05-20 19:22:50 -04:00

878 B

Import locales from Crowdin

  1. Upload the latest version of locale_en-US.ini to the Crowdin.

  2. Build and download the ZIP archive and unzip it.

  3. Go to root directory of the repository.

  4. Run the import subcommand:

    $ ./.bin/gogs import locale --source <path to the unzipped directory> --target ./conf/locale
    Locale files has been successfully imported!
    
  5. Run moon run gogs:dev to start the web server, then visit the site in the browser to make sure nothing blows up.

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

  7. Stage changes

  8. Run git commit -m "locale: sync from Crowdin".

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