ngx-admin-lte icon indicating copy to clipboard operation
ngx-admin-lte copied to clipboard

Problem with ngx-translate

Open fabioformosa opened this issue 7 years ago • 3 comments
trafficstars

I'm submitting a ... (check one with "x")

[] bug report => check the FAQ and search github for a similar issue or PR before submitting
[x] support request => check the FAQ and search github for a similar issue before submitting
[ ] feature request

Scenario:

  • I've imported ngx-admin-lte module in my app.
  • I've set ngx-translate in my app (default config).
  • Finally I've created assets/i18n/en.json in order to translate my custom labels.

Issue Now my labels are translated but not anymore the labels of ngx-admin-lte. I suppose i18n files of ngx-admin-lte are clashing with i18n files of my app.

I've looking for in around, and I've found this https://github.com/ngx-translate/http-loader/issues/6 I can't believe it. Likely, there is a mistake in my configuration.

How could I solve?

fabioformosa avatar Mar 23 '18 10:03 fabioformosa

As far as I know you should redefined your own translation in a file that contains those of ngx-admin-lte too

TwanoO67 avatar Mar 23 '18 10:03 TwanoO67

So, should I copy&paste labels defined in ngx-admin-lte in my translation files? sounds bad.

fabioformosa avatar Mar 23 '18 11:03 fabioformosa

@fabioformosa Yes, you need to copy them.

MihaiHoriaPopescu avatar Apr 16 '18 14:04 MihaiHoriaPopescu