{"action":"created","issue":{"url":"https://api.github.com/repos/ansman/validate.js/issues/74","labels_url":"https://api.github.com/repos/ansman/validate.js/issues/74/labels{/name}","comments_url":"https://api.github.com/repos/ansman/validate.js/issues/74/comments","events_url":"https://api.github.com/repos/ansman/validate.js/issues/74/events","html_url":"https://github.com/ansman/validate.js/issues/74","id":109366744,"number":74,"title":"Internationalisation (i18n, multi-language support)","user":{"login":"jakubrohleder","id":6818563,"avatar_url":"https://avatars.githubusercontent.com/u/6818563?v=3","gravatar_id":"","url":"https://api.github.com/users/jakubrohleder","html_url":"https://github.com/jakubrohleder","followers_url":"https://api.github.com/users/jakubrohleder/followers","following_url":"https://api.github.com/users/jakubrohleder/following{/other_user}","gists_url":"https://api.github.com/users/jakubrohleder/gists{/gist_id}","starred_url":"https://api.github.com/users/jakubrohleder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jakubrohleder/subscriptions","organizations_url":"https://api.github.com/users/jakubrohleder/orgs","repos_url":"https://api.github.com/users/jakubrohleder/repos","events_url":"https://api.github.com/users/jakubrohleder/events{/privacy}","received_events_url":"https://api.github.com/users/jakubrohleder/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-01T19:29:16Z","updated_at":"2015-10-05T17:42:51Z","closed_at":null,"body":"First of all I real like the library approach that makes it useable for multiple frameworks. The one option I real miss is some kind multi-language support. Have you thought about adding these feature? \r\n\r\nI think the simples and sufficient fix would be to add option that turns messages into codes (like `'VALIDATEJS.ERROR.REQUIRED'`). So people can handle translation on their own. What do you think about such improvement?\r\n\r\nPs. sorry for weird title but I want the topic to be easy to find for others."},"comment":{"url":"https://api.github.com/repos/ansman/validate.js/issues/comments/145609665","html_url":"https://github.com/ansman/validate.js/issues/74#issuecomment-145609665","issue_url":"https://api.github.com/repos/ansman/validate.js/issues/74","id":145609665,"user":{"login":"ansman","id":102883,"avatar_url":"https://avatars.githubusercontent.com/u/102883?v=3","gravatar_id":"","url":"https://api.github.com/users/ansman","html_url":"https://github.com/ansman","followers_url":"https://api.github.com/users/ansman/followers","following_url":"https://api.github.com/users/ansman/following{/other_user}","gists_url":"https://api.github.com/users/ansman/gists{/gist_id}","starred_url":"https://api.github.com/users/ansman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ansman/subscriptions","organizations_url":"https://api.github.com/users/ansman/orgs","repos_url":"https://api.github.com/users/ansman/repos","events_url":"https://api.github.com/users/ansman/events{/privacy}","received_events_url":"https://api.github.com/users/ansman/received_events","type":"User","site_admin":false},"created_at":"2015-10-05T17:42:51Z","updated_at":"2015-10-05T17:42:51Z","body":"i18n is definitely something that is lacking in this library.\r\nWhat you describe is already possible actually.\r\n\r\nAll included validators support overwriting the default options.\r\nSo you could do this:\r\n```javascript\r\nvalidate.validators.presence.options = {\r\n  message: \"VALIDATEJS.ERROR.REQUIRED\"\r\n};\r\nvalidate.options = {fullMessages: false};\r\nvalidate({}, {name: {presence: true}});\r\n// => {\"name\": [\"VALIDATEJS.ERROR.REQUIRED\"]}\r\n```\r\n\r\nBut if you have a concrete suggestion I'd be happy to consider it!"}}