Frontend: Translate all the strings

Created on 26 Jul 2019  路  19Comments  路  Source: home-assistant/frontend

All strings that are visible in the UI should be translatable.

Todo:

  • [x] Cloud config panel
  • [x] User config panel
  • [x] Persons config panel
  • [x] Script editor
  • [x] Advanced mode toggle
  • [x] ZHA config panel
  • [ ] Days of the week
  • [ ] A lot more, in dev we have the language Test that makes it easy to spot untranslated strings
hacktoberfest help-wanted localization

All 19 comments

Would love to help, but I am not sure how the translation workflow works.
Furthermore, the developer documentation mentions a translation workflow, though the link to that document seems to be broken. Has it been moved to a new location?

That's in reference to doing the actual translation to another language. In terms of development we just need to use hass.localize(myStringToTranslate); instead of hard coding strings

That is very good to know, thanks @iantrich!

Cloud config panel has already been translated #3875

@bramkragten what exactly needs to be translated for Days of the Week and where can I find the mentioned language test?

@springstan the Test language can be found if you run the frontend in dev mode on the profile page at the bottom of the language picker.
image
image

Not sure about the days of the week, there was an issue for it... https://github.com/home-assistant/ui-schema/issues/255

@bramkragten thank you very much! Yeah I saw that and could not figure it out either...
@ljmerza do you remember what #2657 was about?

@ljmerza do you remember what #2657 was about?

It was for the calendar at the time. Not needed at the moment, but would be a nice to have

@ljmerza thanks for the quick answer, it really helps understanding the issue.
And yeah I agree that would be a nice feature to have.

on that note, @ljmerza, when are you brining calendar card to core 馃槣

on that note, @ljmerza, when are you brining calendar card to core 馃槣

I wish but it's grown into a monster and a nasty hack just to get momentjs locale working for everyone. Would take a ton of work to get to HA core standards.

Really, I need days of the week in HA so I don't have to import them in the card anymore ;-)

I have no qualms with us adding days of the week to our translations even if we're not using them currently.

@ljmerza are there any specifc files where the days of the week need to be translated? :) I would like to translate them but I am not exactly certain which files I would have to modify.

@springstan no not currently, they woud be needed if calendar card was added to core.

@ljmerza okay, good to know. So Days of the week should probably be removed from this issue.

Hi, could this be translated, or edited with lovelace yaml?
image
image

Don't respond on old closed issues. And yes you can translate that on Lokalise, it is the state of the alarm panel.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

agneevX picture agneevX  路  3Comments

martinhoess picture martinhoess  路  3Comments

bmf7777 picture bmf7777  路  3Comments

aaron9060 picture aaron9060  路  3Comments

move[bot] picture move[bot]  路  3Comments