Load message data for the default (or instance) locale.
locale
Locale string.
messageData
JSON object with message data;
You can use the static method Globalize.loadMessages()
, which uses the default
locale.
Globalize.locale( "pt_BR" );
Globalize.loadMessages({
greetings: {
hello: "Olá",
bye: "Tchau"
}
});
You can use the instance method .loadMessages()
, which uses the instance locale.
var ptBr = new Globalize( "pt-BR" );
ptBr.loadMessages({
greetings: {
hello: "Olá",
bye: "Tchau"
}
});