angular-translate
angular-translate copied to clipboard
Angular Translate is not working
Subject of the issue
var $translate = $filter('translate'); $scope.titleDefault = $translate('EMPLOYEE_ADMIN_TAB_SEARCH'); on loading of application it's working fine but if i am Refreshing it,then it is showing the 'EMPLOYEE_ADMIN_TAB_SEARCH' as it is, i don't no why. can any one please suggest me any solution for it.plz
Your environment
- version of angular-translate
- version of angular->1.4.7
- which browser and its version ->Chrome latest
Steps to reproduce
Tell us how to reproduce this issue. Please provide a working demo, you can use this template as a base.
Expected behaviour
'EMPLOYEE_ADMIN_TAB_SEARCH' this is the key for json file from there it get the value like 'search tab' if we refresh the application also.
Actual behaviour
'EMPLOYEE_ADMIN_TAB_SEARCH' but if we refresh it is showing as it is simple text like 'EMPLOYEE_ADMIN_TAB_SEARCH' i dont no y.
Hello,
as we had already mentioned in the issue's template, we need a working and as minimal as possible demo covering your specific use case or issue.
Follow these steps:
- Please open this plnkr base.
- Fork it (at the top left).
- Ensure the version of AngularJS and angular-translate is correct.
- Ensure all angular-translate plugins are available; reduce and remove anything you can.
- Write a minimal as possible demo for your specific issue.
- Save and freeze. Provide us the final link to your demo.
https://plnkr.co/edit/sqPF45?p=preview