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:
Diffstat (limited to 'rules.go')
-rw-r--r--rules.go20
1 files changed, 20 insertions, 0 deletions
diff --git a/rules.go b/rules.go
index 0d5cf1f8..11e02707 100644
--- a/rules.go
+++ b/rules.go
@@ -122,6 +122,26 @@ type Translator interface {
// returned as a []byte just in case the caller wishes to add more and can help
// avoid allocations; otherwise just cast as string.
FmtTimeFull(t time.Time) []byte
+
+ // returns the short date & time representation of 't' for '{{ .Locale }}'
+ // returned as a []byte just in case the caller wishes to add more and can help
+ // avoid allocations; otherwise just cast as string.
+ FmtDateTimeShort(t time.Time) []byte
+
+ // returns the medium date & time representation of 't' for '{{ .Locale }}'
+ // returned as a []byte just in case the caller wishes to add more and can help
+ // avoid allocations; otherwise just cast as string.
+ FmtDateTimeMedium(t time.Time) []byte
+
+ // returns the long date & time representation of 't' for '{{ .Locale }}'
+ // returned as a []byte just in case the caller wishes to add more and can help
+ // avoid allocations; otherwise just cast as string.
+ FmtDateTimeLong(t time.Time) []byte
+
+ // returns the full date & time representation of 't' for '{{ .Locale }}'
+ // returned as a []byte just in case the caller wishes to add more and can help
+ // avoid allocations; otherwise just cast as string.
+ FmtDateTimeFull(t time.Time) []byte
}
// String returns the string value of PluralRule