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

Investigate client side localization. #774

Open
Anduin2017 opened this issue Feb 1, 2020 · 8 comments
Open

Investigate client side localization. #774

Anduin2017 opened this issue Feb 1, 2020 · 8 comments

Comments

@Anduin2017
Copy link
Member

Anduin2017 commented Feb 1, 2020

What do you suggest we do?

image

Now that we have produced many versions of the Kahla app. But the app still could not switch between multiple languages.

I have read the Angular localization document. But it seems that localization was done in the building process. After the app is built, it can't be changed.

As we all known, Kahla is deployed behind a CDN. The CDN servers reverse-proxy Kahla will cache all files passed. Server-side app localization is not available.

And we have provided client-side Kahla based on the electron. We shall deliver the app once and the user can switch between different languages easily. Current Angular localization can't make it.

So is there any way for us to deliver the Kahla app with multiple languages switchable?

Additional context

https://angular.io/guide/i18n

@Anduin2017
Copy link
Member Author

@hv0905
Copy link
Member

hv0905 commented Feb 3, 2020

The i18n team seems WIP to support client side multilanguage (checkout this issue)

And there is a library can make it called ngx-translate and transloco

@Anduin2017
Copy link
Member Author

Seems ngx-translate have so many stars and considered to be trusted.

So we need to investigate if it is suitable for our current app.

@Anduin2017
Copy link
Member Author

Seems ngx-translate is deprecated. Seems the only solution for us is transloco.

@hv0905
Copy link
Member

hv0905 commented Feb 6, 2020

I think we can wait for angular v9.1 in which the client-side locallize is natively support in angular.

@Anduin2017
Copy link
Member Author

Wow. Cool! So, just wait.

@Anduin2017 Anduin2017 added this to Under consideration in Kahla Project via automation Feb 18, 2020
@hv0905
Copy link
Member

hv0905 commented Mar 5, 2020

It seems client-side locallization won't be available in ng9 now. We have to use transloco.

@Anduin2017
Copy link
Member Author

Ohh, that's so bad. Yeah.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Kahla Project
  
Under consideration
Development

No branches or pull requests

2 participants