{"action":"created","issue":{"url":"https://api.github.com/repos/bpmn-io/bpmn-js/issues/475","repository_url":"https://api.github.com/repos/bpmn-io/bpmn-js","labels_url":"https://api.github.com/repos/bpmn-io/bpmn-js/issues/475/labels{/name}","comments_url":"https://api.github.com/repos/bpmn-io/bpmn-js/issues/475/comments","events_url":"https://api.github.com/repos/bpmn-io/bpmn-js/issues/475/events","html_url":"https://github.com/bpmn-io/bpmn-js/pull/475","id":136256590,"number":475,"title":"feat(i18n): Localization with the i18next library.","user":{"login":"davcs86","id":1994615,"avatar_url":"https://avatars.githubusercontent.com/u/1994615?v=3","gravatar_id":"","url":"https://api.github.com/users/davcs86","html_url":"https://github.com/davcs86","followers_url":"https://api.github.com/users/davcs86/followers","following_url":"https://api.github.com/users/davcs86/following{/other_user}","gists_url":"https://api.github.com/users/davcs86/gists{/gist_id}","starred_url":"https://api.github.com/users/davcs86/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davcs86/subscriptions","organizations_url":"https://api.github.com/users/davcs86/orgs","repos_url":"https://api.github.com/users/davcs86/repos","events_url":"https://api.github.com/users/davcs86/events{/privacy}","received_events_url":"https://api.github.com/users/davcs86/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/bpmn-io/bpmn-js/labels/needs%20review","name":"needs review","color":"fef2c0"}],"state":"open","locked":false,"assignee":{"login":"nikku","id":58601,"avatar_url":"https://avatars.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},"milestone":null,"comments":13,"created_at":"2016-02-25T02:30:41Z","updated_at":"2016-03-10T09:29:30Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/bpmn-io/bpmn-js/pulls/475","html_url":"https://github.com/bpmn-io/bpmn-js/pull/475","diff_url":"https://github.com/bpmn-io/bpmn-js/pull/475.diff","patch_url":"https://github.com/bpmn-io/bpmn-js/pull/475.patch"},"body":"Adds multi-language support to bpmn-js using the [i18next](http://i18next.com/) library (looking to solve #466)\r\n\r\nIt exposes an i18next instance through di.\r\n\r\n```\r\n// load the translation\r\nmodeler.get('i18n').addResourceBundle('es-MX', 'translation', {'Remove': 'Eliminar'});\r\n// change the language\r\nmodeler.get('i18n').changeLanguage('es-MX');\r\n```\r\n\r\nNotes:\r\n\r\n- i18next API details [here](http://i18next.com/docs/api/).\r\n- Tests [here](https://github.com/davcs86/bpmn-js/blob/i18n/test/spec/features/i18n/I18nSpec.js#L9).\r\n- Default settings [here](https://github.com/davcs86/bpmn-js/blob/i18n/lib/features/i18n/DefaultOptions.js#L1).\r\n- Translation function in modules: `i18n.t('key')`, after inject the dependence `i18n`, here an [example](https://github.com/davcs86/bpmn-js/blob/i18n/lib/features/palette/PaletteProvider.js#L8)."},"comment":{"url":"https://api.github.com/repos/bpmn-io/bpmn-js/issues/comments/194752162","html_url":"https://github.com/bpmn-io/bpmn-js/pull/475#issuecomment-194752162","issue_url":"https://api.github.com/repos/bpmn-io/bpmn-js/issues/475","id":194752162,"user":{"login":"nikku","id":58601,"avatar_url":"https://avatars.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},"created_at":"2016-03-10T09:29:30Z","updated_at":"2016-03-10T09:29:30Z","body":"We are going to look into this PR again and merge it soon. \r\n\r\nThe next bpmn-js release will ship with localization support. @davcs86 Thanks again for contributing."}}