If you plan to contribute back to this repo, please fork & open a PR.
We are currently looking to implement languages of all countries supported by meteoalarm. If you are able to add or improve translations in language you speak don't hastate to make a PR. Some of the keys are replaced with null
that means specified key is not yet translated.
- Clone the repository - How to run locally. Follow steps 1 and 2.
- Copy
src/translations/en.json
file and name it with appropriate language code. - Translate only the keys (second quotation mark)
- Import your translation in
src/localize.js
file. - Mention your translation in
README.md
file (list should be sorted alphabetically). - Open a Pull Request.
- Wait for maintainer to review your changes and merge PR.
Note: You can find translation for events
under captions at meteoalarm.eu
- Clone this repo to wherever you want:
git clone https://github.com/MrBartusek/MeteoalarmCard.git
- Go into the repo folder:
cd MeteoalarmCard
- Install dependencies (Node.js and npm are required):
npm install
- Run development server. It's going to watch source files, recompile on changes and server compiled file on local server.
npm start
- Add
http://localhost:5000/meteoalarm-card.js
to your Lovelace Resources.
Now you can make changes to files in src
folder. Development server will automatically rebuild on changes. Lovelace will load resource from development server. Refresh the browser to see changes. Be sure to disable cache in your browser developer tools.
Before making a Pull Request make sure that build and linting pass locally npm run build