Creates a new instance of LocalizerLocale.
name is the identifier of this object in Localizer.
messages is the map of messages.
messages are the messages of this locale.
Returns the message of the key or the key if the message is not found.
key is the key of the message.
args are the arguments of the message. This method uses sprintf to format the message.
Returns the message of the key or the default value if the message is not found.
key is the key of the message.
defaultValue is the default value if the message is not found.
args are the arguments of the message. This method uses sprintf to format the message.