mirror of
https://github.com/Snigdha-OS/package-browser.git
synced 2025-09-07 13:15:16 +02:00
Add Polish language support
This commit is contained in:
@@ -13,6 +13,10 @@ import {
|
|||||||
UKRAINIAN
|
UKRAINIAN
|
||||||
} from './locales/uk';
|
} from './locales/uk';
|
||||||
|
|
||||||
|
import {
|
||||||
|
POLISH
|
||||||
|
} from './locales/pl';
|
||||||
|
|
||||||
const resources = {
|
const resources = {
|
||||||
en: {
|
en: {
|
||||||
translation: ENGLISH
|
translation: ENGLISH
|
||||||
@@ -20,6 +24,10 @@ const resources = {
|
|||||||
|
|
||||||
uk: {
|
uk: {
|
||||||
translation: UKRAINIAN
|
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
|
// Enumeration of supported languages
|
||||||
export enum Languages {
|
export enum Languages {
|
||||||
EN = "English",
|
EN = "English",
|
||||||
UK = "Українська"
|
UK = "Українська",
|
||||||
|
PL = "Polski"
|
||||||
}
|
}
|
||||||
|
|
||||||
// Interface representing a single package
|
// Interface representing a single package
|
||||||
|
Reference in New Issue
Block a user