Load resx files for use with ngx-translate Angular translation library


313.0.0a year ago5 years agoMinified + gzip package size for @kneefer/ngx-translate-resx-http-loader in KB


NgX Translate ResX Http Loader Build Status npm version

Load resx files for use with ngx-translate Angular translation library.
Forked from ngx-translate-po-http-loader

This library uses ltx XML parser library in order to parse ResX files (XML-based).

To modify ResX files in friendly way I recommend ResX Resource Manager GUI. Available both as standalone Windows application and Visual Studio extension.


Using NPM

npm install @kneefer/ngx-translate-resx-http-loader


import { BrowserModule } from '@angular/platform-browser';
import { HttpClientModule, HttpClient } from '@angular/common/http';
import { TranslateResxHttpLoader } from '@kneefer/ngx-translate-resx-http-loader';

export function createTranslateLoader(http: HttpClient) {
  // Only first constructor parameter is required
  return new TranslateResxHttpLoader(http, 'trans.', 'assets/i18n', '.resx');

  imports: [
      loader: {
        provide: TranslateLoader,
        useFactory: createTranslateLoader,
        deps: [HttpClient]
  bootstrap: [AppComponent]
export class AppModule { }

Angular 9 and below

The newest (3.0.0) version is built for Angular 10 and ngx-translate 13. If you use Angular 9 or below please use following version:


RxJS 5 and below

If you can't use RxJS 6 (or at least 5.6.0-forward-compat.5) (RxJS introduces pipable operators in version 6) please use following version:


Old HttpModule

If you want to use deprecated HttpModule (Angular < 4.3.0) please use following version:




git clone https://github.com/kneefer/ngx-translate-resx-http-loader.git

Install dependencies

npm install


npm run build

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.