zitadel/pkg/grpc/message/message.go
Silvan 7b5135e637
fix(adminAPI): localize event type (#5059)
* fix(adminAPI): localisation of event types, aggregate types
* fix(adminAPI): validations of ListEvent request
* implement caching of editor user information
2023-01-19 15:50:05 +00:00

22 lines
517 B
Go

package message
func (m *LocalizedMessage) LocalizationKey() string {
return m.Key
}
func (m *LocalizedMessage) SetLocalizedMessage(message string) {
m.LocalizedMessage = message
}
func NewLocalizedEventType(key string) *LocalizedMessage {
return &LocalizedMessage{Key: "EventTypes." + key}
}
func NewLocalizedAggregateType(key string) *LocalizedMessage {
return &LocalizedMessage{Key: "AggregateTypes." + key}
}
func NewLocalizedMessage(key string) *LocalizedMessage {
return &LocalizedMessage{Key: key}
}