{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/jest/issues/3337","repository_url":"https://api.github.com/repos/facebook/jest","labels_url":"https://api.github.com/repos/facebook/jest/issues/3337/labels{/name}","comments_url":"https://api.github.com/repos/facebook/jest/issues/3337/comments","events_url":"https://api.github.com/repos/facebook/jest/issues/3337/events","html_url":"https://github.com/facebook/jest/pull/3337","id":223211992,"number":3337,"title":"Add Localization Support for Jest Website","user":{"login":"ericnakagawa","id":23874,"avatar_url":"https://avatars3.githubusercontent.com/u/23874?v=3","gravatar_id":"","url":"https://api.github.com/users/ericnakagawa","html_url":"https://github.com/ericnakagawa","followers_url":"https://api.github.com/users/ericnakagawa/followers","following_url":"https://api.github.com/users/ericnakagawa/following{/other_user}","gists_url":"https://api.github.com/users/ericnakagawa/gists{/gist_id}","starred_url":"https://api.github.com/users/ericnakagawa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ericnakagawa/subscriptions","organizations_url":"https://api.github.com/users/ericnakagawa/orgs","repos_url":"https://api.github.com/users/ericnakagawa/repos","events_url":"https://api.github.com/users/ericnakagawa/events{/privacy}","received_events_url":"https://api.github.com/users/ericnakagawa/received_events","type":"User","site_admin":false},"labels":[{"id":196857093,"url":"https://api.github.com/repos/facebook/jest/labels/CLA%20Signed","name":"CLA Signed","color":"009900","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2017-04-20T21:53:35Z","updated_at":"2017-04-21T18:01:38Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/facebook/jest/pulls/3337","html_url":"https://github.com/facebook/jest/pull/3337","diff_url":"https://github.com/facebook/jest/pull/3337.diff","patch_url":"https://github.com/facebook/jest/pull/3337.patch"},"body":"**Summary**\r\n\r\nThis PR adds localization support for the Jest website. It adds a new dropdown on the website to allow selecting the desired language. Localization is provided by CrowdIn. Languages shall be synchronized in the CI build step.\r\n\r\nI have added a couple pre-processing steps: 1) strings were moved to /i18n/en.json to allow localization of string content on the landing page and from navigation. 2) I convert this json file into a .js file. These files are then included in SiteConfig.js and referenced throughout the localized pages.\r\n\r\nThe localized content is not stored in the repo. Instead, all localized content is stored on a public translation project in the [Jest Crowd In project](https://crowdin.com/project/jest).\r\n\r\nBy default, only English is supported. Languages can be enabled as more translations are contributed by editing website/languages.js and switching the desired language's `enabled` variable to `true`."},"comment":{"url":"https://api.github.com/repos/facebook/jest/issues/comments/296261509","html_url":"https://github.com/facebook/jest/pull/3337#issuecomment-296261509","issue_url":"https://api.github.com/repos/facebook/jest/issues/3337","id":296261509,"user":{"login":"ericnakagawa","id":23874,"avatar_url":"https://avatars3.githubusercontent.com/u/23874?v=3","gravatar_id":"","url":"https://api.github.com/users/ericnakagawa","html_url":"https://github.com/ericnakagawa","followers_url":"https://api.github.com/users/ericnakagawa/followers","following_url":"https://api.github.com/users/ericnakagawa/following{/other_user}","gists_url":"https://api.github.com/users/ericnakagawa/gists{/gist_id}","starred_url":"https://api.github.com/users/ericnakagawa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ericnakagawa/subscriptions","organizations_url":"https://api.github.com/users/ericnakagawa/orgs","repos_url":"https://api.github.com/users/ericnakagawa/repos","events_url":"https://api.github.com/users/ericnakagawa/events{/privacy}","received_events_url":"https://api.github.com/users/ericnakagawa/received_events","type":"User","site_admin":false},"created_at":"2017-04-21T18:01:38Z","updated_at":"2017-04-21T18:01:38Z","body":"@cpojer I'll work through all the lint errors today!"}}
{"actor":{"display_login":"ericnakagawa"}}