diff options
author | zeripath <art27@cantab.net> | 2020-09-10 22:32:58 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-10 16:32:58 -0500 |
commit | daefdd1385d12bf0c8321f291dbb6ab242b41c99 (patch) | |
tree | 57f4663361f318c12a9ad569d7fdde5d3bf7873c /vendor/github.com | |
parent | 47289344e2ede03b7a74208aad3b92c8bca979c3 (diff) | |
download | gitea-daefdd1385d12bf0c8321f291dbb6ab242b41c99.tar.gz gitea-daefdd1385d12bf0c8321f291dbb6ab242b41c99.zip |
Update gitea.com/macaron/i18n (#12806)
Signed-off-by: Andrew Thornton <art27@cantab.net>
Diffstat (limited to 'vendor/github.com')
-rw-r--r-- | vendor/github.com/unknwon/i18n/README.md | 9 | ||||
-rw-r--r-- | vendor/github.com/unknwon/i18n/codecov.yml | 9 | ||||
-rw-r--r-- | vendor/github.com/unknwon/i18n/i18n.go | 2 |
3 files changed, 17 insertions, 3 deletions
diff --git a/vendor/github.com/unknwon/i18n/README.md b/vendor/github.com/unknwon/i18n/README.md index 4e3bff7526..33e9cbfb36 100644 --- a/vendor/github.com/unknwon/i18n/README.md +++ b/vendor/github.com/unknwon/i18n/README.md @@ -1,4 +1,9 @@ -# i18n [](https://godoc.org/github.com/unknwon/i18n) +# i18n + +[](https://github.com/unknwon/i18n/actions?query=workflow%3AGo) +[](https://codecov.io/gh/unknwon/i18n) +[](https://pkg.go.dev/github.com/unknwon/i18n?tab=doc) +[](https://sourcegraph.com/github.com/unknwon/i18n) Package i18n is for app Internationalization and Localization. @@ -124,7 +129,7 @@ Module i18n provides a command line helper tool beei18n for simplify steps of yo Command `sync` allows you use a exist local file as the template to create or sync other locale files: - ui18n sync srouce_file.ini other1.ini other2.ini + ui18n sync source_file.ini other1.ini other2.ini This command can operate 1 or more files in one command. diff --git a/vendor/github.com/unknwon/i18n/codecov.yml b/vendor/github.com/unknwon/i18n/codecov.yml new file mode 100644 index 0000000000..fc947f2308 --- /dev/null +++ b/vendor/github.com/unknwon/i18n/codecov.yml @@ -0,0 +1,9 @@ +coverage: + range: "60...95" + status: + project: + default: + threshold: 1% + +comment: + layout: 'diff, files' diff --git a/vendor/github.com/unknwon/i18n/i18n.go b/vendor/github.com/unknwon/i18n/i18n.go index 38f0899dd3..cfe982f5f7 100644 --- a/vendor/github.com/unknwon/i18n/i18n.go +++ b/vendor/github.com/unknwon/i18n/i18n.go @@ -167,7 +167,7 @@ func SetMessageWithDesc(lang, langDesc string, localeFile interface{}, otherLoca lc.langDesc = langDesc lc.message = message - if locales.Add(lc) == false { + if !locales.Add(lc) { return ErrLangAlreadyExist } } |