Message
The internationalization message interface. A message that implements this interface can be passed to the t()
function
to be translated to the target UI language.
Properties
-
id : string | undefined
readonlymodule:utils/translation-service~Message#id
The message ID. If passed, the message ID is taken from this property instead of the
message.string
. This property is useful when various messages share the same message string, for example, theeditor
string inin the editor
andmy editor
sentences. -
plural : string | undefined
readonlymodule:utils/translation-service~Message#plural
The plural form of the message. This property should be skipped when a message is not supposed to support plural forms. Otherwise it should always be set to a string with the English plural form of the message.
-
string : string
readonlymodule:utils/translation-service~Message#string
The message string to translate. Acts as a default translation if the translation for a given language is not defined. When the message is supposed to support plural forms, the string should be the English singular form of the message.