Add the placeholder of i18n.
This commit is contained in:
parent
281e856864
commit
2b687331b5
16
code/tool/i18n/i18n.go
Normal file
16
code/tool/i18n/i18n.go
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
package i18n
|
||||||
|
|
||||||
|
const (
|
||||||
|
//英文
|
||||||
|
ENGLISH = "ENGLISH"
|
||||||
|
//中文
|
||||||
|
CHINESE = "CHINESE"
|
||||||
|
)
|
||||||
|
|
||||||
|
func Message(lang string, key string) {
|
||||||
|
if lang == ENGLISH {
|
||||||
|
|
||||||
|
} else if lang == CHINESE {
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user