{"action":"opened","issue":{"url":"https://api.github.com/repos/fancyapps/fancybox/issues/1996","repository_url":"https://api.github.com/repos/fancyapps/fancybox","labels_url":"https://api.github.com/repos/fancyapps/fancybox/issues/1996/labels{/name}","comments_url":"https://api.github.com/repos/fancyapps/fancybox/issues/1996/comments","events_url":"https://api.github.com/repos/fancyapps/fancybox/issues/1996/events","html_url":"https://github.com/fancyapps/fancybox/issues/1996","id":339762954,"node_id":"MDU6SXNzdWUzMzk3NjI5NTQ=","number":1996,"title":"Internationalization on Custom Buttons","user":{"login":"carraragiovanni","id":32495419,"node_id":"MDQ6VXNlcjMyNDk1NDE5","avatar_url":"https://avatars3.githubusercontent.com/u/32495419?v=4","gravatar_id":"","url":"https://api.github.com/users/carraragiovanni","html_url":"https://github.com/carraragiovanni","followers_url":"https://api.github.com/users/carraragiovanni/followers","following_url":"https://api.github.com/users/carraragiovanni/following{/other_user}","gists_url":"https://api.github.com/users/carraragiovanni/gists{/gist_id}","starred_url":"https://api.github.com/users/carraragiovanni/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/carraragiovanni/subscriptions","organizations_url":"https://api.github.com/users/carraragiovanni/orgs","repos_url":"https://api.github.com/users/carraragiovanni/repos","events_url":"https://api.github.com/users/carraragiovanni/events{/privacy}","received_events_url":"https://api.github.com/users/carraragiovanni/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-07-10T09:28:58Z","updated_at":"2018-07-10T09:28:58Z","closed_at":null,"author_association":"NONE","body":"I created custom buttons, and am trying to modify the default text for diffferent languages. However, the selectors that work for other buttons (\"ZOOM\", \"PLAY_START\", etc.) do not work for custom buttons.\r\n\r\n![screen shot 2018-07-10 at 10 50 23 am](https://user-images.githubusercontent.com/32495419/42499605-7e88bbd6-842f-11e8-8218-d78ba54da5de.png)\r\n![screen shot 2018-07-10 at 10 52 46 am](https://user-images.githubusercontent.com/32495419/42499607-7ed71bb4-842f-11e8-95ef-93d5ffb22902.png)\r\n\r\n```javascript\r\n$.fancybox.defaults.btnTpl.FB = '<button data-fancybox-fb class=\"fancybox-button fancybox-button--fb\" title=\"Facebook\">' +\r\n    '<img src=\"images/fb.svg\" alt=\"\" srcset=\"\">'\r\n'</button>';\r\n```\r\n\r\n```javascript\r\nlang: \"it\",\r\n        i18n: {\r\n            it: {\r\n                CLOSE: \"Chiudi\",\r\n                NEXT: \"Prossima\",\r\n                PREV: \"Precendente\",\r\n                ERROR: \"La foto richiesta non puo essere caricate. <br/> Rirpova un'altra volta.\",\r\n                PLAY_START: \"Comincia slideshow\",\r\n                PLAY_STOP: \"Pausa slideshow\",\r\n                FULL_SCREEN: \"Schermo intero\",\r\n                THUMBS: \"Miniature\",\r\n                DOWNLOAD: \"Scarica\",\r\n                SHARE: \"Condividi\",\r\n                ZOOM: \"Zooma\",\r\n                FB: \"Banana\"\r\n           }\r\n        }\r\n```"}}
{"actor":{"display_login":"carraragiovanni"}}