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

New translation module #59

Open
MichaelLangbein opened this issue Jul 21, 2021 · 0 comments
Open

New translation module #59

MichaelLangbein opened this issue Jul 21, 2021 · 0 comments

Comments

@MichaelLangbein
Copy link
Collaborator

MichaelLangbein commented Jul 21, 2021

The current translation module is unbearable. Find or create a new one.

Examples of how own directive might look:

[innerHTML] = " key | translateKey "`

or

[innerHTML]="<h1> {{key}} </h1> <p> {{ key2 }} </p> | translateLiteral"

Second way seems more general.

Note that angular's own built in i18n becomes more and more the go to:
https://angular.io/guide/i18n
But it does not allow live switching. Requires two versions of the app to be deployed.

@eschoepfer : will do research if we can lose the live translation of the site and use angular's static i18n instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant