Translation key string (e.g., "plugin.action.title").
Optionalcallback: (Optional interpolation function applied during translation lookup.
Returns the translation key name.
Sets the translation key name.
Translation key (e.g., "plugin.menu.question").
Returns the optional interpolation callback, or undefined if not set.
Sets the optional interpolation callback applied during translation lookup.
Function receiving translated value and translate helper.
Returns the translated value of this label. Applies the optional interpolation callback if configured.
Optionallanguage: stringOptional language override.
Serialises the label to a plain JSON object with translation key and current value.
Creates a new Label for translations.