ngx-translate / core

The internationalization (i18n) library for Angular
MIT License
4.5k stars 572 forks source link

ngx-translate not Working in IE11 #1226

Open Abhishekism9450 opened 4 years ago

Abhishekism9450 commented 4 years ago

I am trying to build my application with Angular 9.1.11 , I have installed @ngx-translate/core and @ngx-translates/http-loader. When running my application it works fine in Chrome and Edge but gives Error in IE. Error I got is : SCRIPT1002: Syntax Error Vendor.js { class TranslateLoader}

Please let me know about a solution to resolve.

dandreamatias commented 4 years ago

I had the same issue in the same Angular version. After a downgrade in the the package.json at version: "@ngx-translate/core": "11.0.1", "@ngx-translate/http-loader": "4.0.0",

now works fine on IE 11

Wintermoose commented 4 years ago

ngx-translate version 13 is meant for Angular10+ (angular10 can automatically downlevel library bundles, so the ES5 bundle meant for internet explorer is missing in the package). If you use Angular9, version 12.x should work fine (it does for us)

Abhishekism9450 commented 4 years ago

@Wintermoose @MatiasDandrea yes , I was facing a problem in bundles so I used a third party package and that runs perfectly fine for me.

NoorMohammed993 commented 3 years ago

now works fine on IE 11 works for me