Creating Library and Implement Ngx-Translate

Hi All,
I am creating a custom library for ionic app. I want to localize the library and integrate this with the ionic app.
Scenario: When the language is changed the ionic app the content of the ionic library should get translated along with the content of the ionic app. Can you all suggest how we can achieve this?