gf/.example/i18n/gi18n/gi18n.go
2019-09-01 00:30:01 +08:00

16 lines
207 B
Go

package main
import (
"fmt"
"github.com/gogf/gf/i18n/gi18n"
)
func main() {
t := gi18n.New()
t.SetLanguage("ja")
fmt.Println(t.Translate(`hello`))
fmt.Println(t.Translate(`{#hello}}{#world}}!`))
}