Closed tflori closed 7 years ago
how to define what we get from parent? maybe another loader gets different parameters?
i think translateserve should not know anything about the configuration itself. it is :any
and therefore it does not know what is inside.
A module is a subset of translations. The idea is to store translations in different files and load them when you enter this module. For example you need only text for managing your own content but when you enter the administration area you may need additional text like "CHANGE_USER_QUOTA".
Basically it should be configurable in the TranslateConfig:
To use the module from TranslateService:
There is still a question how to use the module from component and pipe. I think we will have two options: add this parameter as
translate-module="admin"
or define it in the component or even in a parent component (I don't know if this is possible).