sander1988 / Indego

Home Assistant Custom Component for Bosch Indego Lawn Mower
Apache License 2.0
96 stars 29 forks source link

Expose all used string for translation #178

Closed RolandE1204 closed 1 year ago

RolandE1204 commented 1 year ago

It would be nice if ALL used strings (State, Problems, ...) in the integration could be translated (I would be proud to do the translation to German)

LarsLautrup commented 1 year ago

I agree - and I volunteer to do the translations into Danish!

wimb0 commented 1 year ago

Good idea. I can help with Dutch

FBruynbroeck commented 1 year ago

👍 And me with French 😉

jm-73 commented 1 year ago

How is the work going with exposing the text strings to a language file? @RolandE1204 @LarsLautrup @wimb0 @FBruynbroeck

zmechu commented 1 year ago

Can help also in Polish. How to help? :-)

wimb0 commented 1 year ago

I've started working on the Dutch translation. First part is done, see https://github.com/jm-73/Indego/pull/196 To translate all strings (sensors/services etc.) more work needs to be done on the integration itself. For what I understand, every entry that needs to be translated needs a key and translation_key. See https://developers.home-assistant.io/docs/internationalization/custom_integration/ and https://developers.home-assistant.io/docs/internationalization/core

zmechu commented 1 year ago

Cant do it on github, so putting just here (pl.json)

{
    "config": {
        "abort": {
            "already_configured": "Ta kosiarka Bosch Indego została już skonfigurowana wcześniej!",
            "connection_error": "Błąd połączenia z Bosch Indego API!",
            "no_mowers_found": "Nie znaleziono żadnej kosiarki na tym koncie Bosch Indego!"
        },
        "step": {
            "mower": {
                "data": {
                    "mower_serial": "Numer seryjny kosiarki",
                    "mower_name": "Nazwa kosiarki"
                },
                "description": "Proszę wybrać numer seryjny kosiarki Bosch którą chcesz dodać"
            }
        }
    }
}
wimb0 commented 1 year ago

@zmechu I've added your pl.json to my pull request.

jm-73 commented 1 year ago

This pull request will be the next in line as soon as I get som positive results from testing the latest beta. Help us test the latest beta!

jm-73 commented 1 year ago

I have included the PR wich translates the config flow. If anyone wants to include the possibility to translate the whole integration, please make a PR to the devlop branch.