evcc-io / evcc

Sonne tanken ☀️🚘
https://evcc.io
MIT License
3.25k stars 584 forks source link

Multilanguage Support #232

Closed Tscherno closed 3 years ago

Tscherno commented 4 years ago

Wenn ich es richtig sehe, sind die Frontendtexte momentan statisch und nur auf Deutsch verfügbar. Eine Auslagerung in eine Sprachdatei und die Unterstützung mehrerer Sprachen wäre aus offensichtlichen Gründen wichtig.

issue-label-bot[bot] commented 4 years ago

Issue-Label Bot is automatically applying the label feature_request to this issue, with a confidence of 0.92. Please mark this comment with :thumbsup: or :thumbsdown: to give our bot feedback!

Links: app homepage, dashboard and code for this bot.

andig commented 4 years ago

Mir ist der Anwenderkreis nicht klar. Gibt es internationale Nutzer? Ich schließe das Thema erstmal als Duplikat von #53.

Tscherno commented 4 years ago

Warum sollte es die nicht geben? Unterstützung von Englisch wäre für den Anfang sicher mehr als ausreichend.

stepir commented 3 years ago

Hi

I'd like to have the front-end in English. If possible I'm happy to help with the translation although I can see you Guys have a better English than mine :-D

andig commented 3 years ago

This would need a PR for the frontend part. I don‘t have muxh use for it as we‘re pretty much focused on the German market.

stepir commented 3 years ago

that's a shame as it's basically few terms in three files?

Bezug / Import -> assets/js/components/SiteDetails.vue
Einspeisung / Export -> assets/js/components/SiteDetails.vue
Erzeugung / Production -> assets/js/components/SiteDetails.vue
Batterie / Battery -> assets/js/components/SiteDetails.vue
Sofort / Max -> assets/js/components/Mode.vue
Leistung / Power -> assets/js/components/LoadpointDetails.vue
Geladen / Charged -> assets/js/components/LoadpointDetails.vue
Reichweite / Range  -> assets/js/components/LoadpointDetails.vue
Restzeit / Left -> assets/js/components/LoadpointDetails.vue

any chance you could consider set them as variable that a user can configure in evcc.yaml?

andig commented 3 years ago

any chance you could consider set them as variable that a user can configure in evcc.yaml?

No, that's not where it belogs. Would accept a proper PR though.

/cc @naltatis regarding multi-language UI

naltatis commented 3 years ago

Shouldn't be to complicated to build. I can make the initial implementation and add English.

stepir commented 3 years ago

Happy to help

naltatis commented 3 years ago

@stepir I've created a PR with i18n support. I hope I cached all German text. Please review the PR.

andig commented 3 years ago

Great work, thank you @naltatis

andig commented 3 years ago

@stepir where are you coming from to take an interest in an english version?

stepir commented 3 years ago

@stepir where are you coming from to take an interest in an english version?

absolutely!!

evcc is great, look how it's following my production curve even on cloudy days with constant drops/gains

image

I reviewed @naltatis PR and looks good to me. How can I help?

thierolm commented 3 years ago

How can I help?

How about providing an Italian language file (it.js), based on https://github.com/andig/evcc/blob/master/assets/js/i18n/en.js ?

;-)

stepir commented 3 years ago

absolutely - although I'm a believer of using EN everywhere :-)

language file here https://github.com/andig/evcc/compare/master...stepir:patch-1

thierolm commented 3 years ago

Cool! Don't forget to press the create pull request button.

RTTTC commented 1 year ago

@stepir Hey, are you still around? Italian translation is way behind the evcc progress now, could you update it ? EN https://github.com/evcc-io/evcc/blob/master/assets/i18n/en.toml IT https://github.com/evcc-io/evcc/blob/master/assets/i18n/it.toml

stepir commented 1 year ago

@stepir Hey, are you still around? Italian translation is way behind the evcc progress now, could you update it ? EN https://github.com/evcc-io/evcc/blob/master/assets/i18n/en.toml IT https://github.com/evcc-io/evcc/blob/master/assets/i18n/it.toml

hey @RTTTC it's done here https://github.com/evcc-io/evcc/compare/master...stepir:evcc:patch-4

andig commented 1 year ago

@stepir feel free to open PR when you're ready and don't forget to send an email for contributor token!

andig commented 1 year ago

Mir ist der Anwenderkreis nicht klar. Gibt es internationale Nutzer?

We sure have come a long way since... 😻