Skip to content

Commit

Permalink
Added Polish translation (#70)
Browse files Browse the repository at this point in the history
  • Loading branch information
tojatomasz authored Apr 9, 2024
1 parent 1d98fcc commit 17257b5
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import en from './locales/en.json';
import de from './locales/de.json';
import esLatin from './locales/es-419.json';
import fr from './locales/fr.json';
import pl from './locales/pl.json';
import { initReactI18next } from 'react-i18next';
import LanguageDetector from 'i18next-browser-languagedetector';

Expand All @@ -26,6 +27,7 @@ i18n
// TODO: change this to 'es-419' (latin spanish) if someone adds a european spanish translation
es: esLatin,
fr,
pl,
},
detection: {
order: [ 'navigator', 'htmlTag' ],
Expand Down
2 changes: 2 additions & 0 deletions src/extensions/extension.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import en from '../locales/en.json';
import de from '../locales/de.json';
import esLatin from '../locales/es-419.json';
import fr from '../locales/fr.json';
import pl from '../locales/pl.json';
import { initReactI18next } from 'react-i18next';
import LanguageDetector from 'i18next-browser-languagedetector';

Expand All @@ -21,6 +22,7 @@ i18n
// TODO: change this to 'es-419' (latin spanish) if someone adds a european spanish translation
es: esLatin,
fr,
pl,
},
detection: {
order: [ 'navigator', 'htmlTag' ],
Expand Down
31 changes: 31 additions & 0 deletions src/locales/pl.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"translation": {
"appName": "Jaka To Melodia",
"title": "🎵 $t(appName)",
"winMsg": "Wygrałeś!",
"guessPlaceholder": "Zgadnij tytuł",
"playXSeconds": "Odtwórz {{count}}s",
"guessBtn": "Zgadnij",
"skipBtn": "Pomiń",
"giveUp": "Poddaj się",
"nextSong": "Następna piosenka",
"menuEntry": "Zagraj w $t(appName)",
"sendingURIs_one": "Wysyłanie {{count}} linku do $t(appName)",
"sendingURIs_few": "Wysyłanie {{count}} linków do $t(appName)",
"sendingURIs_many": "Wysyłanie {{count}} linków do $t(appName)",
"sendingURIs_other": "Wysyłanie {{count}} linków do $t(appName)",
"stats": {
"title": "Statystyki",
"time": "Czas",
"songs": "Piosenki",
"winPercentage": "Procent wygranych: {{percentage}}%",
"songWithCount_one": "{{count}} piosenka",
"songWithCount_few": "{{count}} piosenki",
"songWithCount_many": "{{count}} piosenek",
"songWithCount_other": "{{count}} piosenek",
"gaveUp": "poddano się",
"greaterThan16": ">16s",
"xSeconds": "{{count}}s"
}
}
}

0 comments on commit 17257b5

Please sign in to comment.