TOptions

interface TOptions(source)

Properties

Link copied to clipboard
abstract var args: ReadonlyArray<JsAny>?

The arguments to be used in the localized string. As an array, the index of the argument is used to match the template placeholder in the localized string. As a Record, the key is used to match the template placeholder in the localized string.

Link copied to clipboard
abstract var comment: JsAny

A comment to help translators understand the context of the message.

Link copied to clipboard
abstract var message: String

The message to localize. If options.args is an array, this message supports index templating where strings like {0} and {1} are replaced by the item at that index in the options.args array. If args is a Record<string, any>, this supports named templating where strings like {foo} and {bar} are replaced by the value in the Record for that key (foo, bar, etc).