Add Polish language support

This commit is contained in:
XlebyllleK
2025-01-12 19:37:36 +02:00
committed by GitHub
parent b2485151b6
commit c09cd6bd43
3 changed files with 60 additions and 1 deletions

View File

@@ -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
View 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:"
}
};

View File

@@ -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