Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Angular translate plugin not firing up

I have installed the Angular Translator plugin but it doesn't seems to work.

  • I've tried using the default shortcut: "ctrl + alt + T";
  • I've tried changing the shortcut to "alt + t";
  • I've tried using it through the command prompt: enter image description here

But nothing is happening and I don't get any error messages.

I'm using VSCode 1.38.1 and Angular 8.

Any idea why I'm not able to use this plugin? I will also accpet a reliant alternative as an answer to my question.

Many thanks.

like image 271
MHogge Avatar asked Sep 23 '19 10:09

MHogge


1 Answers

See the documentation and make sure that your solution has both the folder created and the package installed.

Requirements

There should be an i18n folder inside the src folder with an en.json File.

This extension assumes that Angular Project should has the npm package @ngx-translate/core installed.

Known Issues

The extension will not work if the requirement specified above is not met. It will not create a file automatically in case it is not found.

like image 92
Igor Avatar answered Sep 28 '22 10:09

Igor