Skip to content

@angular/localize with universal is not production ready / too complex / too many steps #37106

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

Closed
p3x-robot opened this issue May 14, 2020 · 11 comments
Labels
area: i18n Issues related to localization and internationalization area: server Issues related to server-side rendering feature Issue that requests a new feature
Milestone

Comments

@p3x-robot
Copy link

🚀 feature request

It took a few years so that Universal is ready and simple to use it and is very good for SEO by now.
Now, I start using Universal, but I am blocked by the way @angular/localize is implemented. It is overly complex and if I want to simple want switch to another language I would have to fire up a new application, which is a huge overhead.

Relevant Package

This feature request is for @angular/localize with Universal.

Description

Is there going to be a simpler solution for a simple language switcher without having to fire up a new app and have to build multiple apps instead just 1 step?

Describe the solution you'd like

Simplify the Angular Localize.

Describe alternatives you've considered

There is alternative eg. https://github.com/ngx-translate/core, but it is OSS and you never know what it is going to happen next year, they can abandon quickly.
It would good, if it was happening withing Google.

@pkozlowski-opensource pkozlowski-opensource added area: i18n Issues related to localization and internationalization area: server Issues related to server-side rendering feature Issue that requests a new feature labels May 14, 2020
@ngbot ngbot bot modified the milestone: Backlog May 14, 2020
@petebacondarwin
Copy link
Contributor

Hi @p3x-robot - thanks for submitting this. To help me understand what action can be taken here could you clarify what you mean by:

I am blocked by the way @angular/localize is implemented. It is overly complex and if I want to simple want switch to another language I would have to fire up a new application, which is a huge overhead.

What is blocking you?
What do you mean by fire up a new application?
Are you talking about the browser or the server?
What would be the ideal solution for you in concrete terms?

@p3x-robot
Copy link
Author

Hi @p3x-robot - thanks for submitting this. To help me understand what action can be taken here could you clarify what you mean by:

I am blocked by the way @angular/localize is implemented. It is overly complex and if I want to simple want switch to another language I would have to fire up a new application, which is a huge overhead.

What is blocking you?
What do you mean by fire up a new application?
Are you talking about the browser or the server?
What would be the ideal solution for you in concrete terms?

Basically, in the official guide, there is no info about how to implement with SSR with localization without having multiple SSR apps. The only way is to make it to fire every localization in a new SSR app.
Is there a way to implement localization with 1 SSR app?

I talk about this => https://angular.io/guide/i18n
If we use without SSR, it is simple, because, you just deploy in the proper dictories (like /var/www/domain.com/en and /var/www/domain.com/es and /var/www/domain.com/hu etc.. and it works. But there is no info how to use it with SSR, which is crucial to have a complete solution. In AngularJs it is much simpler, although there is no SSR...

So, I feel, the SSR and localization are not friends at the moment.

@p3x-robot
Copy link
Author

this guide is good (without SSR):
https://dev.to/angular/deploying-an-i18n-angular-app-with-angular-cli-2fb9

But what about SSR AND localization?

@petebacondarwin
Copy link
Contributor

OK now I understand. I don't know much about how SSR works. Do you have a link to a guide for that? Are you using @angular/universal only? Or are you using something like https://github.com/scullyio/scully?

@petebacondarwin
Copy link
Contributor

petebacondarwin commented May 14, 2020

It looks like i18n support is still on the roadmap for Scully: https://github.com/scullyio/scully/blob/master/docs/roadmap.md#L12

and there is quite some discussion going on here: scullyio/scully#318

@petebacondarwin
Copy link
Contributor

It seems there is also discussion on the Universal repo: angular/angular-cli#25726

Transferring this issue there as it is not specifically a framework issue, since the @angular/localize package is unlikely to need to change to improve this support.

@petebacondarwin
Copy link
Contributor

Actually I don't have rights to transfer it :-/

@petebacondarwin
Copy link
Contributor

But I am going to close this and suggest that you continue the discussion at angular/angular-cli#25726

@p3x-robot
Copy link
Author

ok, thanks, got it

@spock123
Copy link

Fwiw, check this article about supporting i18n with Universal:

https://medium.com/@marcozuccaroli/a-multilanguage-application-with-angular-universal-6e5fe4c2d81c

@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 Jul 11, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area: i18n Issues related to localization and internationalization area: server Issues related to server-side rendering feature Issue that requests a new feature
Projects
None yet
Development

No branches or pull requests

4 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy