Skip to content

Commit 1fd0b70

Browse files
Change settings key from localization to msgfmt
1 parent f70d8b9 commit 1fd0b70

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ There's an issue with the inject-initial package under Cordova which causes info
9797
{
9898
"public": {
9999
...,
100-
"localization": {
100+
"msgfmt": {
101101
"native": "en",
102102
"locales": ["en", "fr"]
103103
}

msgfmt:core/lib/mfPkg/messageformat-client.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -403,10 +403,10 @@ if (injected) {
403403
log.debug('Injected object was undefined, this is most likely a Cordova session');
404404
mfPkg.timestamps = {};
405405
var time = (new Date()).getTime();
406-
if (Meteor.settings && Meteor.settings.public && Meteor.settings.public.localization) {
407-
var localization = Meteor.settings.public.localization;
408-
mfPkg.native = localization.native;
409-
_.each(localization.locales, function(locale) {
406+
if (Meteor.settings && Meteor.settings.public && Meteor.settings.public.msgfmt) {
407+
var msgfmtSettings = Meteor.settings.public.msgfmt;
408+
mfPkg.native = msgfmtSettings.native;
409+
_.each(msgfmtSettings.locales, function(locale) {
410410
mfPkg.timestamps[locale] = time;
411411
});
412412
} else {

0 commit comments

Comments
 (0)