ngx-translate / core

The internationalization (i18n) library for Angular
MIT License
4.5k stars 572 forks source link

Translations do not show in widgets packaged with ng-packagr #1184

Open marcobuschini opened 4 years ago

marcobuschini commented 4 years ago

Current behavior

In the repository https://github.com/marcobuschini/parking-widget (angular9 branch) I have a simple test widget (packaged with ng-packagr) that should translate strings via ngx-translate. When I change the language (both in tests and in real usage) translation files for the package are correctly loaded from the remote end, but no translation is actually shown: the text stays in the original language.

Expected behavior

Strings should be translated.

How do you think that we should fix this?

I do not know if this is a bug in my code or in yours. I don't know how to further investigate the issue.

Minimal reproduction of the problem with instructions

The repository that contains the failing package is https://github.com/marcobuschini/parking-widget (angular9 branch) while the project I use to test it is at https://github.com/marcobuschini/interview-november-2019

Environment


ngx-translate version: 11.0.1
Angular version: 9.0.0

Browser:
- [ ] Chrome (desktop) version 79.0.3945.130

For Tooling issues:
- Node version: 12.13.0
- Platform: Linux

Others:
marcobuschini commented 4 years ago

Nobody?