Core: Load translation files in each compoment

Created on 5 Oct 2016  路  10Comments  路  Source: ngx-translate/core

Hello @ocombe,
We are upgrading our app from Angular 1.5.3 to Angular 2 using Angular CLI. In each component, we have small translation files for each language.
Can you support this kind of load in next version? Since there are some advantages with small translation files for each component rather than a big one.
Thank you!

feature request

Most helpful comment

It's possible to do it using the shouldMerge option of the setTranslation method, but it's a bit complicated because you'll have to use the MissingTranslationHandler as well to bypass the loader when translations are missing.
I'll keep this opened as a feature request.

All 10 comments

It's possible to do it using the shouldMerge option of the setTranslation method, but it's a bit complicated because you'll have to use the MissingTranslationHandler as well to bypass the loader when translations are missing.
I'll keep this opened as a feature request.

That would be nice! Thanks! ;)

+100

Just to clarify, partial loading isn't supported right now? If not, then consider this a +1 for this feature request :)

+1

+1

+1

+1

+1
Any update?

+1
update?

Was this page helpful?
0 / 5 - 0 ratings