Closed mackelito closed 8 months ago
Transloco, Scoped Libs
Yes
I'm using nx and standalone feature libraries and It feels like scope is not really used..
provideTranslocoScope({ scope: 'admin-feature', alias: 'admin', loader, }), ],
{ "admin-feature": { "titel": "A title" } }
in the component template I have to use {{ t('admin-feature.title') }}
I was expecting that when using alias I could do {{ t('admin.title') }} and that it would pick the string from admin-feature.title
{{ t('admin.title') }}
admin-feature.title
could not create one using CodeSandBox or Stackblitz
No response
Transloco: 4.3.0 Angular: 15.2.0 Node: 20.6 Package Manager: NPM OS: MacOS
No
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 fromadmin-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