ianmartorell / meteor-accounts-ui-bootstrap-3

accounts-ui package with Bootstrap 3 and localization support
150 stars 109 forks source link

Ability to map language to Custom signup options #180

Open cshanejennings opened 8 years ago

cshanejennings commented 8 years ago

Given I can create a custom signup option with the following:

Accounts.ui.config({
    requestPermissions: {},
    extraSignupFields: [{
        fieldName: 'mySignupProperty',
        fieldLabel: 'My Signup Property',
        inputType: 'text',
        visible: true,
        validate: function(value, errorFunction) {
          if (!value) {
            errorFunction("Please enter your sign up property");
            return false;
          } else {
            return true;
          }
        }
    }]
});

Is it possible to map multiple languages to the fieldLabel and error message?