Save missing fallback

This commit is contained in:
vjrj 2018-02-12 13:06:06 +01:00
parent cd80d72e32
commit 966b2d56b9
2 changed files with 4 additions and 4 deletions

View file

@ -53,11 +53,10 @@ i18nOpts.react = {
nsMode: 'default' */
};
const sendMissing = Meteor.isDevelopment;
if (sendMissing && !Meteor.isProduction) {
const sendMissing = false; // Meteor.isDevelopment;
if (sendMissing && Meteor.isDevelopment) {
i18nOpts.sendMissing = true;
i18nOpts.sendMissingTo = 'fallback';
i18nOpts.missingKeyHandler = function miss(lng, ns, key, defaultValue, lngs) {
i18nOpts.missingKeyHandler = function miss(lng, ns, key, defaultValue) {
Meteor.call('utility.saveMissingI18n', key, defaultValue);
};
}