mirror of
https://github.com/Snigdha-OS/package-browser.git
synced 2025-09-06 20:55:17 +02:00
Add Polish language support
This commit is contained in:
@@ -13,6 +13,10 @@ import {
|
||||
UKRAINIAN
|
||||
} from './locales/uk';
|
||||
|
||||
import {
|
||||
POLISH
|
||||
} from './locales/pl';
|
||||
|
||||
const resources = {
|
||||
en: {
|
||||
translation: ENGLISH
|
||||
@@ -20,6 +24,10 @@ const resources = {
|
||||
|
||||
uk: {
|
||||
translation: UKRAINIAN
|
||||
},
|
||||
|
||||
pl: {
|
||||
translation: POLISH
|
||||
}
|
||||
};
|
||||
|
||||
|
50
src/locales/pl.tsx
Normal file
50
src/locales/pl.tsx
Normal file
@@ -0,0 +1,50 @@
|
||||
export const POLISH = {
|
||||
// src/components/Header.tsx
|
||||
Header: {
|
||||
"all-repositories": "Wszystkie repozytoria"
|
||||
},
|
||||
|
||||
// src/components/InstallGuide.tsx
|
||||
InstallGuide: {
|
||||
"installation-command": "Polecenie instalacji",
|
||||
|
||||
"copy": {
|
||||
"prompt": "Skopiuj do schowka",
|
||||
"success": "Skopiowano!"
|
||||
}
|
||||
},
|
||||
|
||||
// src/components/Logo.tsx
|
||||
Logo: {
|
||||
"title": "Lista pakietów Snigdha OS",
|
||||
"description": "Przeglądaj i wyszukuj w oficjalnym repozytorium pakietów Snigdha OS",
|
||||
},
|
||||
|
||||
// src/components/PackageCard.tsx
|
||||
PackageCard: {
|
||||
"show-installation": "Pokaż instalację",
|
||||
"hide-installation": "Ukryj instalację"
|
||||
},
|
||||
|
||||
// src/components/SearchBar.tsx
|
||||
SearchBar: {
|
||||
"placeholder": "Szukaj pakietów..."
|
||||
},
|
||||
|
||||
// src/App.tsx
|
||||
App: {
|
||||
"package_count": {
|
||||
"single": "Wyświetlanie {{count}} pakietu",
|
||||
"multiple": "Wyświetlanie {{count}} pakietów",
|
||||
"plural": "Wyświetlanie {{count}} pakietów",
|
||||
},
|
||||
|
||||
error: {
|
||||
"fetching-packages": "Wystąpił błąd podczas pobierania pakietów: {{error}}",
|
||||
"retry-fetching-packages": "Spróbuj ponownie"
|
||||
},
|
||||
|
||||
"no-packages-found": "Nie znaleziono pakietów odpowiadających Twojemu wyszukiwaniu.",
|
||||
"footer": "Źródło danych:"
|
||||
}
|
||||
};
|
@@ -13,7 +13,8 @@ export type Theme = ('light' | 'dark');
|
||||
// Enumeration of supported languages
|
||||
export enum Languages {
|
||||
EN = "English",
|
||||
UK = "Українська"
|
||||
UK = "Українська",
|
||||
PL = "Polski"
|
||||
}
|
||||
|
||||
// Interface representing a single package
|
||||
|
Reference in New Issue
Block a user