{"action":"created","comment":{"url":"https://api.github.com/repos/bpmn-io/dmn-js/pulls/comments/112458576","pull_request_review_id":33774552,"id":112458576,"diff_hunk":"@@ -1,18 +1,18 @@\n <div>\n-  <h4>Edit Date Condition</h4>\n+  <h4>{{ translate('Edit Date Condition') }}</h4>\n   <select class=\"dateEdit-type-dropdown\">\n-    <option value=\"exact\">Exactly</option>\n-    <option value=\"before\">Before</option>\n-    <option value=\"after\">After</option>\n-    <option value=\"between\">Between</option>\n+    <option value=\"exact\">{{ translate('Exactly') }}</option>","path":"lib/table/features/date-edit/template-input.html","position":9,"original_position":9,"commit_id":"ffc0831f88582ee0bb889a7becae6873082a957c","original_commit_id":"ffc0831f88582ee0bb889a7becae6873082a957c","user":{"login":"nikku","id":58601,"avatar_url":"https://avatars1.githubusercontent.com/u/58601?v=3","gravatar_id":"","url":"https://api.github.com/users/nikku","html_url":"https://github.com/nikku","followers_url":"https://api.github.com/users/nikku/followers","following_url":"https://api.github.com/users/nikku/following{/other_user}","gists_url":"https://api.github.com/users/nikku/gists{/gist_id}","starred_url":"https://api.github.com/users/nikku/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nikku/subscriptions","organizations_url":"https://api.github.com/users/nikku/orgs","repos_url":"https://api.github.com/users/nikku/repos","events_url":"https://api.github.com/users/nikku/events{/privacy}","received_events_url":"https://api.github.com/users/nikku/received_events","type":"User","site_admin":false},"body":"Please remove the `translate(` + `)` parts here and invoke translate from DateEdit.js.","created_at":"2017-04-20T13:52:50Z","updated_at":"2017-04-20T13:52:50Z","html_url":"https://github.com/bpmn-io/dmn-js/pull/207#discussion_r112458576","pull_request_url":"https://api.github.com/repos/bpmn-io/dmn-js/pulls/207","_links":{"self":{"href":"https://api.github.com/repos/bpmn-io/dmn-js/pulls/comments/112458576"},"html":{"href":"https://github.com/bpmn-io/dmn-js/pull/207#discussion_r112458576"},"pull_request":{"href":"https://api.github.com/repos/bpmn-io/dmn-js/pulls/207"}}},"pull_request":{"url":"https://api.github.com/repos/bpmn-io/dmn-js/pulls/207","id":115487815,"html_url":"https://github.com/bpmn-io/dmn-js/pull/207","diff_url":"https://github.com/bpmn-io/dmn-js/pull/207.diff","patch_url":"https://github.com/bpmn-io/dmn-js/pull/207.patch","issue_url":"https://api.github.com/repos/bpmn-io/dmn-js/issues/207","number":207,"state":"open","locked":false,"title":"Add I18n support to dmn-js","user":{"login":"iamfat","id":724105,"avatar_url":"https://avatars1.githubusercontent.com/u/724105?v=3","gravatar_id":"","url":"https://api.github.com/users/iamfat","html_url":"https://github.com/iamfat","followers_url":"https://api.github.com/users/iamfat/followers","following_url":"https://api.github.com/users/iamfat/following{/other_user}","gists_url":"https://api.github.com/users/iamfat/gists{/gist_id}","starred_url":"https://api.github.com/users/iamfat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iamfat/subscriptions","organizations_url":"https://api.github.com/users/iamfat/orgs","repos_url":"https://api.github.com/users/iamfat/repos","events_url":"https://api.github.com/users/iamfat/events{/privacy}","received_events_url":"https://api.github.com/users/iamfat/received_events","type":"User","site_admin":false},"body":"Use the same mechanism of bpmn-js. People can customize translate function and load language file.\r\n\r\n```javascript\r\nimport Modeler from 'dmn-js/lib/Modeler'\r\nimport translations from '@/i18n/zh.js'\r\n\r\nvar translateProvider = {\r\n  translate: [ 'value', (template, replacements) => {\r\n    replacements = replacements || {}\r\n    // Translate\r\n    template = translations[template] || template\r\n\r\n    // Replace\r\n    return template.replace(/{([^}]+)}/g, (_, key) => {\r\n      return replacements[key] || '{' + key + '}'\r\n    })\r\n  }]\r\n}\r\n\r\nvar modeler = new Modeler({\r\n  additionalModules: [\r\n    translateProvider\r\n  ],\r\n  table: {\r\n    additionalModules: [\r\n      translateProvider\r\n    ]\r\n  },\r\n  disableDrdInteraction: true,\r\n  container: '#dmn-container'\r\n})\r\n\r\n```","created_at":"2017-04-12T08:24:25Z","updated_at":"2017-04-20T13:52:50Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f9e13cb49aa754652ed1ee72f92b7d5157c06e3a","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/bpmn-io/dmn-js/pulls/207/commits","review_comments_url":"https://api.github.com/repos/bpmn-io/dmn-js/pulls/207/comments","review_comment_url":"https://api.github.com/repos/bpmn-io/dmn-js/pulls/comments{/number}","comments_url":"https://api.github.com/repos/bpmn-io/dmn-js/issues/207/comments","statuses_url":"https://api.github.com/repos/bpmn-io/dmn-js/statuses/ffc0831f88582ee0bb889a7becae6873082a957c","head":{"label":"iamfat:master","ref":"master","sha":"ffc0831f88582ee0bb889a7becae6873082a957c","user":{"login":"iamfat","id":724105,"avatar_url":"https://avatars1.githubusercontent.com/u/724105?v=3","gravatar_id":"","url":"https://api.github.com/users/iamfat","html_url":"https://github.com/iamfat","followers_url":"https://api.github.com/users/iamfat/followers","following_url":"https://api.github.com/users/iamfat/following{/other_user}","gists_url":"https://api.github.com/users/iamfat/gists{/gist_id}","starred_url":"https://api.github.com/users/iamfat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iamfat/subscriptions","organizations_url":"https://api.github.com/users/iamfat/orgs","repos_url":"https://api.github.com/users/iamfat/repos","events_url":"https://api.github.com/users/iamfat/events{/privacy}","received_events_url":"https://api.github.com/users/iamfat/received_events","type":"User","site_admin":false},"repo":{"id":87772662,"name":"dmn-js","full_name":"iamfat/dmn-js","owner":{"login":"iamfat","id":724105,"avatar_url":"https://avatars1.githubusercontent.com/u/724105?v=3","gravatar_id":"","url":"https://api.github.com/users/iamfat","html_url":"https://github.com/iamfat","followers_url":"https://api.github.com/users/iamfat/followers","following_url":"https://api.github.com/users/iamfat/following{/other_user}","gists_url":"https://api.github.com/users/iamfat/gists{/gist_id}","starred_url":"https://api.github.com/users/iamfat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iamfat/subscriptions","organizations_url":"https://api.github.com/users/iamfat/orgs","repos_url":"https://api.github.com/users/iamfat/repos","events_url":"https://api.github.com/users/iamfat/events{/privacy}","received_events_url":"https://api.github.com/users/iamfat/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/iamfat/dmn-js","description":"A DMN 1.1 table viewer and editor.","fork":true,"url":"https://api.github.com/repos/iamfat/dmn-js","forks_url":"https://api.github.com/repos/iamfat/dmn-js/forks","keys_url":"https://api.github.com/repos/iamfat/dmn-js/keys{/key_id}","collaborators_url":"https://api.github.com/repos/iamfat/dmn-js/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/iamfat/dmn-js/teams","hooks_url":"https://api.github.com/repos/iamfat/dmn-js/hooks","issue_events_url":"https://api.github.com/repos/iamfat/dmn-js/issues/events{/number}","events_url":"https://api.github.com/repos/iamfat/dmn-js/events","assignees_url":"https://api.github.com/repos/iamfat/dmn-js/assignees{/user}","branches_url":"https://api.github.com/repos/iamfat/dmn-js/branches{/branch}","tags_url":"https://api.github.com/repos/iamfat/dmn-js/tags","blobs_url":"https://api.github.com/repos/iamfat/dmn-js/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/iamfat/dmn-js/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/iamfat/dmn-js/git/refs{/sha}","trees_url":"https://api.github.com/repos/iamfat/dmn-js/git/trees{/sha}","statuses_url":"https://api.github.com/repos/iamfat/dmn-js/statuses/{sha}","languages_url":"https://api.github.com/repos/iamfat/dmn-js/languages","stargazers_url":"https://api.github.com/repos/iamfat/dmn-js/stargazers","contributors_url":"https://api.github.com/repos/iamfat/dmn-js/contributors","subscribers_url":"https://api.github.com/repos/iamfat/dmn-js/subscribers","subscription_url":"https://api.github.com/repos/iamfat/dmn-js/subscription","commits_url":"https://api.github.com/repos/iamfat/dmn-js/commits{/sha}","git_commits_url":"https://api.github.com/repos/iamfat/dmn-js/git/commits{/sha}","comments_url":"https://api.github.com/repos/iamfat/dmn-js/comments{/number}","issue_comment_url":"https://api.github.com/repos/iamfat/dmn-js/issues/comments{/number}","contents_url":"https://api.github.com/repos/iamfat/dmn-js/contents/{+path}","compare_url":"https://api.github.com/repos/iamfat/dmn-js/compare/{base}...{head}","merges_url":"https://api.github.com/repos/iamfat/dmn-js/merges","archive_url":"https://api.github.com/repos/iamfat/dmn-js/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/iamfat/dmn-js/downloads","issues_url":"https://api.github.com/repos/iamfat/dmn-js/issues{/number}","pulls_url":"https://api.github.com/repos/iamfat/dmn-js/pulls{/number}","milestones_url":"https://api.github.com/repos/iamfat/dmn-js/milestones{/number}","notifications_url":"https://api.github.com/repos/iamfat/dmn-js/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/iamfat/dmn-js/labels{/name}","releases_url":"https://api.github.com/repos/iamfat/dmn-js/releases{/id}","deployments_url":"https://api.github.com/repos/iamfat/dmn-js/deployments","created_at":"2017-04-10T06:05:38Z","updated_at":"2017-04-10T06:05:40Z","pushed_at":"2017-04-14T22:21:26Z","git_url":"git://github.com/iamfat/dmn-js.git","ssh_url":"git@github.com:iamfat/dmn-js.git","clone_url":"https://github.com/iamfat/dmn-js.git","svn_url":"https://github.com/iamfat/dmn-js","homepage":"https://bpmn.io/toolkit/dmn-js/","size":2420,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"bpmn-io:master","ref":"master","sha":"c4d539ca83cce78d75f1555ce4baa17c6130ded0","user":{"login":"bpmn-io","id":6481734,"avatar_url":"https://avatars3.githubusercontent.com/u/6481734?v=3","gravatar_id":"","url":"https://api.github.com/users/bpmn-io","html_url":"https://github.com/bpmn-io","followers_url":"https://api.github.com/users/bpmn-io/followers","following_url":"https://api.github.com/users/bpmn-io/following{/other_user}","gists_url":"https://api.github.com/users/bpmn-io/gists{/gist_id}","starred_url":"https://api.github.com/users/bpmn-io/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bpmn-io/subscriptions","organizations_url":"https://api.github.com/users/bpmn-io/orgs","repos_url":"https://api.github.com/users/bpmn-io/repos","events_url":"https://api.github.com/users/bpmn-io/events{/privacy}","received_events_url":"https://api.github.com/users/bpmn-io/received_events","type":"Organization","site_admin":false},"repo":{"id":36921499,"name":"dmn-js","full_name":"bpmn-io/dmn-js","owner":{"login":"bpmn-io","id":6481734,"avatar_url":"https://avatars3.githubusercontent.com/u/6481734?v=3","gravatar_id":"","url":"https://api.github.com/users/bpmn-io","html_url":"https://github.com/bpmn-io","followers_url":"https://api.github.com/users/bpmn-io/followers","following_url":"https://api.github.com/users/bpmn-io/following{/other_user}","gists_url":"https://api.github.com/users/bpmn-io/gists{/gist_id}","starred_url":"https://api.github.com/users/bpmn-io/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bpmn-io/subscriptions","organizations_url":"https://api.github.com/users/bpmn-io/orgs","repos_url":"https://api.github.com/users/bpmn-io/repos","events_url":"https://api.github.com/users/bpmn-io/events{/privacy}","received_events_url":"https://api.github.com/users/bpmn-io/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/bpmn-io/dmn-js","description":"A DMN 1.1 table viewer and editor.","fork":false,"url":"https://api.github.com/repos/bpmn-io/dmn-js","forks_url":"https://api.github.com/repos/bpmn-io/dmn-js/forks","keys_url":"https://api.github.com/repos/bpmn-io/dmn-js/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bpmn-io/dmn-js/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bpmn-io/dmn-js/teams","hooks_url":"https://api.github.com/repos/bpmn-io/dmn-js/hooks","issue_events_url":"https://api.github.com/repos/bpmn-io/dmn-js/issues/events{/number}","events_url":"https://api.github.com/repos/bpmn-io/dmn-js/events","assignees_url":"https://api.github.com/repos/bpmn-io/dmn-js/assignees{/user}","branches_url":"https://api.github.com/repos/bpmn-io/dmn-js/branches{/branch}","tags_url":"https://api.github.com/repos/bpmn-io/dmn-js/tags","blobs_url":"https://api.github.com/repos/bpmn-io/dmn-js/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bpmn-io/dmn-js/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bpmn-io/dmn-js/git/refs{/sha}","trees_url":"https://api.github.com/repos/bpmn-io/dmn-js/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bpmn-io/dmn-js/statuses/{sha}","languages_url":"https://api.github.com/repos/bpmn-io/dmn-js/languages","stargazers_url":"https://api.github.com/repos/bpmn-io/dmn-js/stargazers","contributors_url":"https://api.github.com/repos/bpmn-io/dmn-js/contributors","subscribers_url":"https://api.github.com/repos/bpmn-io/dmn-js/subscribers","subscription_url":"https://api.github.com/repos/bpmn-io/dmn-js/subscription","commits_url":"https://api.github.com/repos/bpmn-io/dmn-js/commits{/sha}","git_commits_url":"https://api.github.com/repos/bpmn-io/dmn-js/git/commits{/sha}","comments_url":"https://api.github.com/repos/bpmn-io/dmn-js/comments{/number}","issue_comment_url":"https://api.github.com/repos/bpmn-io/dmn-js/issues/comments{/number}","contents_url":"https://api.github.com/repos/bpmn-io/dmn-js/contents/{+path}","compare_url":"https://api.github.com/repos/bpmn-io/dmn-js/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bpmn-io/dmn-js/merges","archive_url":"https://api.github.com/repos/bpmn-io/dmn-js/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bpmn-io/dmn-js/downloads","issues_url":"https://api.github.com/repos/bpmn-io/dmn-js/issues{/number}","pulls_url":"https://api.github.com/repos/bpmn-io/dmn-js/pulls{/number}","milestones_url":"https://api.github.com/repos/bpmn-io/dmn-js/milestones{/number}","notifications_url":"https://api.github.com/repos/bpmn-io/dmn-js/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bpmn-io/dmn-js/labels{/name}","releases_url":"https://api.github.com/repos/bpmn-io/dmn-js/releases{/id}","deployments_url":"https://api.github.com/repos/bpmn-io/dmn-js/deployments","created_at":"2015-06-05T08:30:47Z","updated_at":"2017-04-10T06:05:31Z","pushed_at":"2017-04-19T09:20:36Z","git_url":"git://github.com/bpmn-io/dmn-js.git","ssh_url":"git@github.com:bpmn-io/dmn-js.git","clone_url":"https://github.com/bpmn-io/dmn-js.git","svn_url":"https://github.com/bpmn-io/dmn-js","homepage":"https://bpmn.io/toolkit/dmn-js/","size":2395,"stargazers_count":23,"watchers_count":23,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":13,"mirror_url":null,"open_issues_count":41,"forks":13,"open_issues":41,"watchers":23,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/bpmn-io/dmn-js/pulls/207"},"html":{"href":"https://github.com/bpmn-io/dmn-js/pull/207"},"issue":{"href":"https://api.github.com/repos/bpmn-io/dmn-js/issues/207"},"comments":{"href":"https://api.github.com/repos/bpmn-io/dmn-js/issues/207/comments"},"review_comments":{"href":"https://api.github.com/repos/bpmn-io/dmn-js/pulls/207/comments"},"review_comment":{"href":"https://api.github.com/repos/bpmn-io/dmn-js/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/bpmn-io/dmn-js/pulls/207/commits"},"statuses":{"href":"https://api.github.com/repos/bpmn-io/dmn-js/statuses/ffc0831f88582ee0bb889a7becae6873082a957c"}}}}
{"actor":{"display_login":"nikku"}}