{"action":"created","issue":{"url":"https://api.github.com/repos/TAPevents/tap-i18n/issues/134","labels_url":"https://api.github.com/repos/TAPevents/tap-i18n/issues/134/labels{/name}","comments_url":"https://api.github.com/repos/TAPevents/tap-i18n/issues/134/comments","events_url":"https://api.github.com/repos/TAPevents/tap-i18n/issues/134/events","html_url":"https://github.com/TAPevents/tap-i18n/issues/134","id":123945699,"number":134,"title":"Using i18next.t(key, options) proxy not working","user":{"login":"netpoe","id":4053518,"avatar_url":"https://avatars.githubusercontent.com/u/4053518?v=3","gravatar_id":"","url":"https://api.github.com/users/netpoe","html_url":"https://github.com/netpoe","followers_url":"https://api.github.com/users/netpoe/followers","following_url":"https://api.github.com/users/netpoe/following{/other_user}","gists_url":"https://api.github.com/users/netpoe/gists{/gist_id}","starred_url":"https://api.github.com/users/netpoe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/netpoe/subscriptions","organizations_url":"https://api.github.com/users/netpoe/orgs","repos_url":"https://api.github.com/users/netpoe/repos","events_url":"https://api.github.com/users/netpoe/events{/privacy}","received_events_url":"https://api.github.com/users/netpoe/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-12-26T19:56:56Z","updated_at":"2016-01-24T06:11:59Z","closed_at":null,"body":"The TAPi18n.__ specify to look after the i18next.t documentation to expand on how to use the function.\r\n\r\nI have implemented the function successfully with simple messages, but when it comes to interpolation, I've tried these two alternatives and none of them work: \r\n\r\n```javascript\r\n// Using %s interpolation\r\nTAPi18n.__(\"campaign-exists\", \r\n\terror['reason']['profileName'], \r\n\terror['reason']['campaignState'],\r\n\terror['reason']['campaignCountry'],\r\n\terror['reason']['campaignId'],\r\n\terror['reason']['campaignURL']);\r\n\r\n\"campaign-exists\": \"There's already a campaign for %s in %s, %s <a href='/campaigns/%s/%s' class='underline'>click here</a> to back and share this campaign.\"\r\n\r\n// Usign i18next.t interpolation style:\r\nTAPi18n.__(\"campaign-exists\", {\r\n\tprofileName: error['reason']['profileName'], \r\n\tcampaignState: error['reason']['campaignState'],\r\n\tcampaignCountry: error['reason']['campaignCountry'],\r\n\tcampaignId: error['reason']['campaignId'],\r\n\tcampaignURL: error['reason']['campaignURL']),\r\n});\r\n\r\n\"campaign-exists\": \"There's already a campaign for {{profileName}} in {{campaignState}}, {{campaignCountry}} <a href='/campaigns/{{campaignId}}/{{campaignURL}}' class='underline'>click here</a> to back and share this campaign.\"\r\n```"},"comment":{"url":"https://api.github.com/repos/TAPevents/tap-i18n/issues/comments/174260308","html_url":"https://github.com/TAPevents/tap-i18n/issues/134#issuecomment-174260308","issue_url":"https://api.github.com/repos/TAPevents/tap-i18n/issues/134","id":174260308,"user":{"login":"theosp","id":207494,"avatar_url":"https://avatars.githubusercontent.com/u/207494?v=3","gravatar_id":"","url":"https://api.github.com/users/theosp","html_url":"https://github.com/theosp","followers_url":"https://api.github.com/users/theosp/followers","following_url":"https://api.github.com/users/theosp/following{/other_user}","gists_url":"https://api.github.com/users/theosp/gists{/gist_id}","starred_url":"https://api.github.com/users/theosp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/theosp/subscriptions","organizations_url":"https://api.github.com/users/theosp/orgs","repos_url":"https://api.github.com/users/theosp/repos","events_url":"https://api.github.com/users/theosp/events{/privacy}","received_events_url":"https://api.github.com/users/theosp/received_events","type":"User","site_admin":false},"created_at":"2016-01-24T06:11:59Z","updated_at":"2016-01-24T06:11:59Z","body":"Please refer to v1.11 of i18next and let me know if issue remains:\r\n\r\nhttp://i18next.github.io/i18next/pages/doc_features.html\r\n\r\nI'll add a comment to readme that tap:i18n is based on v1.11 of i18next (v2 didn't exist when developed).\r\n\r\n-Daniel"}}