{"action":"created","comment":{"url":"https://api.github.com/repos/Microsoft/AdaptiveCards/pulls/comments/166771554","pull_request_review_id":94888840,"id":166771554,"diff_hunk":"@@ -145,6 +149,41 @@ void TextBlock::SetHorizontalAlignment(const HorizontalAlignment value)\n     m_hAlignment = value;\n }\n \n+void TextBlock::SetLanguage(const std::locale& value)\n+{\n+    m_language = value;\n+}\n+\n+std::wstring TextBlock::StringToWstring(const std::string& in) const\n+{\n+#ifdef _WIN32\n+    std::wstring_convert<std::codecvt_utf8_utf16<wchar_t>, wchar_t> utfConverter;\n+    return utfConverter.from_bytes(in);\n+#else\n+    std::wstring_convert<std::codecvt_utf8_utf16<wchar_t>, wchar_t> utfConverter;\n+    return utfConverter.from_bytes(input);","path":"source/shared/cpp/ObjectModel/TextBlock.cpp","position":69,"original_position":69,"commit_id":"2e3dbcfc7468b987d0b9cf2a4bdb92d72a2c47a0","original_commit_id":"2e3dbcfc7468b987d0b9cf2a4bdb92d72a2c47a0","user":{"login":"almedina-ms","id":35784165,"avatar_url":"https://avatars0.githubusercontent.com/u/35784165?v=4","gravatar_id":"","url":"https://api.github.com/users/almedina-ms","html_url":"https://github.com/almedina-ms","followers_url":"https://api.github.com/users/almedina-ms/followers","following_url":"https://api.github.com/users/almedina-ms/following{/other_user}","gists_url":"https://api.github.com/users/almedina-ms/gists{/gist_id}","starred_url":"https://api.github.com/users/almedina-ms/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/almedina-ms/subscriptions","organizations_url":"https://api.github.com/users/almedina-ms/orgs","repos_url":"https://api.github.com/users/almedina-ms/repos","events_url":"https://api.github.com/users/almedina-ms/events{/privacy}","received_events_url":"https://api.github.com/users/almedina-ms/received_events","type":"User","site_admin":false},"body":"The wstrings differ by size in different platforms, in ios, Linux and android the wstring characters are 4 bytes in length, while the windows ones are 2 bytes long. \r\nhttps://stackoverflow.com/questions/7232710/convert-between-string-u16string-u32string\r\n","created_at":"2018-02-07T22:06:44Z","updated_at":"2018-02-07T22:06:44Z","html_url":"https://github.com/Microsoft/AdaptiveCards/pull/1102#discussion_r166771554","pull_request_url":"https://api.github.com/repos/Microsoft/AdaptiveCards/pulls/1102","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/Microsoft/AdaptiveCards/pulls/comments/166771554"},"html":{"href":"https://github.com/Microsoft/AdaptiveCards/pull/1102#discussion_r166771554"},"pull_request":{"href":"https://api.github.com/repos/Microsoft/AdaptiveCards/pulls/1102"}},"in_reply_to_id":166767136},"pull_request":{"url":"https://api.github.com/repos/Microsoft/AdaptiveCards/pulls/1102","id":167269294,"html_url":"https://github.com/Microsoft/AdaptiveCards/pull/1102","diff_url":"https://github.com/Microsoft/AdaptiveCards/pull/1102.diff","patch_url":"https://github.com/Microsoft/AdaptiveCards/pull/1102.patch","issue_url":"https://api.github.com/repos/Microsoft/AdaptiveCards/issues/1102","number":1102,"state":"open","locked":false,"title":"Add language for Date formatting","user":{"login":"almedina-ms","id":35784165,"avatar_url":"https://avatars0.githubusercontent.com/u/35784165?v=4","gravatar_id":"","url":"https://api.github.com/users/almedina-ms","html_url":"https://github.com/almedina-ms","followers_url":"https://api.github.com/users/almedina-ms/followers","following_url":"https://api.github.com/users/almedina-ms/following{/other_user}","gists_url":"https://api.github.com/users/almedina-ms/gists{/gist_id}","starred_url":"https://api.github.com/users/almedina-ms/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/almedina-ms/subscriptions","organizations_url":"https://api.github.com/users/almedina-ms/orgs","repos_url":"https://api.github.com/users/almedina-ms/repos","events_url":"https://api.github.com/users/almedina-ms/events{/privacy}","received_events_url":"https://api.github.com/users/almedina-ms/received_events","type":"User","site_admin":false},"body":"Add lang tag for parsing date in different languages. The languages follow the names defined in the ISO 639 codes (shortest code)\r\n\r\nWork for issue: https://github.com/Microsoft/AdaptiveCards/issues/908","created_at":"2018-02-05T22:15:18Z","updated_at":"2018-02-07T22:06:44Z","closed_at":null,"merged_at":null,"merge_commit_sha":"dffc2f0959281490cfe1278ba0286e57f033f285","assignee":null,"assignees":[],"requested_reviewers":[{"login":"matthidinger","id":1432195,"avatar_url":"https://avatars1.githubusercontent.com/u/1432195?v=4","gravatar_id":"","url":"https://api.github.com/users/matthidinger","html_url":"https://github.com/matthidinger","followers_url":"https://api.github.com/users/matthidinger/followers","following_url":"https://api.github.com/users/matthidinger/following{/other_user}","gists_url":"https://api.github.com/users/matthidinger/gists{/gist_id}","starred_url":"https://api.github.com/users/matthidinger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matthidinger/subscriptions","organizations_url":"https://api.github.com/users/matthidinger/orgs","repos_url":"https://api.github.com/users/matthidinger/repos","events_url":"https://api.github.com/users/matthidinger/events{/privacy}","received_events_url":"https://api.github.com/users/matthidinger/received_events","type":"User","site_admin":false},{"login":"khouzam","id":6656040,"avatar_url":"https://avatars1.githubusercontent.com/u/6656040?v=4","gravatar_id":"","url":"https://api.github.com/users/khouzam","html_url":"https://github.com/khouzam","followers_url":"https://api.github.com/users/khouzam/followers","following_url":"https://api.github.com/users/khouzam/following{/other_user}","gists_url":"https://api.github.com/users/khouzam/gists{/gist_id}","starred_url":"https://api.github.com/users/khouzam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/khouzam/subscriptions","organizations_url":"https://api.github.com/users/khouzam/orgs","repos_url":"https://api.github.com/users/khouzam/repos","events_url":"https://api.github.com/users/khouzam/events{/privacy}","received_events_url":"https://api.github.com/users/khouzam/received_events","type":"User","site_admin":false},{"login":"mollyd26","id":25186325,"avatar_url":"https://avatars2.githubusercontent.com/u/25186325?v=4","gravatar_id":"","url":"https://api.github.com/users/mollyd26","html_url":"https://github.com/mollyd26","followers_url":"https://api.github.com/users/mollyd26/followers","following_url":"https://api.github.com/users/mollyd26/following{/other_user}","gists_url":"https://api.github.com/users/mollyd26/gists{/gist_id}","starred_url":"https://api.github.com/users/mollyd26/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mollyd26/subscriptions","organizations_url":"https://api.github.com/users/mollyd26/orgs","repos_url":"https://api.github.com/users/mollyd26/repos","events_url":"https://api.github.com/users/mollyd26/events{/privacy}","received_events_url":"https://api.github.com/users/mollyd26/received_events","type":"User","site_admin":false},{"login":"eschavez","id":26749190,"avatar_url":"https://avatars2.githubusercontent.com/u/26749190?v=4","gravatar_id":"","url":"https://api.github.com/users/eschavez","html_url":"https://github.com/eschavez","followers_url":"https://api.github.com/users/eschavez/followers","following_url":"https://api.github.com/users/eschavez/following{/other_user}","gists_url":"https://api.github.com/users/eschavez/gists{/gist_id}","starred_url":"https://api.github.com/users/eschavez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eschavez/subscriptions","organizations_url":"https://api.github.com/users/eschavez/orgs","repos_url":"https://api.github.com/users/eschavez/repos","events_url":"https://api.github.com/users/eschavez/events{/privacy}","received_events_url":"https://api.github.com/users/eschavez/received_events","type":"User","site_admin":false}],"requested_teams":[],"milestone":null,"commits_url":"https://api.github.com/repos/Microsoft/AdaptiveCards/pulls/1102/commits","review_comments_url":"https://api.github.com/repos/Microsoft/AdaptiveCards/pulls/1102/comments","review_comment_url":"https://api.github.com/repos/Microsoft/AdaptiveCards/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Microsoft/AdaptiveCards/issues/1102/comments","statuses_url":"https://api.github.com/repos/Microsoft/AdaptiveCards/statuses/2e3dbcfc7468b987d0b9cf2a4bdb92d72a2c47a0","head":{"label":"Microsoft:user/almedina-ms/AddLangPropertyII_AttackOfTheWstring","ref":"user/almedina-ms/AddLangPropertyII_AttackOfTheWstring","sha":"2e3dbcfc7468b987d0b9cf2a4bdb92d72a2c47a0","user":{"login":"Microsoft","id":6154722,"avatar_url":"https://avatars2.githubusercontent.com/u/6154722?v=4","gravatar_id":"","url":"https://api.github.com/users/Microsoft","html_url":"https://github.com/Microsoft","followers_url":"https://api.github.com/users/Microsoft/followers","following_url":"https://api.github.com/users/Microsoft/following{/other_user}","gists_url":"https://api.github.com/users/Microsoft/gists{/gist_id}","starred_url":"https://api.github.com/users/Microsoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Microsoft/subscriptions","organizations_url":"https://api.github.com/users/Microsoft/orgs","repos_url":"https://api.github.com/users/Microsoft/repos","events_url":"https://api.github.com/users/Microsoft/events{/privacy}","received_events_url":"https://api.github.com/users/Microsoft/received_events","type":"Organization","site_admin":false},"repo":{"id":75978731,"name":"AdaptiveCards","full_name":"Microsoft/AdaptiveCards","owner":{"login":"Microsoft","id":6154722,"avatar_url":"https://avatars2.githubusercontent.com/u/6154722?v=4","gravatar_id":"","url":"https://api.github.com/users/Microsoft","html_url":"https://github.com/Microsoft","followers_url":"https://api.github.com/users/Microsoft/followers","following_url":"https://api.github.com/users/Microsoft/following{/other_user}","gists_url":"https://api.github.com/users/Microsoft/gists{/gist_id}","starred_url":"https://api.github.com/users/Microsoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Microsoft/subscriptions","organizations_url":"https://api.github.com/users/Microsoft/orgs","repos_url":"https://api.github.com/users/Microsoft/repos","events_url":"https://api.github.com/users/Microsoft/events{/privacy}","received_events_url":"https://api.github.com/users/Microsoft/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Microsoft/AdaptiveCards","description":"A new way for developers to exchange card content in a common and consistent way.","fork":false,"url":"https://api.github.com/repos/Microsoft/AdaptiveCards","forks_url":"https://api.github.com/repos/Microsoft/AdaptiveCards/forks","keys_url":"https://api.github.com/repos/Microsoft/AdaptiveCards/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Microsoft/AdaptiveCards/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Microsoft/AdaptiveCards/teams","hooks_url":"https://api.github.com/repos/Microsoft/AdaptiveCards/hooks","issue_events_url":"https://api.github.com/repos/Microsoft/AdaptiveCards/issues/events{/number}","events_url":"https://api.github.com/repos/Microsoft/AdaptiveCards/events","assignees_url":"https://api.github.com/repos/Microsoft/AdaptiveCards/assignees{/user}","branches_url":"https://api.github.com/repos/Microsoft/AdaptiveCards/branches{/branch}","tags_url":"https://api.github.com/repos/Microsoft/AdaptiveCards/tags","blobs_url":"https://api.github.com/repos/Microsoft/AdaptiveCards/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Microsoft/AdaptiveCards/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Microsoft/AdaptiveCards/git/refs{/sha}","trees_url":"https://api.github.com/repos/Microsoft/AdaptiveCards/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Microsoft/AdaptiveCards/statuses/{sha}","languages_url":"https://api.github.com/repos/Microsoft/AdaptiveCards/languages","stargazers_url":"https://api.github.com/repos/Microsoft/AdaptiveCards/stargazers","contributors_url":"https://api.github.com/repos/Microsoft/AdaptiveCards/contributors","subscribers_url":"https://api.github.com/repos/Microsoft/AdaptiveCards/subscribers","subscription_url":"https://api.github.com/repos/Microsoft/AdaptiveCards/subscription","commits_url":"https://api.github.com/repos/Microsoft/AdaptiveCards/commits{/sha}","git_commits_url":"https://api.github.com/repos/Microsoft/AdaptiveCards/git/commits{/sha}","comments_url":"https://api.github.com/repos/Microsoft/AdaptiveCards/comments{/number}","issue_comment_url":"https://api.github.com/repos/Microsoft/AdaptiveCards/issues/comments{/number}","contents_url":"https://api.github.com/repos/Microsoft/AdaptiveCards/contents/{+path}","compare_url":"https://api.github.com/repos/Microsoft/AdaptiveCards/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Microsoft/AdaptiveCards/merges","archive_url":"https://api.github.com/repos/Microsoft/AdaptiveCards/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Microsoft/AdaptiveCards/downloads","issues_url":"https://api.github.com/repos/Microsoft/AdaptiveCards/issues{/number}","pulls_url":"https://api.github.com/repos/Microsoft/AdaptiveCards/pulls{/number}","milestones_url":"https://api.github.com/repos/Microsoft/AdaptiveCards/milestones{/number}","notifications_url":"https://api.github.com/repos/Microsoft/AdaptiveCards/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Microsoft/AdaptiveCards/labels{/name}","releases_url":"https://api.github.com/repos/Microsoft/AdaptiveCards/releases{/id}","deployments_url":"https://api.github.com/repos/Microsoft/AdaptiveCards/deployments","created_at":"2016-12-08T22:00:33Z","updated_at":"2018-01-30T22:27:52Z","pushed_at":"2018-02-07T21:48:05Z","git_url":"git://github.com/Microsoft/AdaptiveCards.git","ssh_url":"git@github.com:Microsoft/AdaptiveCards.git","clone_url":"https://github.com/Microsoft/AdaptiveCards.git","svn_url":"https://github.com/Microsoft/AdaptiveCards","homepage":"http://adaptivecards.io","size":42747,"stargazers_count":216,"watchers_count":216,"language":"C++","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":45,"mirror_url":null,"archived":false,"open_issues_count":268,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":45,"open_issues":268,"watchers":216,"default_branch":"master"}},"base":{"label":"Microsoft:master","ref":"master","sha":"deb4ec90eba1741d772434ced6b7d757ced1a5ff","user":{"login":"Microsoft","id":6154722,"avatar_url":"https://avatars2.githubusercontent.com/u/6154722?v=4","gravatar_id":"","url":"https://api.github.com/users/Microsoft","html_url":"https://github.com/Microsoft","followers_url":"https://api.github.com/users/Microsoft/followers","following_url":"https://api.github.com/users/Microsoft/following{/other_user}","gists_url":"https://api.github.com/users/Microsoft/gists{/gist_id}","starred_url":"https://api.github.com/users/Microsoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Microsoft/subscriptions","organizations_url":"https://api.github.com/users/Microsoft/orgs","repos_url":"https://api.github.com/users/Microsoft/repos","events_url":"https://api.github.com/users/Microsoft/events{/privacy}","received_events_url":"https://api.github.com/users/Microsoft/received_events","type":"Organization","site_admin":false},"repo":{"id":75978731,"name":"AdaptiveCards","full_name":"Microsoft/AdaptiveCards","owner":{"login":"Microsoft","id":6154722,"avatar_url":"https://avatars2.githubusercontent.com/u/6154722?v=4","gravatar_id":"","url":"https://api.github.com/users/Microsoft","html_url":"https://github.com/Microsoft","followers_url":"https://api.github.com/users/Microsoft/followers","following_url":"https://api.github.com/users/Microsoft/following{/other_user}","gists_url":"https://api.github.com/users/Microsoft/gists{/gist_id}","starred_url":"https://api.github.com/users/Microsoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Microsoft/subscriptions","organizations_url":"https://api.github.com/users/Microsoft/orgs","repos_url":"https://api.github.com/users/Microsoft/repos","events_url":"https://api.github.com/users/Microsoft/events{/privacy}","received_events_url":"https://api.github.com/users/Microsoft/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Microsoft/AdaptiveCards","description":"A new way for developers to exchange card content in a common and consistent way.","fork":false,"url":"https://api.github.com/repos/Microsoft/AdaptiveCards","forks_url":"https://api.github.com/repos/Microsoft/AdaptiveCards/forks","keys_url":"https://api.github.com/repos/Microsoft/AdaptiveCards/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Microsoft/AdaptiveCards/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Microsoft/AdaptiveCards/teams","hooks_url":"https://api.github.com/repos/Microsoft/AdaptiveCards/hooks","issue_events_url":"https://api.github.com/repos/Microsoft/AdaptiveCards/issues/events{/number}","events_url":"https://api.github.com/repos/Microsoft/AdaptiveCards/events","assignees_url":"https://api.github.com/repos/Microsoft/AdaptiveCards/assignees{/user}","branches_url":"https://api.github.com/repos/Microsoft/AdaptiveCards/branches{/branch}","tags_url":"https://api.github.com/repos/Microsoft/AdaptiveCards/tags","blobs_url":"https://api.github.com/repos/Microsoft/AdaptiveCards/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Microsoft/AdaptiveCards/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Microsoft/AdaptiveCards/git/refs{/sha}","trees_url":"https://api.github.com/repos/Microsoft/AdaptiveCards/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Microsoft/AdaptiveCards/statuses/{sha}","languages_url":"https://api.github.com/repos/Microsoft/AdaptiveCards/languages","stargazers_url":"https://api.github.com/repos/Microsoft/AdaptiveCards/stargazers","contributors_url":"https://api.github.com/repos/Microsoft/AdaptiveCards/contributors","subscribers_url":"https://api.github.com/repos/Microsoft/AdaptiveCards/subscribers","subscription_url":"https://api.github.com/repos/Microsoft/AdaptiveCards/subscription","commits_url":"https://api.github.com/repos/Microsoft/AdaptiveCards/commits{/sha}","git_commits_url":"https://api.github.com/repos/Microsoft/AdaptiveCards/git/commits{/sha}","comments_url":"https://api.github.com/repos/Microsoft/AdaptiveCards/comments{/number}","issue_comment_url":"https://api.github.com/repos/Microsoft/AdaptiveCards/issues/comments{/number}","contents_url":"https://api.github.com/repos/Microsoft/AdaptiveCards/contents/{+path}","compare_url":"https://api.github.com/repos/Microsoft/AdaptiveCards/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Microsoft/AdaptiveCards/merges","archive_url":"https://api.github.com/repos/Microsoft/AdaptiveCards/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Microsoft/AdaptiveCards/downloads","issues_url":"https://api.github.com/repos/Microsoft/AdaptiveCards/issues{/number}","pulls_url":"https://api.github.com/repos/Microsoft/AdaptiveCards/pulls{/number}","milestones_url":"https://api.github.com/repos/Microsoft/AdaptiveCards/milestones{/number}","notifications_url":"https://api.github.com/repos/Microsoft/AdaptiveCards/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Microsoft/AdaptiveCards/labels{/name}","releases_url":"https://api.github.com/repos/Microsoft/AdaptiveCards/releases{/id}","deployments_url":"https://api.github.com/repos/Microsoft/AdaptiveCards/deployments","created_at":"2016-12-08T22:00:33Z","updated_at":"2018-01-30T22:27:52Z","pushed_at":"2018-02-07T21:48:05Z","git_url":"git://github.com/Microsoft/AdaptiveCards.git","ssh_url":"git@github.com:Microsoft/AdaptiveCards.git","clone_url":"https://github.com/Microsoft/AdaptiveCards.git","svn_url":"https://github.com/Microsoft/AdaptiveCards","homepage":"http://adaptivecards.io","size":42747,"stargazers_count":216,"watchers_count":216,"language":"C++","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":45,"mirror_url":null,"archived":false,"open_issues_count":268,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":45,"open_issues":268,"watchers":216,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Microsoft/AdaptiveCards/pulls/1102"},"html":{"href":"https://github.com/Microsoft/AdaptiveCards/pull/1102"},"issue":{"href":"https://api.github.com/repos/Microsoft/AdaptiveCards/issues/1102"},"comments":{"href":"https://api.github.com/repos/Microsoft/AdaptiveCards/issues/1102/comments"},"review_comments":{"href":"https://api.github.com/repos/Microsoft/AdaptiveCards/pulls/1102/comments"},"review_comment":{"href":"https://api.github.com/repos/Microsoft/AdaptiveCards/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Microsoft/AdaptiveCards/pulls/1102/commits"},"statuses":{"href":"https://api.github.com/repos/Microsoft/AdaptiveCards/statuses/2e3dbcfc7468b987d0b9cf2a4bdb92d72a2c47a0"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"almedina-ms"}}