Giter VIP home page Giter VIP logo

Comments (7)

dhover avatar dhover commented on August 20, 2024 1

I also would like to have the directions translated in Dutch. I' m using Home Assistant in English language because I like the original menu's and messages for troubleshooting.

from compass-card.

rainer-geiger avatar rainer-geiger commented on August 20, 2024 1

Ok, cool, that's actually just easier for me ;-)

  • Corrected directions->south from "Süd" to "Süden"
  • Added strings for common and editor
{
  "common": {
    "version": "Version",
    "description": "Zeigt einen Kompass mit einem Indikator in Richtung des Entitätswertes an",
    "invalid_configuration": "Ungültige Konfiguration",
    "no_entity": "Entität nicht konfiguriert",
    "offset_not_a_number": "Richtungs-Offset ist keine Zahl",
    "invalid": "ungültig",
    "on": "An",
    "off": "Aus"
  },
  "editor": {
    "name": "Name",
    "optional": "Optional",
    "entity": "Entität",
    "required": "Benötigt",
    "primary": "Richtung",
    "secondary": "Sekundär",
    "indicator": "Indikator",
    "direction": "Richtung",
    "offset": "Offset",
    "show": "Zeige",
    "north": "Norden",
    "toggle": "Umschalten"
  },
  "directions": {
    "north": "Norden",
    "east": "Osten",
    "south": "Süden",
    "west": "Westen",
    "N": "N",
    "NNE": "NNO",
    "NE": "NO",
    "ENE": "ONO",
    "E": "O",
    "ESE": "OSO",
    "SE": "SO",
    "SSE": "SSO",
    "S": "S",
    "SSW": "SSW",
    "SW": "SW",
    "WSW": "WSW",
    "W": "W",
    "WNW": "WNW",
    "NW": "NW",
    "NNW": "NNW"
  }
}

from compass-card.

tomvanswam avatar tomvanswam commented on August 20, 2024

Thanks for your feedback!

I was planning on using the integrated translation in Home Assistant for translation, instead of putting translation in the yaml.

This would work for you when your Home Assistant language is set to German or to automatic and your browser sais to use German. If your configuration page is in German, your good.

I'd like to know if your Home Assistant is in German, and if you use a localized weather integration whether its string direction state has its states in German.

If you could find the time, could you help out translating the strings in this file? Then all stuff will be in German.

from compass-card.

tomvanswam avatar tomvanswam commented on August 20, 2024

Ok good to know, so i would need to implement a forcing mechanism to pick a language different from the ui for the abbreviations.

from compass-card.

rainer-geiger avatar rainer-geiger commented on August 20, 2024

Homeassistant is set to German. My weather integration is "DWD Deutscher Wetterdienst". The integration has no string direction state, only numerical value in degrees:

temperature: 21.5
humidity: 86
pressure: 1009.6
wind_bearing: 261
wind_speed: 1.5
visibility: 10.3
attribution: Data provided by Deutscher Wetterdienst (DWD)
forecast:
  - datetime: '2020-08-17'
    condition: lightning-rainy
    temperature: 22.4
    templow: 16.6
    precipitation: 7.4
    precipitation_probability: 71
  - [...]
latest_update_utc: '2020-08-17T10:02:55.370955+00:00'
forecast_time_utc: '2020-08-17T09:00:00+00:00'
station_id: EXXX
station_name: Wetter Zuhause

I've done the German translation, can I push it to dev?

from compass-card.

tomvanswam avatar tomvanswam commented on August 20, 2024

Thanks a lot for the translation. Please use a pull request, instead of a direct push to dev.

I'm working on getting the abbreviation language independant from the HA language when that is done, the German language will be included in the next release.

from compass-card.

tomvanswam avatar tomvanswam commented on August 20, 2024

I've done the German translation, can I push it to dev?

If creating a pull request is to much of a hassle, you can post the translation file here too.

from compass-card.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.