Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into feat/lock-domain
Browse files Browse the repository at this point in the history
# Conflicts:
#	dist/slider-button-card.js
#	src/controllers/get-controller.ts
#	src/types.ts
  • Loading branch information
MHA committed Jul 2, 2021
2 parents 9748d00 + a72c4bc commit 9d25e01
Show file tree
Hide file tree
Showing 41 changed files with 1,573 additions and 381 deletions.
39 changes: 39 additions & 0 deletions CONTRIBUTE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# Contributing to the Slider button card by

Thanks for taking the time to contribute to this card.

## Adding a new translation
Steps for adding a new translation:
### Json translation file
Translation files are located under `src/localize/languages`
1. Make a copy of `en.json`
2. Rename it to your two characters language `xx.json`
3. Translate only the values
### Make it available
For the card to be able to use the translation it needs to be added to `src/localize/localize.ts`
1. Add an import statement: `import * as xx from './languages/xx.json';`
2. Add it to the language variable
```` typescript
const languages: any = {
en: en,
he: he,
nl: nl,
pl: pl,
ru: ru,
xx: xx, // Add alphabeticly (without this comment)
};
````

### Update Readme
Add your translation to the `README.md` under the languages section:
```markdown
- English
- Hebrew
- Nederlands (Dutch)
- Polish (polski)
- Russian
- Your new language
```

### Create a PR
Commit your changes and create a [Pull Request](https://github.com/mattieha/slider-button-card/pulls)
Loading

0 comments on commit 9d25e01

Please sign in to comment.
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy