Skip to content

Commit

Permalink
Fix translations CI
Browse files Browse the repository at this point in the history
  • Loading branch information
MrBartusek committed Jun 15, 2021
1 parent 2068abc commit 7800600
Show file tree
Hide file tree
Showing 11 changed files with 17 additions and 18 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/translation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ jobs:
- uses: actions/checkout@v1
- name: Validate JSONs
uses: nhalstead/[email protected]
env:
INPUT_SCHEMA: src/translations/schema.json
INPUT_JSONS: "src/translations/*.json
with:
schema: src/translations/schema/schema.json
jsons: src/translations/*.json
13 changes: 6 additions & 7 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,12 @@ 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.

1. Clone the repository - [How to run locally](#How-to-run-locally). Follow steps 1 and 2.
2. Copy `src/translations/en.json` file and name it with appropriate language code.
3. Translate only the keys (second quotation mark)
4. Import your translation in `src/localize.js` file.
5. Mention your translation in `README.md` file (list should be sorted alphabetically).
6. Add translation file to `.github\workflows\translation.yaml` they are separated by `,\`
7. Open a Pull Request.
8. Wait for maintainer to review your changes and merge PR.
1. Copy `src/translations/en.json` file and name it with appropriate language code.
1. Translate only the keys (second quotation mark)
1. Import your translation in `src/localize.js` file.
1. Mention your translation in `README.md` file (list should be sorted alphabetically).
1. Open a Pull Request.
1. Wait for maintainer to review your changes and merge PR.

**Note:** You can find translation for `events` under _captions_ at [meteoalarm.eu](https://www.meteoalarm.eu)

Expand Down
2 changes: 1 addition & 1 deletion src/translations/de.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "./schema.json",
"$schema": "./schema/schema.json",
"common": {
"name": "Meteoalarm-Karte",
"description": "Die Meteoalarm-Karte warnt dich vor bevorstehenden Wetterereignissen.",
Expand Down
2 changes: 1 addition & 1 deletion src/translations/en.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "./schema.json",
"$schema": "./schema/schema.json",
"common": {
"name": "Meteoalarm Card",
"description": "Meteoalarm card warns you about current weather events.",
Expand Down
2 changes: 1 addition & 1 deletion src/translations/es.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "./schema.json",
"$schema": "./schema/schema.json",
"common": {
"name": "Tarjeta Meteoalarm",
"description": "La tarjeta Meteoalarm le advierte sobre eventos meteorológicos actuales.",
Expand Down
2 changes: 1 addition & 1 deletion src/translations/et.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "./schema.json",
"$schema": "./schema/schema.json",
"common": {
"name": "Ohtlike ilmanähtuste kaart",
"description": "Äärmuslike ilmaolude hoiatus.",
Expand Down
2 changes: 1 addition & 1 deletion src/translations/fr.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "./schema.json",
"$schema": "./schema/schema.json",
"common": {
"name": "Carte Meteoalarm",
"description": "Carte Meteoalarm vous alerte des conditions météorologique courante.",
Expand Down
2 changes: 1 addition & 1 deletion src/translations/it.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "./schema.json",
"$schema": "./schema/schema.json",
"common": {
"name": "Scheda Meteoalarm",
"description": "La scheda Meteoalarm ti informa degli eventi meteorologici in corso.",
Expand Down
2 changes: 1 addition & 1 deletion src/translations/nl.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "./schema.json",
"$schema": "./schema/schema.json",
"common": {
"name": "Meteoalarm Kaart",
"description": "Meteoalarm kaart waarschuwt u voor actuele weersomstandigheden.",
Expand Down
2 changes: 1 addition & 1 deletion src/translations/pl.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "./schema.json",
"$schema": "./schema/schema.json",
"common": {
"name": "Karta Meteoalarm",
"description": "Meteoalarm ostrzega cię przed aktualnymi zdarzeniami pogodowymi.",
Expand Down
File renamed without changes.

0 comments on commit 7800600

Please sign in to comment.