If you plan to contribute back to this repo, please fork & open a PR.
Only a native speaker can translate to a specific language.
- Copy
src/translations/en.json
file and name it with an appropriate language code. - Translate only values in this file, not keys.
- Import your translation in
src/localize.js
file. - Mention your translation in
README.md
file. - Open a PR.
- Find someone to check and approve your PR.
Do not open multiple PRs for a single translation, this is just rude, they will be closed.
- Clone this repo to wherever you want:
git clone https://github.com/denysdovhan/purifier-card.git
- Go into the repo folder:
cd purifier-card
- 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 a file on a local server.
npm start
- Add
http://localhost:5000/purifier-card.js
to your Lovelace resources.
Now you can make changes to files in src
folder. The development server will automatically rebuild on changes. Lovelace will load a resource from the development server. Refresh the browser to see changes. Make sure a cache is cleared or disabled.