jsverse / transloco

🚀 😍 The internationalization (i18n) library for Angular
https://jsverse.github.io/transloco/
MIT License
2.01k stars 195 forks source link

fix(transloco): 🐛 fixed generated scope name in subdirectories #738

Open JordanW9232 opened 9 months ago

JordanW9232 commented 9 months ago

PR Checklist

Please check if your PR fulfills the following requirements:

PR Type

What kind of change does this PR introduce?

What is the current behavior?

Issue Number: 559

What is the new behavior?

Using a file in a nested directory such as "i18n/nested-scopes/admin-page/en.json" will generate the scope name as "nestedScope.adminPage" rather than "nestedScopeAdminPage".

Does this PR introduce a breaking change?

Other information

stackblitz[bot] commented 9 months ago

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

shaharkazaz commented 9 months ago

@JordanW9232 Please refer to my comment here