Versions in this module Expand all Collapse all v1 v1.15.0 Sep 9, 2024 Changes in this version + type Loader struct + func NewLoader(t interface{ ... }) *Loader + func (_m *Loader) EXPECT() *Loader_Expecter + func (_m *Loader) Load(locale string, group string) (map[string]interface{}, error) + type Loader_Expecter struct + func (_e *Loader_Expecter) Load(locale interface{}, group interface{}) *Loader_Load_Call + type Loader_Load_Call struct + func (_c *Loader_Load_Call) Return(_a0 map[string]interface{}, _a1 error) *Loader_Load_Call + func (_c *Loader_Load_Call) Run(run func(locale string, group string)) *Loader_Load_Call + func (_c *Loader_Load_Call) RunAndReturn(run func(string, string) (map[string]interface{}, error)) *Loader_Load_Call + type Translator struct + func NewTranslator(t interface{ ... }) *Translator + func (_m *Translator) Choice(key string, number int, options ...translation.Option) string + func (_m *Translator) CurrentLocale() string + func (_m *Translator) EXPECT() *Translator_Expecter + func (_m *Translator) Get(key string, options ...translation.Option) string + func (_m *Translator) GetFallback() string + func (_m *Translator) Has(key string, options ...translation.Option) bool + func (_m *Translator) SetFallback(locale string) context.Context + func (_m *Translator) SetLocale(locale string) context.Context + type Translator_Choice_Call struct + func (_c *Translator_Choice_Call) Return(_a0 string) *Translator_Choice_Call + func (_c *Translator_Choice_Call) Run(run func(key string, number int, options ...translation.Option)) *Translator_Choice_Call + func (_c *Translator_Choice_Call) RunAndReturn(run func(string, int, ...translation.Option) string) *Translator_Choice_Call + type Translator_CurrentLocale_Call struct + func (_c *Translator_CurrentLocale_Call) Return(_a0 string) *Translator_CurrentLocale_Call + func (_c *Translator_CurrentLocale_Call) Run(run func()) *Translator_CurrentLocale_Call + func (_c *Translator_CurrentLocale_Call) RunAndReturn(run func() string) *Translator_CurrentLocale_Call + type Translator_Expecter struct + func (_e *Translator_Expecter) Choice(key interface{}, number interface{}, options ...interface{}) *Translator_Choice_Call + func (_e *Translator_Expecter) CurrentLocale() *Translator_CurrentLocale_Call + func (_e *Translator_Expecter) Get(key interface{}, options ...interface{}) *Translator_Get_Call + func (_e *Translator_Expecter) GetFallback() *Translator_GetFallback_Call + func (_e *Translator_Expecter) Has(key interface{}, options ...interface{}) *Translator_Has_Call + func (_e *Translator_Expecter) SetFallback(locale interface{}) *Translator_SetFallback_Call + func (_e *Translator_Expecter) SetLocale(locale interface{}) *Translator_SetLocale_Call + type Translator_GetFallback_Call struct + func (_c *Translator_GetFallback_Call) Return(_a0 string) *Translator_GetFallback_Call + func (_c *Translator_GetFallback_Call) Run(run func()) *Translator_GetFallback_Call + func (_c *Translator_GetFallback_Call) RunAndReturn(run func() string) *Translator_GetFallback_Call + type Translator_Get_Call struct + func (_c *Translator_Get_Call) Return(_a0 string) *Translator_Get_Call + func (_c *Translator_Get_Call) Run(run func(key string, options ...translation.Option)) *Translator_Get_Call + func (_c *Translator_Get_Call) RunAndReturn(run func(string, ...translation.Option) string) *Translator_Get_Call + type Translator_Has_Call struct + func (_c *Translator_Has_Call) Return(_a0 bool) *Translator_Has_Call + func (_c *Translator_Has_Call) Run(run func(key string, options ...translation.Option)) *Translator_Has_Call + func (_c *Translator_Has_Call) RunAndReturn(run func(string, ...translation.Option) bool) *Translator_Has_Call + type Translator_SetFallback_Call struct + func (_c *Translator_SetFallback_Call) Return(_a0 context.Context) *Translator_SetFallback_Call + func (_c *Translator_SetFallback_Call) Run(run func(locale string)) *Translator_SetFallback_Call + func (_c *Translator_SetFallback_Call) RunAndReturn(run func(string) context.Context) *Translator_SetFallback_Call + type Translator_SetLocale_Call struct + func (_c *Translator_SetLocale_Call) Return(_a0 context.Context) *Translator_SetLocale_Call + func (_c *Translator_SetLocale_Call) Run(run func(locale string)) *Translator_SetLocale_Call + func (_c *Translator_SetLocale_Call) RunAndReturn(run func(string) context.Context) *Translator_SetLocale_Call