Updated translations

This commit is contained in:
vjrj 2017-12-21 11:36:00 +01:00
parent e3eddd6b85
commit 91b4197b04
5 changed files with 68 additions and 7 deletions

View file

@ -36,7 +36,7 @@ const schemaUser = new SimpleSchema({
emails: {
type: Array,
min: 1,
label() { return i18n.t('Lista de emails de contacto'); },
// label() { return i18n.t('Lista de emails de contacto'); },
// For accounts-password, either emails or username is required,
// but not both.
// It is OK to make this optional here because the accounts-password

View file

@ -1,5 +1,6 @@
import { Meteor } from 'meteor/meteor';
import { check } from 'meteor/check';
import i18n from 'i18next';
import getPrivateFile from '../../../modules/server/get-private-file';
import parseMarkdown from '../../../modules/parse-markdown';
@ -8,4 +9,11 @@ Meteor.methods({
check(fileName, String);
return parseMarkdown(getPrivateFile(`pages/${fileName}.md`));
},
'utility.saveMissingI18n': function saveMissing(key, value) {
check(key, String);
check(value, String);
if (!Meteor.isProduction) {
i18n.t(key, value);
}
}
});