github.com/wangyougui/gf/v2@v2.6.5/frame/gins/gins_i18n.go (about) 1 // Copyright GoFrame Author(https://goframe.org). All Rights Reserved. 2 // 3 // This Source Code Form is subject to the terms of the MIT License. 4 // If a copy of the MIT was not distributed with this file, 5 // You can obtain one at https://github.com/wangyougui/gf. 6 7 package gins 8 9 import ( 10 "github.com/wangyougui/gf/v2/i18n/gi18n" 11 ) 12 13 // I18n returns an instance of gi18n.Manager. 14 // The parameter `name` is the name for the instance. 15 func I18n(name ...string) *gi18n.Manager { 16 return gi18n.Instance(name...) 17 }