// Trans returns language translation by the given key
Trans returns language translation by the given key
// Trans returns language translation by the given key
func (t *Translator) Trans(key string, args ...interface{}) string {
	if !t.viper.IsSet(key) {
		return key
	}
	value := t.viper.GetString(key)
	if len(args) > 0 {
		return fmt.Sprintf(value, args...)
	}
	return value
}
func ( t * Translator ) Trans ( key string , args ... interface { } ) string { if ! t . viper . IsSet ( key ) { return key } value := t . viper . GetString ( key ) if len ( args ) > 0 { return fmt . Sprintf ( value , args ... ) } return value }
Trans returns language translation by the given key
Trans returns language translation by the given key