Replies: 2 comments 2 replies
-
There are a lot of examples (playground code, playground demo, codesnadbox, scope configuration). So maybe I don't get your question or you didn't review/understand the documentation. If you have reviewed all the related material but still have a question, please provide a reproduction link. |
Beta Was this translation helpful? Give feedback.
-
Perhaps some background is needed here :) We have a Nx workspace and our apps are basically just some routes, app.component, imports and providers (standalone applications) In our standalone features we use the inline loader to load the translations.
This works fine as expected. Now to the tricky part.... The apps then have a custom HttpLoader
this then returns all the keys that needs client specific translations. My expectations was that if I have the scope of 'featureA', I could then set a alias to use only within the components of featureA
I should be able to do the following in the template But I could not get that working... however, using the scope worked. I'm fine with using the scope... but it would be cleaner if I did not need to use any prefix at all in the templates 😄 ok.. now this turned into a long comment.. hope I made some sense 😂 |
Beta Was this translation helpful? Give feedback.
-
Is there an existing issue for this?
Which Transloco package(s) are the source of the bug?
Transloco, Scoped Libs
Is this a regression?
Yes
Current behavior
I'm using nx and standalone feature libraries and It feels like scope is not really used..
in the component template I have to use
{{ t('admin-feature.title') }}
Expected behavior
I was expecting that when using alias I could do
{{ t('admin.title') }}
and that it would pick the string from
admin-feature.title
Please provide a link to a minimal reproduction of the bug, if you won't provide a link the issue won't be handled.
could not create one using CodeSandBox or Stackblitz
Transloco Config
No response
Please provide the environment you discovered this bug in
Browser
No response
Additional context
No response
I would like to make a pull request for this bug
No
Beta Was this translation helpful? Give feedback.
All reactions