{"action":"closed","issue":{"url":"https://api.github.com/repos/angular-translate/angular-translate/issues/980","labels_url":"https://api.github.com/repos/angular-translate/angular-translate/issues/980/labels{/name}","comments_url":"https://api.github.com/repos/angular-translate/angular-translate/issues/980/comments","events_url":"https://api.github.com/repos/angular-translate/angular-translate/issues/980/events","html_url":"https://github.com/angular-translate/angular-translate/issues/980","id":64515222,"number":980,"title":"SEO: Angular works but Angular-translate is not rendered by googlebot","user":{"login":"nilsi","id":793881,"avatar_url":"https://avatars.githubusercontent.com/u/793881?v=3","gravatar_id":"","url":"https://api.github.com/users/nilsi","html_url":"https://github.com/nilsi","followers_url":"https://api.github.com/users/nilsi/followers","following_url":"https://api.github.com/users/nilsi/following{/other_user}","gists_url":"https://api.github.com/users/nilsi/gists{/gist_id}","starred_url":"https://api.github.com/users/nilsi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nilsi/subscriptions","organizations_url":"https://api.github.com/users/nilsi/orgs","repos_url":"https://api.github.com/users/nilsi/repos","events_url":"https://api.github.com/users/nilsi/events{/privacy}","received_events_url":"https://api.github.com/users/nilsi/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-03-26T12:37:00Z","updated_at":"2015-03-26T23:08:06Z","closed_at":"2015-03-26T23:08:06Z","body":"Im not sure if this is a problem in my code or if its angular-translate.\r\n\r\nWhen my homepage getting indexed by googlebot the translations is not being rendered. However, if I browse my homepage myself it works perfectly. Googlebot renders my regular angular code, which makes me think it's something in angular-translate.\r\n\r\n```\r\n'use strict';\r\n\r\n\r\nvar translationsSE = {\r\n  START: \t\t\t\t'translations',\r\n  START_TEXT: \t\t\t'translations'\r\n};\r\n\r\nvar translationsKR = {\r\n  START: \t\t\t\t'translations',\r\n  START_TEXT: \t\t\t'translations'\r\n};\r\n\r\nvar translationsEN= {\r\n  START: \t\t\t\t'translations',\r\n  START_TEXT: \t\t\t'translations'\r\n};\r\n\r\nvar app = angular\r\n  .module('app', [\r\n  \t'pascalprecht.translate',\r\n  ]);\r\n\r\napp.config(['$translateProvider', function ($translateProvider) {\r\n  $translateProvider.translations('en_US', translationsEN)\r\n  \t\t\t\t\t.translations('sv_SE', translationsSE)\r\n  \t\t\t\t\t.translations('ko_KR', translationsKR)\r\n  \t\t\t\t\t.determinePreferredLanguage()\r\n  \t\t\t\t\t.fallbackLanguage('sv_US');\r\n}]);\r\n\r\napp.controller('LanguageController', ['$translate', '$scope', function ($translate, $scope) {\r\n  $scope.changeLanguage = function (langKey) {\r\n    $translate.use(langKey);\r\n\t$('.typed-text').text($translate.instant('START'));\r\n  };\r\n}]);\r\n\r\n//This is working fine even with googlebot\r\napp.controller('TestController', ['$scope', function($scope) {\r\n\t$scope.test = 'This shows that usual angular stuff renders';\r\n}]);\r\n\r\napp.controller('ContactController', ['$scope', '$http', function ($scope, $http) {\r\n    $scope.submit = function() {\r\n    \t$scope.loading = true;\r\n\t    $http({\r\n\t        url: '/contact',\r\n\t        method: 'POST',\r\n\t        params: this.formData\r\n\t    }).success(function () {\r\n\t        $scope.success = true;\r\n\t    }).error(function () {\r\n\t\t\t$scope.error = true;\r\n\t    }).finally(function () {\r\n\t    \t$scope.loading = false;\r\n\t    });\r\n    };\r\n}]);\r\n\r\napp.controller('TypedController', ['$translate', function ($translate) {\r\n\t$('.typed-text').typed({\r\n\t    strings: [$translate.instant('START') + '^20'],\r\n\t    typeSpeed: 5,\r\n\t    callback: function () {\r\n\t    \t$('.cover-description').css('visibility', 'visible').addClass('animated fadeInUp');\r\n\t    \t$('.scroll').css('visibility', 'visible').addClass('animated fadeInUp');\r\n\t    }\r\n\t});\r\n}]);\r\n```\r\n\r\nSo this angular snipped from my TestController is being rendered by googlebot:\r\n```\r\n<p>{{test}}</p>\r\n```\r\nBut my translations are not:\r\n```\r\n<p translate>START_TEXT</p>\r\n```\r\n\r\nSame happens if I generating a snapshot from http://service.prerender.io/\r\n\r\nAny idea whats is wrong here?\r\n\r\n\r\n\r\n"}}