// Generated by CoffeeScript 1.12.5
var validations;

import {
  validatePresence,
  validateFormat
} from 'ember-changeset-validations/validators';

import buildMessage from 'ember-changeset-validations/utils/validation-errors';

validations = {
  nickname: validatePresence({
    presence: true,
    message: function(key, type) {
      return buildMessage(t("attributes.user." + key), {
        type: type
      });
    }
  }),
  email: validateFormat({
    type: 'email',
    message: function(key, type) {
      return buildMessage(t("attributes.user." + key), {
        type: type
      });
    }
  })
};

export default validations;
