diff --git a/src/app.tsx b/src/app.tsx index 338965d..8548a7b 100644 --- a/src/app.tsx +++ b/src/app.tsx @@ -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'; @@ -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' ], diff --git a/src/extensions/extension.tsx b/src/extensions/extension.tsx index 0478ad7..9239609 100644 --- a/src/extensions/extension.tsx +++ b/src/extensions/extension.tsx @@ -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'; @@ -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' ], diff --git a/src/locales/pl.json b/src/locales/pl.json new file mode 100644 index 0000000..cd4f3cb --- /dev/null +++ b/src/locales/pl.json @@ -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" + } + } +}