gf/.example/i18n/gi18n/gi18n.go
2020-10-25 17:33:14 +08:00

16 lines
281 B
Go

package main
import (
"fmt"
"github.com/gogf/gf/frame/g"
)
func main() {
var (
orderId = 865271654
orderAmount = 99.8
)
fmt.Println(g.I18n().Tfl(`en`, `{#OrderPaid}`, orderId, orderAmount))
fmt.Println(g.I18n().Tfl(`zh-CN`, `{#OrderPaid}`, orderId, orderAmount))
}