mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-15 04:18:01 +00:00
7b5135e637
* fix(adminAPI): localisation of event types, aggregate types * fix(adminAPI): validations of ListEvent request * implement caching of editor user information
22 lines
517 B
Go
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}
|
|
}
|