{"action":"created","comment":{"url":"https://api.github.com/repos/theia-ide/theia/pulls/comments/138764388","pull_request_review_id":62604495,"id":138764388,"diff_hunk":"@@ -0,0 +1,40 @@\n+/*\n+ * Copyright (C) 2017 Ericson and others.\n+ *\n+ * Licensed under the Apache License, Version 2.0 (the \"License\"); you may not use this file except in compliance with the License.\n+ * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0\n+ */\n+\n+const Globalize = require(\"globalize\");\n+const localeRequire = require(\"../../i18n/locale.json\");\n+\n+export class MessageTranslation {\n+\n+    static localize(selection: string, defaultSelection: string): string {\n+        try {\n+            return Globalize.formatMessage(selection);\n+        } catch (Error) {\n+            // If the language definition is not found, use the default selection string\n+            console.log(\"----- using default value for: \" + selection + \" to be \" + defaultSelection);","path":"packages/core/src/common/message-translation.ts","position":18,"original_position":18,"commit_id":"8721c8980eb2dde68fcea7645161bf0eef9ca8cc","original_commit_id":"8721c8980eb2dde68fcea7645161bf0eef9ca8cc","user":{"login":"hexa00","id":698076,"avatar_url":"https://avatars2.githubusercontent.com/u/698076?v=4","gravatar_id":"","url":"https://api.github.com/users/hexa00","html_url":"https://github.com/hexa00","followers_url":"https://api.github.com/users/hexa00/followers","following_url":"https://api.github.com/users/hexa00/following{/other_user}","gists_url":"https://api.github.com/users/hexa00/gists{/gist_id}","starred_url":"https://api.github.com/users/hexa00/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hexa00/subscriptions","organizations_url":"https://api.github.com/users/hexa00/orgs","repos_url":"https://api.github.com/users/hexa00/repos","events_url":"https://api.github.com/users/hexa00/events{/privacy}","received_events_url":"https://api.github.com/users/hexa00/received_events","type":"User","site_admin":false},"body":"We would need to use the logger for that log but it may be problematic since the class is static...\r\nNot sure what the best option is here... \r\nWe need to investigate if we can still use the logger in a static class","created_at":"2017-09-13T23:22:00Z","updated_at":"2017-09-13T23:27:31Z","html_url":"https://github.com/theia-ide/theia/pull/396#discussion_r138764388","pull_request_url":"https://api.github.com/repos/theia-ide/theia/pulls/396","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/theia-ide/theia/pulls/comments/138764388"},"html":{"href":"https://github.com/theia-ide/theia/pull/396#discussion_r138764388"},"pull_request":{"href":"https://api.github.com/repos/theia-ide/theia/pulls/396"}}},"pull_request":{"url":"https://api.github.com/repos/theia-ide/theia/pulls/396","id":135867470,"html_url":"https://github.com/theia-ide/theia/pull/396","diff_url":"https://github.com/theia-ide/theia/pull/396.diff","patch_url":"https://github.com/theia-ide/theia/pull/396.patch","issue_url":"https://api.github.com/repos/theia-ide/theia/issues/396","number":396,"state":"open","locked":false,"title":"Globalize","user":{"login":"lmcbout","id":419051,"avatar_url":"https://avatars2.githubusercontent.com/u/419051?v=4","gravatar_id":"","url":"https://api.github.com/users/lmcbout","html_url":"https://github.com/lmcbout","followers_url":"https://api.github.com/users/lmcbout/followers","following_url":"https://api.github.com/users/lmcbout/following{/other_user}","gists_url":"https://api.github.com/users/lmcbout/gists{/gist_id}","starred_url":"https://api.github.com/users/lmcbout/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lmcbout/subscriptions","organizations_url":"https://api.github.com/users/lmcbout/orgs","repos_url":"https://api.github.com/users/lmcbout/repos","events_url":"https://api.github.com/users/lmcbout/events{/privacy}","received_events_url":"https://api.github.com/users/lmcbout/received_events","type":"User","site_admin":false},"body":"Use Globalize in each package to set the user language.","created_at":"2017-08-15T18:59:13Z","updated_at":"2017-09-13T23:27:31Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b11efc024e62893b1694d7d0d4d30410873c55f6","assignee":{"login":"lmcbout","id":419051,"avatar_url":"https://avatars2.githubusercontent.com/u/419051?v=4","gravatar_id":"","url":"https://api.github.com/users/lmcbout","html_url":"https://github.com/lmcbout","followers_url":"https://api.github.com/users/lmcbout/followers","following_url":"https://api.github.com/users/lmcbout/following{/other_user}","gists_url":"https://api.github.com/users/lmcbout/gists{/gist_id}","starred_url":"https://api.github.com/users/lmcbout/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lmcbout/subscriptions","organizations_url":"https://api.github.com/users/lmcbout/orgs","repos_url":"https://api.github.com/users/lmcbout/repos","events_url":"https://api.github.com/users/lmcbout/events{/privacy}","received_events_url":"https://api.github.com/users/lmcbout/received_events","type":"User","site_admin":false},"assignees":[{"login":"lmcbout","id":419051,"avatar_url":"https://avatars2.githubusercontent.com/u/419051?v=4","gravatar_id":"","url":"https://api.github.com/users/lmcbout","html_url":"https://github.com/lmcbout","followers_url":"https://api.github.com/users/lmcbout/followers","following_url":"https://api.github.com/users/lmcbout/following{/other_user}","gists_url":"https://api.github.com/users/lmcbout/gists{/gist_id}","starred_url":"https://api.github.com/users/lmcbout/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lmcbout/subscriptions","organizations_url":"https://api.github.com/users/lmcbout/orgs","repos_url":"https://api.github.com/users/lmcbout/repos","events_url":"https://api.github.com/users/lmcbout/events{/privacy}","received_events_url":"https://api.github.com/users/lmcbout/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/theia-ide/theia/pulls/396/commits","review_comments_url":"https://api.github.com/repos/theia-ide/theia/pulls/396/comments","review_comment_url":"https://api.github.com/repos/theia-ide/theia/pulls/comments{/number}","comments_url":"https://api.github.com/repos/theia-ide/theia/issues/396/comments","statuses_url":"https://api.github.com/repos/theia-ide/theia/statuses/8721c8980eb2dde68fcea7645161bf0eef9ca8cc","head":{"label":"lmcbout:globalize","ref":"globalize","sha":"8721c8980eb2dde68fcea7645161bf0eef9ca8cc","user":{"login":"lmcbout","id":419051,"avatar_url":"https://avatars2.githubusercontent.com/u/419051?v=4","gravatar_id":"","url":"https://api.github.com/users/lmcbout","html_url":"https://github.com/lmcbout","followers_url":"https://api.github.com/users/lmcbout/followers","following_url":"https://api.github.com/users/lmcbout/following{/other_user}","gists_url":"https://api.github.com/users/lmcbout/gists{/gist_id}","starred_url":"https://api.github.com/users/lmcbout/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lmcbout/subscriptions","organizations_url":"https://api.github.com/users/lmcbout/orgs","repos_url":"https://api.github.com/users/lmcbout/repos","events_url":"https://api.github.com/users/lmcbout/events{/privacy}","received_events_url":"https://api.github.com/users/lmcbout/received_events","type":"User","site_admin":false},"repo":{"id":94239723,"name":"theia","full_name":"lmcbout/theia","owner":{"login":"lmcbout","id":419051,"avatar_url":"https://avatars2.githubusercontent.com/u/419051?v=4","gravatar_id":"","url":"https://api.github.com/users/lmcbout","html_url":"https://github.com/lmcbout","followers_url":"https://api.github.com/users/lmcbout/followers","following_url":"https://api.github.com/users/lmcbout/following{/other_user}","gists_url":"https://api.github.com/users/lmcbout/gists{/gist_id}","starred_url":"https://api.github.com/users/lmcbout/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lmcbout/subscriptions","organizations_url":"https://api.github.com/users/lmcbout/orgs","repos_url":"https://api.github.com/users/lmcbout/repos","events_url":"https://api.github.com/users/lmcbout/events{/privacy}","received_events_url":"https://api.github.com/users/lmcbout/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/lmcbout/theia","description":"Theia is a cloud & desktop IDE framework implemented in TypeScript.","fork":true,"url":"https://api.github.com/repos/lmcbout/theia","forks_url":"https://api.github.com/repos/lmcbout/theia/forks","keys_url":"https://api.github.com/repos/lmcbout/theia/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lmcbout/theia/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lmcbout/theia/teams","hooks_url":"https://api.github.com/repos/lmcbout/theia/hooks","issue_events_url":"https://api.github.com/repos/lmcbout/theia/issues/events{/number}","events_url":"https://api.github.com/repos/lmcbout/theia/events","assignees_url":"https://api.github.com/repos/lmcbout/theia/assignees{/user}","branches_url":"https://api.github.com/repos/lmcbout/theia/branches{/branch}","tags_url":"https://api.github.com/repos/lmcbout/theia/tags","blobs_url":"https://api.github.com/repos/lmcbout/theia/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lmcbout/theia/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lmcbout/theia/git/refs{/sha}","trees_url":"https://api.github.com/repos/lmcbout/theia/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lmcbout/theia/statuses/{sha}","languages_url":"https://api.github.com/repos/lmcbout/theia/languages","stargazers_url":"https://api.github.com/repos/lmcbout/theia/stargazers","contributors_url":"https://api.github.com/repos/lmcbout/theia/contributors","subscribers_url":"https://api.github.com/repos/lmcbout/theia/subscribers","subscription_url":"https://api.github.com/repos/lmcbout/theia/subscription","commits_url":"https://api.github.com/repos/lmcbout/theia/commits{/sha}","git_commits_url":"https://api.github.com/repos/lmcbout/theia/git/commits{/sha}","comments_url":"https://api.github.com/repos/lmcbout/theia/comments{/number}","issue_comment_url":"https://api.github.com/repos/lmcbout/theia/issues/comments{/number}","contents_url":"https://api.github.com/repos/lmcbout/theia/contents/{+path}","compare_url":"https://api.github.com/repos/lmcbout/theia/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lmcbout/theia/merges","archive_url":"https://api.github.com/repos/lmcbout/theia/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lmcbout/theia/downloads","issues_url":"https://api.github.com/repos/lmcbout/theia/issues{/number}","pulls_url":"https://api.github.com/repos/lmcbout/theia/pulls{/number}","milestones_url":"https://api.github.com/repos/lmcbout/theia/milestones{/number}","notifications_url":"https://api.github.com/repos/lmcbout/theia/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lmcbout/theia/labels{/name}","releases_url":"https://api.github.com/repos/lmcbout/theia/releases{/id}","deployments_url":"https://api.github.com/repos/lmcbout/theia/deployments","created_at":"2017-06-13T17:31:53Z","updated_at":"2017-06-13T17:31:55Z","pushed_at":"2017-09-13T13:07:54Z","git_url":"git://github.com/lmcbout/theia.git","ssh_url":"git@github.com:lmcbout/theia.git","clone_url":"https://github.com/lmcbout/theia.git","svn_url":"https://github.com/lmcbout/theia","homepage":"","size":33149,"stargazers_count":0,"watchers_count":0,"language":"TypeScript","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":"theia-ide:master","ref":"master","sha":"f2ee4c8aa87c3c46a7d4428828db535c5596b5a7","user":{"login":"theia-ide","id":28530323,"avatar_url":"https://avatars1.githubusercontent.com/u/28530323?v=4","gravatar_id":"","url":"https://api.github.com/users/theia-ide","html_url":"https://github.com/theia-ide","followers_url":"https://api.github.com/users/theia-ide/followers","following_url":"https://api.github.com/users/theia-ide/following{/other_user}","gists_url":"https://api.github.com/users/theia-ide/gists{/gist_id}","starred_url":"https://api.github.com/users/theia-ide/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/theia-ide/subscriptions","organizations_url":"https://api.github.com/users/theia-ide/orgs","repos_url":"https://api.github.com/users/theia-ide/repos","events_url":"https://api.github.com/users/theia-ide/events{/privacy}","received_events_url":"https://api.github.com/users/theia-ide/received_events","type":"Organization","site_admin":false},"repo":{"id":83050680,"name":"theia","full_name":"theia-ide/theia","owner":{"login":"theia-ide","id":28530323,"avatar_url":"https://avatars1.githubusercontent.com/u/28530323?v=4","gravatar_id":"","url":"https://api.github.com/users/theia-ide","html_url":"https://github.com/theia-ide","followers_url":"https://api.github.com/users/theia-ide/followers","following_url":"https://api.github.com/users/theia-ide/following{/other_user}","gists_url":"https://api.github.com/users/theia-ide/gists{/gist_id}","starred_url":"https://api.github.com/users/theia-ide/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/theia-ide/subscriptions","organizations_url":"https://api.github.com/users/theia-ide/orgs","repos_url":"https://api.github.com/users/theia-ide/repos","events_url":"https://api.github.com/users/theia-ide/events{/privacy}","received_events_url":"https://api.github.com/users/theia-ide/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/theia-ide/theia","description":"Theia is a cloud & desktop IDE framework implemented in TypeScript.","fork":false,"url":"https://api.github.com/repos/theia-ide/theia","forks_url":"https://api.github.com/repos/theia-ide/theia/forks","keys_url":"https://api.github.com/repos/theia-ide/theia/keys{/key_id}","collaborators_url":"https://api.github.com/repos/theia-ide/theia/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/theia-ide/theia/teams","hooks_url":"https://api.github.com/repos/theia-ide/theia/hooks","issue_events_url":"https://api.github.com/repos/theia-ide/theia/issues/events{/number}","events_url":"https://api.github.com/repos/theia-ide/theia/events","assignees_url":"https://api.github.com/repos/theia-ide/theia/assignees{/user}","branches_url":"https://api.github.com/repos/theia-ide/theia/branches{/branch}","tags_url":"https://api.github.com/repos/theia-ide/theia/tags","blobs_url":"https://api.github.com/repos/theia-ide/theia/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/theia-ide/theia/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/theia-ide/theia/git/refs{/sha}","trees_url":"https://api.github.com/repos/theia-ide/theia/git/trees{/sha}","statuses_url":"https://api.github.com/repos/theia-ide/theia/statuses/{sha}","languages_url":"https://api.github.com/repos/theia-ide/theia/languages","stargazers_url":"https://api.github.com/repos/theia-ide/theia/stargazers","contributors_url":"https://api.github.com/repos/theia-ide/theia/contributors","subscribers_url":"https://api.github.com/repos/theia-ide/theia/subscribers","subscription_url":"https://api.github.com/repos/theia-ide/theia/subscription","commits_url":"https://api.github.com/repos/theia-ide/theia/commits{/sha}","git_commits_url":"https://api.github.com/repos/theia-ide/theia/git/commits{/sha}","comments_url":"https://api.github.com/repos/theia-ide/theia/comments{/number}","issue_comment_url":"https://api.github.com/repos/theia-ide/theia/issues/comments{/number}","contents_url":"https://api.github.com/repos/theia-ide/theia/contents/{+path}","compare_url":"https://api.github.com/repos/theia-ide/theia/compare/{base}...{head}","merges_url":"https://api.github.com/repos/theia-ide/theia/merges","archive_url":"https://api.github.com/repos/theia-ide/theia/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/theia-ide/theia/downloads","issues_url":"https://api.github.com/repos/theia-ide/theia/issues{/number}","pulls_url":"https://api.github.com/repos/theia-ide/theia/pulls{/number}","milestones_url":"https://api.github.com/repos/theia-ide/theia/milestones{/number}","notifications_url":"https://api.github.com/repos/theia-ide/theia/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/theia-ide/theia/labels{/name}","releases_url":"https://api.github.com/repos/theia-ide/theia/releases{/id}","deployments_url":"https://api.github.com/repos/theia-ide/theia/deployments","created_at":"2017-02-24T14:42:05Z","updated_at":"2017-09-13T13:24:01Z","pushed_at":"2017-09-13T22:54:28Z","git_url":"git://github.com/theia-ide/theia.git","ssh_url":"git@github.com:theia-ide/theia.git","clone_url":"https://github.com/theia-ide/theia.git","svn_url":"https://github.com/theia-ide/theia","homepage":"","size":33485,"stargazers_count":246,"watchers_count":246,"language":"TypeScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":43,"mirror_url":null,"open_issues_count":148,"forks":43,"open_issues":148,"watchers":246,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/theia-ide/theia/pulls/396"},"html":{"href":"https://github.com/theia-ide/theia/pull/396"},"issue":{"href":"https://api.github.com/repos/theia-ide/theia/issues/396"},"comments":{"href":"https://api.github.com/repos/theia-ide/theia/issues/396/comments"},"review_comments":{"href":"https://api.github.com/repos/theia-ide/theia/pulls/396/comments"},"review_comment":{"href":"https://api.github.com/repos/theia-ide/theia/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/theia-ide/theia/pulls/396/commits"},"statuses":{"href":"https://api.github.com/repos/theia-ide/theia/statuses/8721c8980eb2dde68fcea7645161bf0eef9ca8cc"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"hexa00"}}