ngx-translate .instant returns key instead of value

You are using the TranslateHttpLoader which makes an HTTP request when it’s asked for translations – translate.use(‘en’). If you call the instant(messageKey) method before the HTTP call returns, ngx-translate will return the key, since it has no translations yet. So you should use the get(messageKey) method to get the translation – it’s asynchronous and returns … Read more

Angular 5 internationalization

After spending time looking into this, I thought I’d post the main differences I found between ngx-translate and Angular-i18n: Angular only works with one language at a time, you have to completely reload the application to change the lang. The JIT support only means that it works with JIT, but you still have to provide … Read more