Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gohugoio/locales.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjoeybloggs <Dean.Karn@gmail.com>2016-08-18 16:27:45 +0300
committerjoeybloggs <Dean.Karn@gmail.com>2016-08-18 16:27:45 +0300
commit4d5203f4ffe923766592cb84db404040cff387e9 (patch)
tree910900599d6ca42398ebff7c47b36779d9d74bd5 /cmd/translator.tmpl
parent936167fec07f617d1236bcc41e24702a75a3be92 (diff)
Add timezone logic + locale specific info
Diffstat (limited to 'cmd/translator.tmpl')
-rw-r--r--cmd/translator.tmpl4
1 files changed, 3 insertions, 1 deletions
diff --git a/cmd/translator.tmpl b/cmd/translator.tmpl
index ebb4c604..654d6cd7 100644
--- a/cmd/translator.tmpl
+++ b/cmd/translator.tmpl
@@ -42,6 +42,7 @@ type {{ .Locale }} struct {
erasAbbreviated [][]byte
erasNarrow [][]byte
erasWide [][]byte
+ timezones map[string][]byte
}
// New returns a new instance of translator for the '{{ .Locale }}' locale
@@ -124,7 +125,8 @@ func New() locales.Translator {
{{- end -}}
{{- if gt (len .FmtErasWide) 0 }}
erasWide: {{ .FmtErasWide }},
- {{- end}}
+ {{- end }}
+ timezones: {{ .FmtTimezones }},
}
}