Skip to content

Commit fd5527c

Browse files
committed
ui update
1 parent ca724f3 commit fd5527c

12 files changed

Lines changed: 468 additions & 189 deletions

File tree

src/App.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ const Navbar = ({ user }: any) => {
204204
<div className="nav-links">
205205
<NavLink to="/" onClick={() => setIsMenuOpen(false)}>{t('home')}</NavLink>
206206
{user && <NavLink to="/dashboard" onClick={() => setIsMenuOpen(false)}>{t('dashboard')}</NavLink>}
207-
{user && user.role === 'admin' && <NavLink to="/admin" onClick={() => setIsMenuOpen(false)}>Admin</NavLink>}
207+
{user && user.role === 'admin' && <NavLink to="/admin" onClick={() => setIsMenuOpen(false)}>{t('admin')}</NavLink>}
208208
</div>
209209
<div className="nav-search">
210210
<input
@@ -275,4 +275,4 @@ const Footer = () => (
275275
</footer>
276276
);
277277

278-
export default App;
278+
export default App;ult App;

src/i18n.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import LanguageDetector from 'i18next-browser-languagedetector';
66
// and ensure we don't have issues with Vite's dev server for static assets
77
import enTranslation from './locales/en.json';
88
import esTranslation from './locales/es.json';
9+
import deTranslation from './locales/de.json';
910

1011
const resources = {
1112
en: {
@@ -14,6 +15,9 @@ const resources = {
1415
es: {
1516
translation: esTranslation,
1617
},
18+
de: {
19+
translation: deTranslation,
20+
},
1721
};
1822

1923
i18n

src/locales/de.json

Lines changed: 131 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,131 @@
1+
{
2+
"welcome": "Willkommen bei PumpkinMarket",
3+
"search": "Suche nach Plugins...",
4+
"login": "Anmelden",
5+
"register": "Registrieren",
6+
"home": "Startseite",
7+
"dashboard": "Dashboard",
8+
"profile": "Profil",
9+
"logout": "Abmelden",
10+
"loading": "Laden...",
11+
"error": "Etwas ist schief gelaufen. Bitte versuchen Sie es später noch einmal.",
12+
"admin": "Admin",
13+
"plugins": {
14+
"title": "Plugins durchsuchen",
15+
"upload": "Plugin hochladen",
16+
"manage": "Plugin verwalten",
17+
"price": "Preis",
18+
"downloads": "Downloads",
19+
"views": "Aufrufe",
20+
"my_plugins": "Meine Plugins",
21+
"category": "Kategorie",
22+
"version": "Version",
23+
"free": "Kostenlos",
24+
"none_found": "Keine Plugins gefunden. Schauen Sie später wieder vorbei!",
25+
"explore_subtitle": "Entdecke leistungsstarke Plugins für dein PumpkinMC-Erlebnis.",
26+
"purchased": "Gekauft",
27+
"ad_supported": "WERBEFINANZIERT",
28+
"view_source": "Quellcode anzeigen",
29+
"file_size": "Dateigröße",
30+
"download": "Download",
31+
"purchase": "Plugin kaufen",
32+
"watch_ad": "Werbung ansehen zum Download"
33+
},
34+
"reviews": {
35+
"title": "Bewertungen & Rezensionen",
36+
"empty": "Noch keine Bewertungen. Sei der Erste, der eine hinterlässt!",
37+
"verified_user": "Verifizierter Benutzer",
38+
"posted": "Rezension veröffentlicht",
39+
"already_reviewed": "Du hast dieses Plugin bereits bewertet. Danke für das Feedback!",
40+
"leave_review": "Eine Rezension hinterlassen",
41+
"your_rating": "Deine Bewertung",
42+
"your_experience": "Deine Erfahrung",
43+
"post": "Rezension veröffentlichen",
44+
"login_to_rate": "Bitte melde dich an, um dieses Plugin zu bewerten."
45+
},
46+
"reports": {
47+
"reason": "Grund für die Meldung",
48+
"success": "✓ Meldung eingereicht. Danke, dass du den Marktplatz sicher hältst.",
49+
"reasons": {
50+
"malware": "Malware oder bösartiger Code",
51+
"stolen": "Gestohlener oder plagiierter Inhalt",
52+
"misleading": "Irreführende Beschreibung",
53+
"broken": "Defekt / nicht funktionsfähig",
54+
"inappropriate": "Unangemessener Inhalt",
55+
"spam": "Spam oder gefälschter Eintrag",
56+
"other": "Anderes"
57+
}
58+
},
59+
"auth": {
60+
"email": "E-Mail-Adresse",
61+
"username": "Benutzername",
62+
"password": "Passwort",
63+
"confirm_password": "Passwort bestätigen",
64+
"create_account": "Konto erstellen",
65+
"creating_account": "Konto wird erstellt…",
66+
"sign_in": "Anmelden",
67+
"welcome_back": "Willkommen zurück",
68+
"sign_in_subtitle": "Melde dich bei deinem PumpkinMC-Konto an.",
69+
"no_account": "Du hast noch kein Konto?",
70+
"create_one": "Eines erstellen",
71+
"already_have_account": "Hast du bereits ein Konto?",
72+
"terms": "Nutzungsbedingungen",
73+
"privacy": "Datenschutzrichtlinie",
74+
"agree_terms": "Mit der Erstellung eines Kontos stimmst du unseren",
75+
"requirements_met": "Anforderungen erfüllt",
76+
"password_requirements": {
77+
"length": "Mindestens 8 Zeichen",
78+
"uppercase": "Mindestens ein Großbuchstabe",
79+
"lowercase": "Mindestens ein Kleinbuchstabe",
80+
"number": "Mindestens eine Zahl",
81+
"special": "Mindestens ein Sonderzeichen"
82+
},
83+
"password_strength": {
84+
"very_weak": "Sehr schwach",
85+
"weak": "Schwach",
86+
"fair": "Mittelmäßig",
87+
"strong": "Stark",
88+
"very_strong": "Sehr stark"
89+
},
90+
"check_email": {
91+
"title": "Überprüfe deinen Posteingang",
92+
"sent_link": "Wir haben einen Verifizierungslink an {{email}} gesendet.",
93+
"click_link": "Bitte klicke auf den Link in der E-Mail, um dein Konto zu aktivieren. Der Link läuft in 15 Minuten ab."
94+
},
95+
"verify_email": {
96+
"verifying": "E-Mail wird verifiziert...",
97+
"success_title": "E-Mail erfolgreich verifiziert!",
98+
"success_msg": "Du bist jetzt angemeldet. Weiterleitung zur Startseite...",
99+
"failed_title": "Verifizierung fehlgeschlagen",
100+
"failed_msg": "Bitte versuche die Registrierung erneut oder kontaktiere den Support."
101+
}
102+
},
103+
"profile_page": {
104+
"title": "Benutzerprofil",
105+
"account_details": "Kontodetails ändern",
106+
"update_username": "Benutzername aktualisieren",
107+
"update_email": "E-Mail aktualisieren",
108+
"my_library": "Meine Bibliothek",
109+
"library_empty": "Deine Bibliothek ist leer",
110+
"library_empty_sub": "Gekaufte Plugins werden hier angezeigt und können jederzeit heruntergeladen werden.",
111+
"payout_settings": "Auszahlungseinstellungen",
112+
"stripe_connected": "Stripe-Konto verbunden",
113+
"go_to_stripe": "Zum Stripe-Dashboard",
114+
"finish_stripe": "Stripe-Verbindung abschließen",
115+
"continue_stripe": "Stripe-Einrichtung fortsetzen",
116+
"no_stripe": "Kein Stripe-Konto verknüpft.",
117+
"connect_stripe": "Stripe-Konto verbinden",
118+
"change_password": "Passwort ändern",
119+
"new_password": "NEUES PASSWORT",
120+
"update_password": "Passwort aktualisieren",
121+
"danger_zone": "Gefahrenzone",
122+
"danger_msg": "Wenn du fortfährst, werden dein Guthaben und alle hochgeladenen Plugins von PumpkinMC gelöscht."
123+
},
124+
"common": {
125+
"cancel": "Abbrechen",
126+
"save": "Speichern",
127+
"delete": "Löschen",
128+
"edit": "Bearbeiten",
129+
"back": "Zurück"
130+
}
131+
}

src/locales/en.json

Lines changed: 98 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,21 +9,117 @@
99
"logout": "Logout",
1010
"loading": "Loading...",
1111
"error": "Something went wrong. Please try again later.",
12+
"admin": "Admin",
1213
"plugins": {
1314
"title": "Browse Plugins",
1415
"upload": "Upload Plugin",
1516
"manage": "Manage Plugin",
1617
"price": "Price",
1718
"downloads": "Downloads",
18-
"views": "Views"
19+
"views": "Views",
20+
"my_plugins": "My Plugins",
21+
"category": "Category",
22+
"version": "Version",
23+
"free": "Free",
24+
"none_found": "No plugins found. Check back later!",
25+
"explore_subtitle": "Explore powerful plugins for your PumpkinMC experience.",
26+
"purchased": "Purchased",
27+
"ad_supported": "AD SUPPORTED",
28+
"view_source": "View Source Code",
29+
"file_size": "File Size",
30+
"download": "Download",
31+
"purchase": "Purchase Plugin",
32+
"watch_ad": "Watch Ad to Download"
33+
},
34+
"reviews": {
35+
"title": "Ratings & Reviews",
36+
"empty": "No reviews yet. Be the first to leave one!",
37+
"verified_user": "Verified User",
38+
"posted": "Review posted",
39+
"already_reviewed": "You've already reviewed this plugin. Thanks for the feedback!",
40+
"leave_review": "Leave a Review",
41+
"your_rating": "Your Rating",
42+
"your_experience": "Your Experience",
43+
"post": "Post Review",
44+
"login_to_rate": "Please login to rate this plugin."
45+
},
46+
"reports": {
47+
"reason": "Reason for report",
48+
"success": "✓ Report submitted. Thanks for keeping the marketplace safe.",
49+
"reasons": {
50+
"malware": "Malware or malicious code",
51+
"stolen": "Stolen or plagiarised content",
52+
"misleading": "Misleading description",
53+
"broken": "Broken / non-functional",
54+
"inappropriate": "Inappropriate content",
55+
"spam": "Spam or fake listing",
56+
"other": "Other"
57+
}
1958
},
2059
"auth": {
2160
"email": "Email Address",
2261
"username": "Username",
2362
"password": "Password",
2463
"confirm_password": "Confirm Password",
2564
"create_account": "Create Account",
26-
"sign_in": "Sign In"
65+
"creating_account": "Creating account…",
66+
"sign_in": "Sign In",
67+
"welcome_back": "Welcome back",
68+
"sign_in_subtitle": "Sign in to your PumpkinMC account.",
69+
"no_account": "Don't have an account?",
70+
"create_one": "Create one",
71+
"already_have_account": "Already have an account?",
72+
"terms": "Terms of Service",
73+
"privacy": "Privacy Policy",
74+
"agree_terms": "By creating an account, you agree to our",
75+
"requirements_met": "requirements met",
76+
"password_requirements": {
77+
"length": "At least 8 characters",
78+
"uppercase": "At least one uppercase letter",
79+
"lowercase": "At least one lowercase letter",
80+
"number": "At least one number",
81+
"special": "At least one special character"
82+
},
83+
"password_strength": {
84+
"very_weak": "Very weak",
85+
"weak": "Weak",
86+
"fair": "Fair",
87+
"strong": "Strong",
88+
"very_strong": "Very strong"
89+
},
90+
"check_email": {
91+
"title": "Check Your Inbox",
92+
"sent_link": "We've sent a verification link to {{email}}.",
93+
"click_link": "Please click the link in the email to activate your account. The link will expire in 15 minutes."
94+
},
95+
"verify_email": {
96+
"verifying": "Verifying your email...",
97+
"success_title": "Email Verified Successfully!",
98+
"success_msg": "You are now logged in. Redirecting to the homepage...",
99+
"failed_title": "Verification Failed",
100+
"failed_msg": "Please try registering again or contact support."
101+
}
102+
},
103+
"profile_page": {
104+
"title": "User Profile",
105+
"account_details": "Change Account Details",
106+
"update_username": "Update Username",
107+
"update_email": "Update Email",
108+
"my_library": "My Library",
109+
"library_empty": "Your library is empty",
110+
"library_empty_sub": "Purchased plugins will appear here, ready to download anytime.",
111+
"payout_settings": "Payout Settings",
112+
"stripe_connected": "Stripe account connected",
113+
"go_to_stripe": "Go to Stripe Dashboard",
114+
"finish_stripe": "Finish Stripe connection",
115+
"continue_stripe": "Continue Stripe Setup",
116+
"no_stripe": "No Stripe account linked.",
117+
"connect_stripe": "Connect Stripe Account",
118+
"change_password": "Change Password",
119+
"new_password": "NEW PASSWORD",
120+
"update_password": "Update Password",
121+
"danger_zone": "Danger Zone",
122+
"danger_msg": "Proceeding will wipe your balance and all uploaded plugins from PumpkinMC."
27123
},
28124
"common": {
29125
"cancel": "Cancel",

0 commit comments

Comments
 (0)