Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

@angular/ssr and i18n - howto missing #26449

Closed
spock123 opened this issue Nov 21, 2023 · 4 comments
Closed

@angular/ssr and i18n - howto missing #26449

spock123 opened this issue Nov 21, 2023 · 4 comments

Comments

@spock123
Copy link

Which @angular/* package(s) are relevant/related to the feature request?

localize

Description

When combining @angular/ssr and internationalization ($localize/i18n) it will not work out of the box.

From reading documentation there is no mention about this afaik and it's not clear to me how to achieve this common combination (I should suspect).

It's possible to make it work by hacking around the generated server.ts and by fiddling with base hrefs, but it becomes a strange hacky solution in the most cases.

Proposed solution

Provide some form of documentation / examples of how to add internationalization with i18n. I know we are many people struggling with this.

Alternatives considered

Hacking around server.ts and base hrefs.

@JeanMeche JeanMeche transferred this issue from angular/angular Nov 21, 2023
@spock123
Copy link
Author

Thanks, @JeanMeche

@alan-agius4
Copy link
Collaborator

Duplicate of #25726

@alan-agius4 alan-agius4 marked this as a duplicate of #25726 Nov 22, 2023
@alan-agius4 alan-agius4 closed this as not planned Won't fix, can't repro, duplicate, stale Nov 22, 2023
@spock123
Copy link
Author

I suppose we're not supposed to use i18n with ssr?
ng add@angular/localize + ng add @angular/ssr will break, unfortunately.

@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Dec 23, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants