{"action":"created","issue":{"url":"https://api.github.com/repos/dolanmiu/grunt-google-translate/issues/3","repository_url":"https://api.github.com/repos/dolanmiu/grunt-google-translate","labels_url":"https://api.github.com/repos/dolanmiu/grunt-google-translate/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/dolanmiu/grunt-google-translate/issues/3/comments","events_url":"https://api.github.com/repos/dolanmiu/grunt-google-translate/issues/3/events","html_url":"https://github.com/dolanmiu/grunt-google-translate/issues/3","id":132454454,"number":3,"title":"Prevent Variable Translation","user":{"login":"sitranok","id":1186870,"avatar_url":"https://avatars.githubusercontent.com/u/1186870?v=3","gravatar_id":"","url":"https://api.github.com/users/sitranok","html_url":"https://github.com/sitranok","followers_url":"https://api.github.com/users/sitranok/followers","following_url":"https://api.github.com/users/sitranok/following{/other_user}","gists_url":"https://api.github.com/users/sitranok/gists{/gist_id}","starred_url":"https://api.github.com/users/sitranok/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sitranok/subscriptions","organizations_url":"https://api.github.com/users/sitranok/orgs","repos_url":"https://api.github.com/users/sitranok/repos","events_url":"https://api.github.com/users/sitranok/events{/privacy}","received_events_url":"https://api.github.com/users/sitranok/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-02-09T15:52:23Z","updated_at":"2016-02-09T17:34:55Z","closed_at":null,"body":"My apologies if this isn't the right place to ask this.  I'm using this plugin to generate angular-translate translation files for various languages and my original file has some text strings that include placeholders for variable replacement with angular-translate and the output I'm getting back from Google for some of the languages is translating the variable placeholder.\r\n\r\nFor example I've got one string that's \"Choose between {{minimum}} and {{maximum}}\" and in the Spanish file that's generated it ends up being \"Elija entre {{}} mínimo y máximo {{}}\".\r\n\r\nDoes anyone know of a pattern I could follow that would prevent those placeholders from being replaced in translation?"},"comment":{"url":"https://api.github.com/repos/dolanmiu/grunt-google-translate/issues/comments/181973159","html_url":"https://github.com/dolanmiu/grunt-google-translate/issues/3#issuecomment-181973159","issue_url":"https://api.github.com/repos/dolanmiu/grunt-google-translate/issues/3","id":181973159,"user":{"login":"sitranok","id":1186870,"avatar_url":"https://avatars.githubusercontent.com/u/1186870?v=3","gravatar_id":"","url":"https://api.github.com/users/sitranok","html_url":"https://github.com/sitranok","followers_url":"https://api.github.com/users/sitranok/followers","following_url":"https://api.github.com/users/sitranok/following{/other_user}","gists_url":"https://api.github.com/users/sitranok/gists{/gist_id}","starred_url":"https://api.github.com/users/sitranok/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sitranok/subscriptions","organizations_url":"https://api.github.com/users/sitranok/orgs","repos_url":"https://api.github.com/users/sitranok/repos","events_url":"https://api.github.com/users/sitranok/events{/privacy}","received_events_url":"https://api.github.com/users/sitranok/received_events","type":"User","site_admin":false},"created_at":"2016-02-09T17:34:55Z","updated_at":"2016-02-09T17:34:55Z","body":"I had actually implemented a similar approach, though using grunt-replace and a separate json file containing the replacement variables and original value.  I had that approach in place already to handle things like brand names that I didn't want translated and just hacked the angular variables in there as a stopgap.  Having that built in would make things a lot cleaner going forward, though I don't know if I will have time in the next few days.\r\n\r\nIf you do decide to go forward with implementing that yourself one thing I came across was that even if you replace the contents of the interpolation bindings with something untranslatable google translate will still sometimes mangle them.  I've seen things like \"{{}}minimum\" and \"{{and mimimum}}\" in the destination files that the replace didn't handle properly.  I ended up replacing the entire binding with a variable \"VAR_1\" and then replacing that with \"{{ minimum }}\" and haven't run into any issues with that approach yet."}}