Giter VIP home page Giter VIP logo

Comments (8)

dhover avatar dhover commented on August 20, 2024 1

One small addition to make it better: In the info of the card is says:
Show the abbreviation in the language configured in Home Assistant (default/empty), or configured language
The first time it was not clear you have to insert the 2-letters for the country code and not the whole country name.
In Home Assistant you choose your personal language from a dropdown list. That's different.

from compass-card.

andilge avatar andilge commented on August 20, 2024

Find French and Spanish attached
es.json.txt
fr.json.txt

from compass-card.

tomvanswam avatar tomvanswam commented on August 20, 2024

Wow, thanks a lot! With everyones help its easy to progress in multi lingual support!
Adding the files (like you did) is easiest, and works for me.

I'll add these and release a new version tonight.

from compass-card.

dhover avatar dhover commented on August 20, 2024

A beginners question: where must those language files be stored and how to setup a custom language for the compass card?

from compass-card.

dhover avatar dhover commented on August 20, 2024

I solved it myself. I added the language tag under the main settings and not under the compass setting!
Where are those language json files stored during the installation of the card?

from compass-card.

tomvanswam avatar tomvanswam commented on August 20, 2024

@dhover the language file are compiled into the compass-card.js.

So to add additional languages, a language.json is needed + some additional changes to a couple of source files, so the card knows about the existence of the additional languages.

from compass-card.

tomvanswam avatar tomvanswam commented on August 20, 2024

@andilge Thanks very much!

Sure it's ok to attach the files here, I'll include them in the next update

from compass-card.

dhover avatar dhover commented on August 20, 2024

@tomvanswam Ok now I understand how it works. Thanks for your answer.

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.