german

package
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 14, 2024 License: BSD-3-Clause Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AustrianGerman = func() zytdata.LocaleData {
	d := German.Clone()
	d.Tag = xtextlanguage.MustCompose(d.Tag, language.MustParseRegion("AT"))

	january := &d.Months[0]
	january.Name = "Jänner"
	january.Abbr = "Jän."

	return d
}()
View Source
var German = zytdata.LocaleData{
	Tag: language.German,
	Months: func() [12]zytdata.MonthInfo {
		months := [12]zytdata.MonthInfo{
			{
				Name: "Januar", Abbr: "Jan",
				ExtraNames: []string{"Jänner"},
				ExtraAbbr:  []string{"Jän"},
			},
			{
				Name: "Februar", Abbr: "Feb",
				ExtraNames: []string{"Feber"},
				ExtraAbbr:  []string{"Febr"},
			},
			{
				Name: "März", Abbr: "Mär",
				ExtraAbbr: []string{"Mrz"},
			},
			{Name: "April", Abbr: "Apr"},
			{Name: "Mai", Abbr: "Mai"},
			{Name: "Juni", Abbr: "Jun"},
			{Name: "Juli", Abbr: "Jul"},
			{Name: "August", Abbr: "Aug"},
			{
				Name: "September", Abbr: "Sep",
				ExtraAbbr: []string{"Sept"},
			},
			{Name: "Oktober", Abbr: "Okt"},
			{Name: "November", Abbr: "Nov"},
			{Name: "Dezember", Abbr: "Dez"},
		}

		for idx, m := range months {
			months[idx] = prepareMonth(m)
		}

		return months
	}(),
	Days: func() [7]zytdata.DayInfo {
		days := [7]zytdata.DayInfo{
			{
				Name:      "Montag",
				Abbr:      "Mo",
				ExtraAbbr: []string{"Mon"},
			},
			{
				Name:      "Dienstag",
				Abbr:      "Di",
				ExtraAbbr: []string{"Die"},
			},
			{
				Name:      "Mittwoch",
				Abbr:      "Mi",
				ExtraAbbr: []string{"Mit", "Mittw"},
			},
			{
				Name:      "Donnerstag",
				Abbr:      "Do",
				ExtraAbbr: []string{"Don"},
			},
			{
				Name:      "Freitag",
				Abbr:      "Fr",
				ExtraAbbr: []string{"Fre"},
			},
			{
				Name:      "Samstag",
				Abbr:      "Sa",
				ExtraAbbr: []string{"Sam"},
			},
			{
				Name:      "Sonntag",
				Abbr:      "So",
				ExtraAbbr: []string{"Son"},
			},
		}

		for idx, d := range days {
			days[idx] = prepareDay(d)
		}

		return days
	}(),
	AmPm: zytdata.AmPmInfo{
		AM:      "vorm.",
		PM:      "nachm.",
		ExtraAM: []string{"am", "a.m.", "vorm"},
		ExtraPM: []string{"pm", "p.m.", "nachm"},
	},
}

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL