package templates import ( "strings" "git.thomasvoss.com/euro-cash.eu/i18n" ) templ Root(head, body templ.Component) { {{ p := ctx.Value("printer").(i18n.Printer) }} Euro Cash if head != nil { @head } if body != nil { @body } } templ Index() { {{ p := ctx.Value("printer").(i18n.Printer) }}
@navbar()

{ p.T("The Euro Cash Compendium") }

{ p.T("United in") } { p.T("diversity") } { p.T("cash") }

{ p.T("Welcome to the Euro Cash Compendium. This sites aims to be a resource for you to discover everything there is to know about the coins and banknotes of the Euro, a currency that spans 26 countries and 350 million people. We also have dedicated sections of the site for collectors.") }

} templ SetLanguage() { {{ p := ctx.Value("printer").(i18n.Printer) }}
@navbar()

{ p.T("Select Your Language") }

{ p.T("Select your preferred language to use on the site.") }

If you are an American user, it’s suggested that you select American English instead of British English. This will ensure that dates will be formatted with the month before the day.


{ p.T("Eurozone Languages") }

@languageGrid(true)

{ p.T("Other Languages") }

@languageGrid(false)
} templ languageGrid(eurozone bool) {
for _, loc := range i18n.Locales { if loc.Eurozone == eurozone { } }
}