Skip to content

expcapitaldev/ng2-translate-po-loader

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Description

Use po files with ng2-translate

Usage:

import { Http } from '@angular/http';

import { TranslatePoLoader } from '@biesbjerg/ng2-translate-po-loader';

export function createTranslateLoader(http: Http) {
	return new TranslatePoLoader(http, 'assets/i18n', '.po');
}

@NgModule({
	imports: [
		BrowserModule,
		HttpModule,
		TranslateModule.forRoot({
			provide: TranslateLoader,
			useFactory: createTranslateLoader,
			deps: [Http]
		})
	],
	bootstrap: [AppComponent]
})
export class AppModule { }

About

Use po files with ng2-translate

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 100.0%