Skip to content

Commit

Permalink
Remove a typo-function
Browse files Browse the repository at this point in the history
Signed-off-by: Jo Vandeginste <[email protected]>
  • Loading branch information
jovandeginste committed Feb 24, 2024
1 parent cc69a70 commit bcdfe96
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions pkg/app/tempates.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,12 @@ func (a *App) viewTemplateFunctions() template.FuncMap {
h := a.humanizer.CreateHumanizer(language.English)

return template.FuncMap{
"i18n": echoFunc,
"language": func() string { return DefaultLanguage },
"i18n": echoFunc,
"language": func() string { return DefaultLanguage },
"humanizer": func() *humanize.Humanizer { return h },

"supportedLanguages": a.translator.SupportedLanguages,
"humanizer": func() *humanize.Humanizer { return h },
"supportedThemes": themes,

"NumericDuration": templatehelpers.NumericDuration,
"CountryCodeToFlag": templatehelpers.CountryCodeToFlag,
Expand All @@ -65,8 +67,6 @@ func (a *App) viewTemplateFunctions() template.FuncMap {
"BoolToCheckbox": templatehelpers.BoolToCheckbox,
"BuildDecoratedAttribute": templatehelpers.BuildDecoratedAttribute,
"ToLanguageInformation": templatehelpers.ToLanguageInformation,
"supportedLanguaged": a.translator.SupportedLanguages,
"supportedThemes": themes,

"RelativeDate": h.NaturalTime,

Expand Down

0 comments on commit bcdfe96

Please sign in to comment.