{"action":"closed","number":456,"pull_request":{"url":"https://api.github.com/repos/2gis/mapsapi/pulls/456","id":158264980,"html_url":"https://github.com/2gis/mapsapi/pull/456","diff_url":"https://github.com/2gis/mapsapi/pull/456.diff","patch_url":"https://github.com/2gis/mapsapi/pull/456.patch","issue_url":"https://api.github.com/repos/2gis/mapsapi/issues/456","number":456,"state":"closed","locked":false,"title":"Support Arabic language","user":{"login":"Trufi","id":3996552,"avatar_url":"https://avatars0.githubusercontent.com/u/3996552?v=4","gravatar_id":"","url":"https://api.github.com/users/Trufi","html_url":"https://github.com/Trufi","followers_url":"https://api.github.com/users/Trufi/followers","following_url":"https://api.github.com/users/Trufi/following{/other_user}","gists_url":"https://api.github.com/users/Trufi/gists{/gist_id}","starred_url":"https://api.github.com/users/Trufi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Trufi/subscriptions","organizations_url":"https://api.github.com/users/Trufi/orgs","repos_url":"https://api.github.com/users/Trufi/repos","events_url":"https://api.github.com/users/Trufi/events{/privacy}","received_events_url":"https://api.github.com/users/Trufi/received_events","type":"User","site_admin":false},"body":"- Добавил арабский язык для основных компонент. Для геокликера будет использоваться английский.\r\n\r\n- Поменял механику `DG.Locale.t`, теперь, если какого-то перевода нету, то не будет выполняться `map.setLang('ru')`. А также пофиксал проверку на пустую строку `''`, раньше вместо пустой строки брался ключ.\r\n\r\n- В `DG.Label` появилась новая опция `textDirection = 'auto' | 'ltr' | 'rtl'`, по умолчанию равное `auto`. Для линейки и пробок в случае арабского языка принудительно выставляется `rtl`, для слоя POI — нет, т.к. текст пришедший из API может быть не арабским.\r\n\r\n- Тайловый и POI слои меняют URL и полностью перерисовываются, если пользователь:\r\n  1. сменил язык на арабский находясь в Дубае\r\n  2. включил арабский язык, зашел в проект Дубай\r\n\r\nНе хватает следующих переводов:\r\n- ​\"км\" — километры для линейки\r\n- \"м\" — метры для линейки\r\n - \"Приблизить\", \"Отдалить\" — лейблы для контролов зума (в онлайне у них вообще нет лейблов)\r\n- \"Развернуть\", \"Восстановить\" — лейблы для контрола полноэкранного режима","created_at":"2017-12-14T04:15:02Z","updated_at":"2017-12-27T12:12:16Z","closed_at":"2017-12-27T12:12:16Z","merged_at":"2017-12-27T12:12:16Z","merge_commit_sha":"0244e904471a2c891f64852202d34637a76dbccd","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/2gis/mapsapi/pulls/456/commits","review_comments_url":"https://api.github.com/repos/2gis/mapsapi/pulls/456/comments","review_comment_url":"https://api.github.com/repos/2gis/mapsapi/pulls/comments{/number}","comments_url":"https://api.github.com/repos/2gis/mapsapi/issues/456/comments","statuses_url":"https://api.github.com/repos/2gis/mapsapi/statuses/7415b94ac455da5585df629f751664c69cc2c61d","head":{"label":"2gis:add-arabic-language","ref":"add-arabic-language","sha":"7415b94ac455da5585df629f751664c69cc2c61d","user":{"login":"2gis","id":1481435,"avatar_url":"https://avatars2.githubusercontent.com/u/1481435?v=4","gravatar_id":"","url":"https://api.github.com/users/2gis","html_url":"https://github.com/2gis","followers_url":"https://api.github.com/users/2gis/followers","following_url":"https://api.github.com/users/2gis/following{/other_user}","gists_url":"https://api.github.com/users/2gis/gists{/gist_id}","starred_url":"https://api.github.com/users/2gis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/2gis/subscriptions","organizations_url":"https://api.github.com/users/2gis/orgs","repos_url":"https://api.github.com/users/2gis/repos","events_url":"https://api.github.com/users/2gis/events{/privacy}","received_events_url":"https://api.github.com/users/2gis/received_events","type":"Organization","site_admin":false},"repo":{"id":8050444,"name":"mapsapi","full_name":"2gis/mapsapi","owner":{"login":"2gis","id":1481435,"avatar_url":"https://avatars2.githubusercontent.com/u/1481435?v=4","gravatar_id":"","url":"https://api.github.com/users/2gis","html_url":"https://github.com/2gis","followers_url":"https://api.github.com/users/2gis/followers","following_url":"https://api.github.com/users/2gis/following{/other_user}","gists_url":"https://api.github.com/users/2gis/gists{/gist_id}","starred_url":"https://api.github.com/users/2gis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/2gis/subscriptions","organizations_url":"https://api.github.com/users/2gis/orgs","repos_url":"https://api.github.com/users/2gis/repos","events_url":"https://api.github.com/users/2gis/events{/privacy}","received_events_url":"https://api.github.com/users/2gis/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/2gis/mapsapi","description":"Карты 2ГИС — это точные данные обо всех объектах города, включая новостройки, с детализацией до заборов и внутриквартальных проездов.","fork":false,"url":"https://api.github.com/repos/2gis/mapsapi","forks_url":"https://api.github.com/repos/2gis/mapsapi/forks","keys_url":"https://api.github.com/repos/2gis/mapsapi/keys{/key_id}","collaborators_url":"https://api.github.com/repos/2gis/mapsapi/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/2gis/mapsapi/teams","hooks_url":"https://api.github.com/repos/2gis/mapsapi/hooks","issue_events_url":"https://api.github.com/repos/2gis/mapsapi/issues/events{/number}","events_url":"https://api.github.com/repos/2gis/mapsapi/events","assignees_url":"https://api.github.com/repos/2gis/mapsapi/assignees{/user}","branches_url":"https://api.github.com/repos/2gis/mapsapi/branches{/branch}","tags_url":"https://api.github.com/repos/2gis/mapsapi/tags","blobs_url":"https://api.github.com/repos/2gis/mapsapi/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/2gis/mapsapi/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/2gis/mapsapi/git/refs{/sha}","trees_url":"https://api.github.com/repos/2gis/mapsapi/git/trees{/sha}","statuses_url":"https://api.github.com/repos/2gis/mapsapi/statuses/{sha}","languages_url":"https://api.github.com/repos/2gis/mapsapi/languages","stargazers_url":"https://api.github.com/repos/2gis/mapsapi/stargazers","contributors_url":"https://api.github.com/repos/2gis/mapsapi/contributors","subscribers_url":"https://api.github.com/repos/2gis/mapsapi/subscribers","subscription_url":"https://api.github.com/repos/2gis/mapsapi/subscription","commits_url":"https://api.github.com/repos/2gis/mapsapi/commits{/sha}","git_commits_url":"https://api.github.com/repos/2gis/mapsapi/git/commits{/sha}","comments_url":"https://api.github.com/repos/2gis/mapsapi/comments{/number}","issue_comment_url":"https://api.github.com/repos/2gis/mapsapi/issues/comments{/number}","contents_url":"https://api.github.com/repos/2gis/mapsapi/contents/{+path}","compare_url":"https://api.github.com/repos/2gis/mapsapi/compare/{base}...{head}","merges_url":"https://api.github.com/repos/2gis/mapsapi/merges","archive_url":"https://api.github.com/repos/2gis/mapsapi/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/2gis/mapsapi/downloads","issues_url":"https://api.github.com/repos/2gis/mapsapi/issues{/number}","pulls_url":"https://api.github.com/repos/2gis/mapsapi/pulls{/number}","milestones_url":"https://api.github.com/repos/2gis/mapsapi/milestones{/number}","notifications_url":"https://api.github.com/repos/2gis/mapsapi/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/2gis/mapsapi/labels{/name}","releases_url":"https://api.github.com/repos/2gis/mapsapi/releases{/id}","deployments_url":"https://api.github.com/repos/2gis/mapsapi/deployments","created_at":"2013-02-06T11:59:11Z","updated_at":"2017-12-21T11:05:28Z","pushed_at":"2017-12-27T12:12:16Z","git_url":"git://github.com/2gis/mapsapi.git","ssh_url":"git@github.com:2gis/mapsapi.git","clone_url":"https://github.com/2gis/mapsapi.git","svn_url":"https://github.com/2gis/mapsapi","homepage":"","size":17038,"stargazers_count":108,"watchers_count":108,"language":"JavaScript","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":8,"mirror_url":null,"archived":false,"open_issues_count":32,"license":{"key":"other","name":"Other","spdx_id":null,"url":null},"forks":8,"open_issues":32,"watchers":108,"default_branch":"master"}},"base":{"label":"2gis:master","ref":"master","sha":"b5a181b944a28d226db65b0ba3e3b9cc6836181d","user":{"login":"2gis","id":1481435,"avatar_url":"https://avatars2.githubusercontent.com/u/1481435?v=4","gravatar_id":"","url":"https://api.github.com/users/2gis","html_url":"https://github.com/2gis","followers_url":"https://api.github.com/users/2gis/followers","following_url":"https://api.github.com/users/2gis/following{/other_user}","gists_url":"https://api.github.com/users/2gis/gists{/gist_id}","starred_url":"https://api.github.com/users/2gis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/2gis/subscriptions","organizations_url":"https://api.github.com/users/2gis/orgs","repos_url":"https://api.github.com/users/2gis/repos","events_url":"https://api.github.com/users/2gis/events{/privacy}","received_events_url":"https://api.github.com/users/2gis/received_events","type":"Organization","site_admin":false},"repo":{"id":8050444,"name":"mapsapi","full_name":"2gis/mapsapi","owner":{"login":"2gis","id":1481435,"avatar_url":"https://avatars2.githubusercontent.com/u/1481435?v=4","gravatar_id":"","url":"https://api.github.com/users/2gis","html_url":"https://github.com/2gis","followers_url":"https://api.github.com/users/2gis/followers","following_url":"https://api.github.com/users/2gis/following{/other_user}","gists_url":"https://api.github.com/users/2gis/gists{/gist_id}","starred_url":"https://api.github.com/users/2gis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/2gis/subscriptions","organizations_url":"https://api.github.com/users/2gis/orgs","repos_url":"https://api.github.com/users/2gis/repos","events_url":"https://api.github.com/users/2gis/events{/privacy}","received_events_url":"https://api.github.com/users/2gis/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/2gis/mapsapi","description":"Карты 2ГИС — это точные данные обо всех объектах города, включая новостройки, с детализацией до заборов и внутриквартальных проездов.","fork":false,"url":"https://api.github.com/repos/2gis/mapsapi","forks_url":"https://api.github.com/repos/2gis/mapsapi/forks","keys_url":"https://api.github.com/repos/2gis/mapsapi/keys{/key_id}","collaborators_url":"https://api.github.com/repos/2gis/mapsapi/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/2gis/mapsapi/teams","hooks_url":"https://api.github.com/repos/2gis/mapsapi/hooks","issue_events_url":"https://api.github.com/repos/2gis/mapsapi/issues/events{/number}","events_url":"https://api.github.com/repos/2gis/mapsapi/events","assignees_url":"https://api.github.com/repos/2gis/mapsapi/assignees{/user}","branches_url":"https://api.github.com/repos/2gis/mapsapi/branches{/branch}","tags_url":"https://api.github.com/repos/2gis/mapsapi/tags","blobs_url":"https://api.github.com/repos/2gis/mapsapi/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/2gis/mapsapi/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/2gis/mapsapi/git/refs{/sha}","trees_url":"https://api.github.com/repos/2gis/mapsapi/git/trees{/sha}","statuses_url":"https://api.github.com/repos/2gis/mapsapi/statuses/{sha}","languages_url":"https://api.github.com/repos/2gis/mapsapi/languages","stargazers_url":"https://api.github.com/repos/2gis/mapsapi/stargazers","contributors_url":"https://api.github.com/repos/2gis/mapsapi/contributors","subscribers_url":"https://api.github.com/repos/2gis/mapsapi/subscribers","subscription_url":"https://api.github.com/repos/2gis/mapsapi/subscription","commits_url":"https://api.github.com/repos/2gis/mapsapi/commits{/sha}","git_commits_url":"https://api.github.com/repos/2gis/mapsapi/git/commits{/sha}","comments_url":"https://api.github.com/repos/2gis/mapsapi/comments{/number}","issue_comment_url":"https://api.github.com/repos/2gis/mapsapi/issues/comments{/number}","contents_url":"https://api.github.com/repos/2gis/mapsapi/contents/{+path}","compare_url":"https://api.github.com/repos/2gis/mapsapi/compare/{base}...{head}","merges_url":"https://api.github.com/repos/2gis/mapsapi/merges","archive_url":"https://api.github.com/repos/2gis/mapsapi/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/2gis/mapsapi/downloads","issues_url":"https://api.github.com/repos/2gis/mapsapi/issues{/number}","pulls_url":"https://api.github.com/repos/2gis/mapsapi/pulls{/number}","milestones_url":"https://api.github.com/repos/2gis/mapsapi/milestones{/number}","notifications_url":"https://api.github.com/repos/2gis/mapsapi/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/2gis/mapsapi/labels{/name}","releases_url":"https://api.github.com/repos/2gis/mapsapi/releases{/id}","deployments_url":"https://api.github.com/repos/2gis/mapsapi/deployments","created_at":"2013-02-06T11:59:11Z","updated_at":"2017-12-21T11:05:28Z","pushed_at":"2017-12-27T12:12:16Z","git_url":"git://github.com/2gis/mapsapi.git","ssh_url":"git@github.com:2gis/mapsapi.git","clone_url":"https://github.com/2gis/mapsapi.git","svn_url":"https://github.com/2gis/mapsapi","homepage":"","size":17038,"stargazers_count":108,"watchers_count":108,"language":"JavaScript","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":8,"mirror_url":null,"archived":false,"open_issues_count":32,"license":{"key":"other","name":"Other","spdx_id":null,"url":null},"forks":8,"open_issues":32,"watchers":108,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/2gis/mapsapi/pulls/456"},"html":{"href":"https://github.com/2gis/mapsapi/pull/456"},"issue":{"href":"https://api.github.com/repos/2gis/mapsapi/issues/456"},"comments":{"href":"https://api.github.com/repos/2gis/mapsapi/issues/456/comments"},"review_comments":{"href":"https://api.github.com/repos/2gis/mapsapi/pulls/456/comments"},"review_comment":{"href":"https://api.github.com/repos/2gis/mapsapi/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/2gis/mapsapi/pulls/456/commits"},"statuses":{"href":"https://api.github.com/repos/2gis/mapsapi/statuses/7415b94ac455da5585df629f751664c69cc2c61d"}},"author_association":"COLLABORATOR","merged":true,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":{"login":"vkorostelev","id":3917270,"avatar_url":"https://avatars3.githubusercontent.com/u/3917270?v=4","gravatar_id":"","url":"https://api.github.com/users/vkorostelev","html_url":"https://github.com/vkorostelev","followers_url":"https://api.github.com/users/vkorostelev/followers","following_url":"https://api.github.com/users/vkorostelev/following{/other_user}","gists_url":"https://api.github.com/users/vkorostelev/gists{/gist_id}","starred_url":"https://api.github.com/users/vkorostelev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vkorostelev/subscriptions","organizations_url":"https://api.github.com/users/vkorostelev/orgs","repos_url":"https://api.github.com/users/vkorostelev/repos","events_url":"https://api.github.com/users/vkorostelev/events{/privacy}","received_events_url":"https://api.github.com/users/vkorostelev/received_events","type":"User","site_admin":false},"comments":3,"review_comments":17,"maintainer_can_modify":false,"commits":6,"additions":300,"deletions":8418,"changed_files":70}}
{"actor":{"display_login":"vkorostelev"}}