// Code generated by running "go generate" in golang.org/x/text. DO NOT EDIT. package ui import ( "golang.org/x/text/language" "golang.org/x/text/message" "golang.org/x/text/message/catalog" ) type dictionary struct { index []uint32 data string } func (d *dictionary) Lookup(key string) (data string, ok bool) { p := messageKeyToIndex[key] start, end := d.index[p], d.index[p+1] if start == end { return "", false } return d.data[start:end], true } func init() { dict := map[string]catalog.Dictionary{ "en": &dictionary{index: enIndex, data: enData}, "fr": &dictionary{index: frIndex, data: frData}, } fallback := language.MustParse("en") cat, err := catalog.NewFromMap(dict, catalog.Fallback(fallback)) if err != nil { panic(err) } message.DefaultCatalog = cat } var messageKeyToIndex = map[string]int{ "On Post": 0, } var enIndex = []uint32{ // 2 elements 0x00000000, 0x00000008, } // Size: 32 bytes const enData string = "\x02On Post" var frIndex = []uint32{ // 2 elements 0x00000000, 0x00000000, } // Size: 32 bytes const frData string = "" // Total table size 72 bytes (0KiB); checksum: B4FE2088