All Downloads are FREE. Search and download functionalities are using the official Maven repository.

src.app.app.translate.factory.ts Maven / Gradle / Ivy

There is a newer version: 3.0.0
Show newest version
import { TranslateHttpLoader } from '@ngx-translate/http-loader';
import { HttpClient } from '@angular/common/http';
import { MissingTranslationHandler, MissingTranslationHandlerParams } from '@ngx-translate/core';


export function HttpLoaderFactory(http: HttpClient) {
  return new TranslateHttpLoader(http, 'assets/i18n/', '.json');
}

export class DefaultMissingTranslationHandler implements MissingTranslationHandler {
    handle(params: MissingTranslationHandlerParams) {
        return params.key + '*';
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy