summaryrefslogtreecommitdiffstats
path: root/vendor/github.com/Unknwon/i18n/README.md
diff options
context:
space:
mode:
authorLauris BH <lauris@nix.lv>2017-11-15 05:34:42 +0200
committerLunny Xiao <xiaolunwen@gmail.com>2017-11-15 11:34:42 +0800
commita6f337046f0dde4cbf5df1cc83a9e0e79a4db8aa (patch)
treeff8c2373a537e415c50a2a2ad3f8a7b1b5e9e17a /vendor/github.com/Unknwon/i18n/README.md
parentbd23e36becde2fbf109c51ee2abcaa167880a29a (diff)
downloadgitea-a6f337046f0dde4cbf5df1cc83a9e0e79a4db8aa.tar.gz
gitea-a6f337046f0dde4cbf5df1cc83a9e0e79a4db8aa.zip
Update go-ini dependency and remove semicolon hack in translations (#2913)
Diffstat (limited to 'vendor/github.com/Unknwon/i18n/README.md')
-rw-r--r--vendor/github.com/Unknwon/i18n/README.md6
1 files changed, 4 insertions, 2 deletions
diff --git a/vendor/github.com/Unknwon/i18n/README.md b/vendor/github.com/Unknwon/i18n/README.md
index cd96c9ade6..7503e41f28 100644
--- a/vendor/github.com/Unknwon/i18n/README.md
+++ b/vendor/github.com/Unknwon/i18n/README.md
@@ -1,4 +1,4 @@
-i18n
+i18n [![GoDoc](https://godoc.org/github.com/Unknwon/i18n?status.svg)](https://godoc.org/github.com/Unknwon/i18n) [![Sourcegraph](https://sourcegraph.com/github.com/Unknwon/i18n/-/badge.svg)](https://sourcegraph.com/github.com/Unknwon/i18n?badge)
====
Package i18n is for app Internationalization and Localization.
@@ -131,4 +131,6 @@ This command can operate 1 or more files in one command.
## More information
-If the key does not exist, then i18n will return the key string to caller. For instance, when key name is `hi` and it does not exist in locale file, simply return `hi` as output.
+- The first locale you load to the module is considered as **default locale**.
+- When matching non-default locale and didn't find the string, i18n will have a second try on default locale.
+- If i18n still cannot find string in the default locale, raw string will be returned. For instance, when the string is `hi` and it does not exist in locale file, simply return `hi` as output.