Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "1.4.1"
".": "1.5.0"
}
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,18 @@

All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.

## [1.5.0](https://github.com/handball-referee/referee.app/compare/v1.4.1...v1.5.0) (2025-01-28)


### Features

* add Polish language questions ([ac12d15](https://github.com/handball-referee/referee.app/commit/ac12d150dcc9faecd72de33832f21ee1f67681e9))


### Bug Fixes

* correct question 11.5 ([041f002](https://github.com/handball-referee/referee.app/commit/041f002d74aeda661b3cd991a619809319e44149))

## [1.4.1](https://github.com/handball-referee/referee.app/compare/v1.4.0...v1.4.1) (2024-06-18)


Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "referee.app",
"version": "1.4.1",
"version": "1.5.0",
"description": "App to study for handball referee tests",
"license": "MIT",
"scripts": {
Expand Down
5 changes: 5 additions & 0 deletions src/components/LanguagePicker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import us from "../img/us.svg";
import de from "../img/de.svg";
import fr from "../img/fr.svg";
import es from "../img/es.svg";
import pl from "../img/pl.svg";

const LanguagePicker: FunctionComponent = () => {
const { i18n } = useTranslation();
Expand Down Expand Up @@ -46,6 +47,10 @@ const LanguagePicker: FunctionComponent = () => {
<img src={es} alt="Español" className="rounded mr-1 h-5" />
<span>Español</span>
</Item>
<Item code="pl">
<img src={pl} alt="Polski" className="rounded mr-1 h-5" />
<span>Polski</span>
</Item>
</Dropdown>
);
};
Expand Down
19 changes: 19 additions & 0 deletions src/components/rules/pl/Rules.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import React from "react";
import { useTranslation } from "react-i18next";
import useScrollToAnchor from "../../../hooks/useScrollToAnchor";

const Polish = () => {
const { t } = useTranslation();
useScrollToAnchor();

const text = `
<h1 id="rules-of-the-game">${t("rules.rules")}</h1>
<h1 id="clarifications-to-the-rules-of-the-game">${t("rules.clarifications")}</h1>
`;

return (
<div dangerouslySetInnerHTML={{ __html: text }} />
);
};

export default Polish;
2 changes: 1 addition & 1 deletion src/data/questions/ihf_05_2024/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -3186,7 +3186,7 @@
"a": "As soon as the referee has given the signal for the execution of the throw",
"b": "When the ball has left the hand of the player executing a free throw",
"c": "In case of a free throw or throw-in, when the players are positioned at their own goal-area line",
"d": "During the execution of a goalkeeper throw or a throw-off, when the defending player is"
"d": "During the execution of a goalkeeper throw or a throw-off, when the defending player is standing outside the goal area or the throw-off area"
}
},
{
Expand Down
4,396 changes: 4,396 additions & 0 deletions src/data/questions/ihf_05_2024/pl.json

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion src/i18n.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import de from "./translations/de.json";
import en from "./translations/en.json";
import es from "./translations/es.json";
import fr from "./translations/fr.json";
import pl from "./translations/pl.json";

const i18n = {
fallbackLng: "en",
Expand All @@ -14,8 +15,9 @@ const i18n = {
en,
es,
fr,
pl,
},
supportedLngs: ["en", "es", "de", "fr"],
supportedLngs: ["en", "es", "de", "fr","pl"],
};

export default i18n;
5 changes: 5 additions & 0 deletions src/img/pl.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/model/TestDataManager.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import Question from "./Question";
import { loadQuestions } from "../utils/loadTestData";

export const AVAILABLE_LANGUAGES = {
ihf_05_2024: ["en"],
ihf_05_2024: ["en", "pl"],
ihf_08_2019: ["en", "de", "fr", "es"],
};

Expand Down
70 changes: 70 additions & 0 deletions src/translations/pl.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
{
"translation": {
"app": {
"title": "Sędzia Piłki Ręcznej",
"language": "Język",
"toggle-menu": "Przełącz Menu",
"quicknav": "Szybka Nawigacja"
},
"correct": "poprawny",
"Reset": "Resetuj",
"menu": {
"test": "Test Sędziego",
"rules": "Zasady Gry",
"stats": "Statystyki",
"about": "O Aplikacji"
},
"rules": {
"foreword": "Przedmowa",
"rules": "Zasady Gry",
"rule": {
"rule1": "Boisko do Gry",
"rule2": "Czas Gry, Sygnał Końcowy i Przerwa na Żądanie",
"rule3": "Piłka",
"rule4": "Drużyna, Zmiany, Wyposażenie, Kontuzje Zawodników",
"rule5": "Bramkarz",
"rule6": "Pole Bramkowe",
"rule7": "Gra Piłką, Gra Pasywna",
"rule8": "Faule i Niesportowe Zachowanie",
"rule9": "Punktowanie",
"rule10": "Rzut Rozpoczynający",
"rule11": "Rzut z Autu",
"rule12": "Rzut Bramkarski",
"rule13": "Rzut Wolny",
"rule14": "Rzut 7-Metrowy",
"rule15": "Ogólne Instrukcje dotyczące Wykonywania Rzutów",
"rule16": "Kary",
"rule17": "Sędziowie",
"rule18": "Czasomierz i Sekretarz"
},
"hand-signals": "Sygnały Ręczne",
"clarifications": "Wyjaśnienia do Zasad Gry",
"sar": "Regulacje dotyczące Strefy Zmian",
"guidelines": "Wytyczne i Interpretacje",
"new-guidelines": "Nowe Wytyczne",
"playing-court": "Wytyczne dotyczące Boisk i Bramki",
"equipment-accessories": "Regulacje dotyczące Sprzętu Ochronnego i Akcesoriów",
"edition": "Wydanie: 1 Lipca 2016",
"source": "Źródło: https://www.ihf.info/sites/default/files/2019-07/New-Rules%20of%20the%20Game_GB.pdf"
},
"rulestest": {
"question": "Pytanie",
"check": "Sprawdź",
"next": "Następne",
"overall": "Ogólnie",
"relevant-rules": "Odpowiednie Zasady",
"language-missing": "Najnowsza wersja pytań nie jest dostępna w Twoim języku. Możesz zmienić wersję w prawym górnym rogu."
},
"stats": {
"overall": "Ogólnie",
"asked": "odpowiedziane",
"correct": "poprawne",
"reset": "Resetuj"
},
"privacy": {
"accept": "Akceptuj",
"decline": "Odrzuć"
}
}
}