gins_i18n.go 500 B

1234567891011121314151617
  1. // Copyright 2019 gf Author(https://github.com/gogf/gf). 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/gogf/gf.
  6. package gins
  7. import (
  8. "github.com/gogf/gf/i18n/gi18n"
  9. )
  10. // I18n returns an instance of gi18n.Manager.
  11. // The parameter <name> is the name for the instance.
  12. func I18n(name ...string) *gi18n.Manager {
  13. return gi18n.Instance(name...)
  14. }