angular-translate icon indicating copy to clipboard operation
angular-translate copied to clipboard

Angular Translate is not working

Open kumar04anil opened this issue 6 years ago • 2 comments

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.

kumar04anil avatar Apr 11 '18 06:04 kumar04anil

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:

  1. Please open this plnkr base.
  2. Fork it (at the top left).
  3. Ensure the version of AngularJS and angular-translate is correct.
  4. Ensure all angular-translate plugins are available; reduce and remove anything you can.
  5. Write a minimal as possible demo for your specific issue.
  6. Save and freeze. Provide us the final link to your demo.

knalli avatar Apr 11 '18 07:04 knalli

https://plnkr.co/edit/sqPF45?p=preview

kumar04anil avatar Apr 11 '18 08:04 kumar04anil