func (c *Context) TranslationTable() *table.Table { if !c.hasTranslations { c.translations = table.Get(c.Language()) c.hasTranslations = true } return c.translations }
func getTable(lang Languager) *table.Table { if lang == nil { return nil } if tabler, ok := lang.(Tabler); ok { return tabler.TranslationTable() } return table.Get(lang.Language()) }