Hi everyone, 

I have created angular project with angular and django rest api. and used 
ngx-translate for multiple language support.
and I need a server side rendering for seo of my site.


So when my first landing page render from from node express server, split 
time it comes in english after it translates in a selected language. 

I have added 

export class TranslateUniversalLoader implements TranslateLoader {
  getTranslation(lang: string): Observable<any> {
    return of(TRANSLATIONS[lang].default);
  }
}






TranslateModule.forRoot({
  loader: {
    provide: TranslateLoader,
    useClass: TranslateUniversalLoader,
    // deps: [HttpClient]
  }
}),




Is there any solution ?



-- 
You received this message because you are subscribed to the Google Groups 
"Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to angular+unsubscr...@googlegroups.com.
To post to this group, send email to angular@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to