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

Use this plugin to localize html files? #30

Closed
emir-drustinac opened this issue Jul 25, 2018 · 1 comment
Closed

Use this plugin to localize html files? #30

emir-drustinac opened this issue Jul 25, 2018 · 1 comment

Comments

@emir-drustinac
Copy link

emir-drustinac commented Jul 25, 2018

Can this plugin be used to localize "strings" in html files? If yes, how should it be done?
For example: i have an app and want to let the user change the language in the app.

I've tried something like this, but it doesnt work:
de.json
{
...
"app" : {
"btn_login": "Einloggen"
}
}

en.json
{
...
"app" : {
"btn_login": "Login"
}
}

login.html
...
<button id="btn_login">btn_login</button>

@rodrigograca31
Copy link
Collaborator

No, this plugin doesnt do that.
Its from the native translation files, not HTML, use i18n
https://angular.io/guide/i18n

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

2 participants