// Example  of resources generated by the server
loom.messages = {
  lang: 'en',
  "loom.conversion.numberFailed": "The value of ${propertyName} is not a valid number",
  "loom.conversion.dateFailed": "The value of ${propertyName} is not a valid date",
  "loom.conversion.timeFailed" : "The value of ${propertyName} is not a valid time",

  "loom.validation.dateMinFailed": "The value of ${propertyName} is smaller than the minimum allowed (${validator.minValue.date})",
  "loom.validation.dateMaxFailed": "The value of ${propertyName} is bigger than the maximum allowed (${validator.maxValue.date})",
  "loom.validation.emailFailed": "The value of ${propertyName} is not valid",
  "loom.validation.equalsFailed": "The values of ${property1} and ${property2} are different",
  "loom.validation.generic": "The value of ${propertyName} is not valid",
  "loom.validation.minLengthFailed": "The value of ${propertyName} is shorter (${length}) than the minimum allowed value of ${validator.minLength}", 
  "loom.validation.maxLengthFailed": "The value of ${propertyName} is longer (${length}) than the maximum allowed value of ${validator.maxLength}",
  "loom.validation.maskFailed": "The value of ${propertyName} does not conform with the expected format",
  "loom.validation.numberMinFailed": "The value of ${propertyName} is smaller than the minimum allowed (${validator.minValue})",
  "loom.validation.numberMaxFailed": "The value of ${propertyName} is bigger than the maximum allowed (${validator.maxValue})",
  "loom.validation.fileSizeTooLarge": "The size of '${value.filename}' is too large. Maximum size is ${interceptor.maxFileSize / 1024} kb",
  "loom.validation.fileNameFailed": "The file name of '${value.filename}' is not a valid file name.",
  "loom.validation.precisionFailed": "The value of ${propertyName} has more digits than the maximum allowed (${validator.precision})",
  "loom.validation.requiredFailed": "${propertyName} is required",
  "loom.validation.requiredCollectionFailed": "${propertyName} cannot be empty",
  "loom.validation.scaleFailed": "The value of ${propertyName}: ${value} has more decimal digits than the maximum allowed (${validator.scale})",

  "loom.persistence.entityNotFound": "Could not find ${entityName} instance with key ${exception.entityId}",
  "loom.persistence.optimisticLock": "Instance of ${entityName} has been modified by another user and cannot be updated. Your version: ${exception.newVersion}, the database version: ${exception.dbVersion}",
  "loom.persistence.removeEntity": "Instance of ${entityName} with key ${exception.entityId} could not be removed.",
  "loom.persistence.autocompletedEntityNotFound": "Could not find ${propertyName} instance '${value}'",
  "loom.persistence.multipleAutocompletedEntityNotFound": "Could not find the following instances: ${wrongValues}",

  "loom.format.number": /^-?(((\d{1,3})(\,\d{3})*)|(\d+))(\.\d+)?$/,
  "loom.format.jsDate": "%d/%m/%Y",
  "loom.format.jsDateTime": "%d/%m/%Y %H:%M:%S",
  "loom.format.decimal": "#,###.##",
  "loom.format.decimalSeparator": ".",
  "loom.format.groupingSeparator": ",",
  
  // calendar strings
  "loom.format.dayNames": "Sunday Monday Tuesday Wednesday Thursday Friday Saturday",
  "loom.format.shortDayNames": "Sun Mon Tue Wed Thu Fri Sat",
  "loom.format.dayFirstChar": "S M T W T F S",
  "loom.format.monthNames": "January February March April May June July August September October November December",
  "loom.format.shortMonthNames": "Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec",
  "loom.format.timeUnitNames": "days hours minutes seconds",

  "loom.ui.calendar.today": "Today",
  "loom.ui.calendar.timeTitle": "Time",
  "loom.ui.calendar.exactMinutes": "Exact minutes:",
  "loom.ui.calendar.firstDayInWeek": "1",
  "loom.ui.calendar.selectDate" : "Select date",
  
  "loom.format.past.seconds": "Less than one minute ago",
  "loom.format.past.minutes": "${period.minutes} minutes ago",
  "loom.format.past.hours": "${period.hours} hours ago",
  "loom.format.past.days": "${period.days} days ago",
  "loom.format.past.weeks": "${period.weeks} weeks ago",
  "loom.format.past.months": "${period.months} months ago",
  "loom.format.past.years": "${period.years} years ago",
  "loom.format.future.seconds": "In less than one minute",
  "loom.format.future.minutes": "In ${period.minutes} minutes",
  "loom.format.future.hours": "In ${period.hours} hours",
  "loom.format.future.days": "In ${period.days} days",
  "loom.format.future.weeks": "In ${period.weeks} weeks",
  "loom.format.future.months": "In ${period.months} months",
  "loom.format.future.years": "In ${period.years} years"
  
}