Skip to content

Feature/i18n loading and persistence improvements#29

Open
DenisValcke wants to merge 5 commits into
IbenTesara:mainfrom
DenisValcke:feature/i18n--loading-and-persistence-improvements
Open

Feature/i18n loading and persistence improvements#29
DenisValcke wants to merge 5 commits into
IbenTesara:mainfrom
DenisValcke:feature/i18n--loading-and-persistence-improvements

Conversation

@DenisValcke

@DenisValcke DenisValcke commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

Hi @IbenTesara

Just some proposals for fixes for the i18n lib. Can you take a look and give your opinion on them?
I think the second commit could be a fix for this issue as well: #27, or at least as close to a fix as possible without needing to wait on Navigation changes (end) in a resolver or create side-effects on that process.

Note: These changes are theoretical. I've not yet been able to actually test them within my own codebase.

@IbenTesara IbenTesara self-requested a review July 10, 2026 08:24
@IbenTesara IbenTesara added the bug Something isn't working label Jul 10, 2026
*
* By only switching out the translations when they are loaded, we close that gap.
*/
return this.translateService.currentLoader

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks really good! Let me know once you've been able to test this in the test-application, then this can be merged 🙏

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've expanded the test application to include two lazy-loaded libs with scoped translations. One of both libs has a resolver with a delay to give an accurate feel of how it would react to a delayed lib loading. I've also added some basic styling to visualize this loading state so that the test application doesn't appear broken during that delay.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

…ons and a resolver that mocks delay of the page (in lib-2) to test and demo ngx-i18n implementations
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants