]> source.dussan.org Git - gitea.git/commit
Allow dev i18n to be more concurrent (#20159)
authorzeripath <art27@cantab.net>
Mon, 4 Jul 2022 10:17:09 +0000 (11:17 +0100)
committerGitHub <noreply@github.com>
Mon, 4 Jul 2022 10:17:09 +0000 (12:17 +0200)
commitba0f9274e99ce7e28d587e30eee4a211b0556354
tree838c6aee4022d5f708f9c3c3dc1e799573b8b84e
parent33f6f91008f2219e94e8d909539b38a590554122
Allow dev i18n to be more concurrent (#20159)

The recent changes to add live-reloading to the i18n translation files made the i18n code totally non-concurrent when using dev. This will make discovering other concurrency related issues far more difficult. This PR fixes these, adds some more comments to the code and slightly restructures a few functions.

Signed-off-by: Andrew Thornton <art27@cantab.net>
modules/translation/i18n/i18n.go