lykmapipo / sails-hook-validation

Custom validation error messages for sails model with i18n support
104 stars 29 forks source link

Access i18n from model validations #12

Closed Rafkraft closed 9 years ago

Rafkraft commented 9 years ago

Hi

Thanks very much for this add-on , it was very much needed.

Could you telle me how to access i18n variables from the model validations ?

Thank you

lykmapipo commented 9 years ago

@Rafkraft

Currently sails-hook-validation does not hook to sails i18n. It assume developer can handle it.

But am on the way to implement the hook to sails i18n.

Am accepting suggestions.

Rafkraft commented 9 years ago

ok thanks :)

lykmapipo commented 9 years ago

@Rafkraft

i18n support on the way. Next release will have it. Thanks for the push.

lykmapipo commented 9 years ago

@Rafkraft

v0.3.0 with support to i18n have been published to npm

Rafkraft commented 9 years ago

nice ! thanks very much !