auth/catalog_gen.go

81 lines
2.3 KiB
Go
Raw Normal View History

2021-12-29 21:23:20 +00:00
// Code generated by running "go generate" in golang.org/x/text. DO NOT EDIT.
package main
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, ok := messageKeyToIndex[key]
if !ok {
return "", false
}
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},
"ru": &dictionary{index: ruIndex, data: ruData},
}
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{
"Allow": 4,
"Authorize %s": 0,
"Authorize application": 1,
"Choose your scopes": 2,
"Deny": 3,
2022-01-31 16:15:38 +00:00
"Error": 5,
"How do I fix it?": 6,
"Recipient": 9,
"Resource": 10,
"Send": 11,
"Sign In": 7,
"TicketAuth": 8,
2021-12-29 21:23:20 +00:00
}
2022-01-31 16:15:38 +00:00
var enIndex = []uint32{ // 13 elements
0x00000000, 0x00000010, 0x00000026, 0x00000039,
2022-01-31 16:15:38 +00:00
0x0000003e, 0x00000044, 0x0000004a, 0x0000005b,
0x00000063, 0x0000006e, 0x00000078, 0x00000081,
0x00000086,
} // Size: 76 bytes
2021-12-29 21:23:20 +00:00
2022-01-31 16:15:38 +00:00
const enData string = "" + // Size: 134 bytes
"\x02Authorize %[1]s\x02Authorize application\x02Choose your scopes\x02De" +
2022-01-31 16:15:38 +00:00
"ny\x02Allow\x02Error\x02How do I fix it?\x02Sign In\x02TicketAuth\x02Rec" +
"ipient\x02Resource\x02Send"
2021-12-29 21:23:20 +00:00
2022-01-31 16:15:38 +00:00
var ruIndex = []uint32{ // 13 elements
0x00000000, 0x0000001f, 0x0000004d, 0x0000008e,
2022-02-01 17:36:39 +00:00
0x0000009f, 0x000000b2, 0x000000bf, 0x000000e1,
0x000000ec, 0x000000f7, 0x0000010c, 0x00000119,
0x0000012c,
2022-01-31 16:15:38 +00:00
} // Size: 76 bytes
2021-12-29 21:23:20 +00:00
2022-02-01 17:36:39 +00:00
const ruData string = "" + // Size: 300 bytes
"\x02Авторизовать %[1]s\x02Авторизовать приложение\x02Выбери предоставляе" +
2022-02-01 17:36:39 +00:00
"мые разрешения\x02Отказать\x02Разрешить\x02Ошибка\x02Как исправить это?" +
"\x02Войти\x02TicketAuth\x02Получатель\x02Ресурс\x02Отправить"
2021-12-29 21:23:20 +00:00
2022-02-01 17:36:39 +00:00
// Total table size 586 bytes (0KiB); checksum: D0ACA2B7