From aa1bd00e80799006dbf71adda03e2b266f652030 Mon Sep 17 00:00:00 2001 From: Alex <$(pass /github/email)> Date: Sun, 2 Mar 2025 10:26:53 +0100 Subject: [PATCH] add en locale --- frontend/src/lib/locales/de.js | 11 +- frontend/src/lib/locales/en.js | 221 +++++++++++++++++++++++++++++++-- 2 files changed, 215 insertions(+), 17 deletions(-) diff --git a/frontend/src/lib/locales/de.js b/frontend/src/lib/locales/de.js index 0b42233..f4aaa9d 100644 --- a/frontend/src/lib/locales/de.js +++ b/frontend/src/lib/locales/de.js @@ -3,12 +3,13 @@ export default { 1: 'Nicht verifiziert', 2: 'Deaktiviert', 3: 'Verifiziert', - 4: 'Aktiv', + 4: 'Systemzugang', 5: 'Passiv' }, userRole: { - 0: 'Mitglied', - 1: 'Betrachter', + 0: 'Sponsor', + 1: 'Mitglied', + 2: 'Betrachter', 4: 'Bearbeiter', 8: 'Administrator' }, @@ -124,7 +125,8 @@ export default { dateofbirth: 'Geburtstag', email: 'Email', status: 'Status', - role: 'Nutzerrolle' + role: 'Nutzerrolle', + supporter: 'Sponsor' }, subscription: { name: 'Modellname', @@ -155,6 +157,7 @@ export default { delete: 'Löschen', search: 'Suche:', name: 'Name', + supporter: 'Sponsoren', mandate_date_signed: 'Mandatserteilungsdatum', licence_categories: 'Führerscheinklassen', subscription_model: 'Mitgliedschatfsmodell', diff --git a/frontend/src/lib/locales/en.js b/frontend/src/lib/locales/en.js index fc51328..551811f 100644 --- a/frontend/src/lib/locales/en.js +++ b/frontend/src/lib/locales/en.js @@ -1,15 +1,210 @@ export default { - userStatus: { - 1: "Unverified", - 2: "Verified", - 3: "Active", - 4: "Passive", - 5: "Disabled", - }, - userRole: { - 0: "Member", - 1: "Viewer", - 4: "Editor", - 8: "Admin", - }, + userStatus: { + 1: 'Not Verified', + 2: 'Deactivated', + 3: 'Verified', + 4: 'System Access', + 5: 'Passive' + }, + userRole: { + 0: 'Sponsor', + 1: 'Member', + 2: 'Viewer', + 4: 'Editor', + 8: 'Administrator' + }, + placeholder: { + password: 'Enter password...', + email: 'Enter email address...', + company: 'Enter company name...', + first_name: 'Enter first name...', + last_name: 'Enter last name...', + phone: 'Enter phone number...', + address: 'Enter street and house number...', + zip_code: 'Enter postal code...', + city: 'Enter city...', + bank_name: 'Enter bank name...', + parent_member_id: 'Enter parent member ID...', + bank_account_holder: 'Enter name...', + iban: 'Enter IBAN...', + bic: 'Enter BIC (for non-German accounts)...', + mandate_reference: 'Enter SEPA mandate reference...', + notes: 'Your notes about {name}...', + licence_number: 'On the driver’s license under field 5', + issued_date: 'Issue date under field 4a', + expiration_date: 'Expiration date under field 4b', + issuing_country: 'Issuing country', + subscription_name: 'Subscription model name', + subscription_details: 'Describe the subscription model...', + subscription_conditions: 'Describe the usage conditions...', + search: 'Search...' + }, + validation: { + required: 'Input required', + password: 'Password too short, at least 8 characters', + password_match: 'Passwords do not match!', + phone: 'Invalid format (+491738762387 or 0173850698)', + zip_code: 'Invalid postal code (Only German locations are allowed)', + bic: 'Invalid BIC', + iban: 'Invalid IBAN', + date: 'Please enter a date', + email: 'Invalid email address', + licence: 'Number too short (11 characters)' + }, + server: { + general: 'General', + error: { + invalid_json: 'Invalid JSON data', + no_auth_token: 'Unauthorized, missing or invalid auth token', + jwt_parsing_error: 'Unauthorized, auth token could not be read', + unauthorized: 'You are not authorized to perform this action', + internal_server_error: + 'Damn, error on our side, try again, then contact someone from the organization.', + not_possible: 'Operation not possible.', + not_found: 'Could not be found.', + in_use: 'Is in use', + undelivered_verification_mail: + 'Registration successful, but the verification email could not be sent. Please contact the organization to verify your email address and activate your account.' + }, + validation: { + invalid: 'Invalid', + invalid_user_id: 'Invalid user ID', + invalid_subscription_model: 'Model not found', + user_not_found: '{field} could not be found', + invalid_user_data: 'Invalid user data', + user_not_found_or_wrong_password: 'Does not exist or wrong password', + email_already_registered: 'A member has already been created with this email address.', + password_already_changed: 'The password has already been changed.', + alphanumunicode: 'Contains disallowed characters', + safe_content: 'I see what you did there! Do not cross this line!', + iban: 'Invalid. Format: DE07123412341234123412', + bic: 'Invalid. Format: BELADEBEXXX', + email: 'Invalid format', + number: 'Is not a number', + euDriversLicence: 'Is not a European driver’s license', + lte: 'Is too large/new', + gt: 'Is too small/old', + required: 'Field is required', + image: 'This is not an image', + alphanum: 'Contains invalid characters', + user_disabled: 'User is disabled', + duplicate: 'Already exists...', + alphaunicode: 'Must consist only of letters', + too_soon: 'Too soon' + } + }, + licenceCategory: { + AM: 'Mopeds and light four-wheeled vehicles (50cc, max 45 km/h)', + A1: 'Light motorcycles (125cc)', + A2: 'Medium-power motorcycles (max 35 kW)', + A: 'Motorcycles', + B: 'Motor vehicles ≤ 3500 kg, ≤ 8 seats', + C1: 'Medium-heavy vehicles - 7500 kg', + C: 'Heavy commercial vehicles > 3500 kg', + D1: 'Minibuses with 9-16 seats', + D: 'Buses > 8 seats', + BE: 'Vehicle class B with trailer', + C1E: 'Vehicle class C1 with trailer', + CE: 'Vehicle class C with trailer', + D1E: 'Vehicle class D1 with trailer', + DE: 'Vehicle class D with trailer', + L: 'Agricultural, forestry vehicles, forklifts max 40 km/h', + T: 'Agricultural, forestry vehicles, forklifts max 60 km/h' + }, + users: 'Members', + user: { + login: 'User Login', + edit: 'Edit User', + create: 'Create User', + user: 'User', + management: 'Member Management', + id: 'Member ID', + first_name: 'First Name', + last_name: 'Last Name', + phone: 'Phone Number', + dateofbirth: 'Date of Birth', + email: 'Email', + status: 'Status', + role: 'User Role', + supporter: 'Sponsor' + }, + subscription: { + name: 'Model Name', + edit: 'Edit Model', + create: 'Create Model', + subscription: 'Subscription Model', + subscriptions: 'Subscription Models', + conditions: 'Conditions', + monthly_fee: 'Monthly Fee', + hourly_rate: 'Hourly Rate', + included_hours_per_year: 'Included Hours Per Year', + included_hours_per_month: 'Included Hours Per Month' + }, + loading: { + user_data: 'Loading user data', + subscription_data: 'Loading model data', + please_wait: 'Please wait...', + updating: 'Updating...' + }, + dialog: { + user_deletion: 'Should the user {firstname} {lastname} really be deleted?', + subscription_deletion: 'Should the subscription model {name} really be deleted?' + }, + cancel: 'Cancel', + confirm: 'Confirm', + actions: 'Actions', + edit: 'Edit', + delete: 'Delete', + search: 'Search:', + name: 'Name', + supporter: 'Sponsors', + mandate_date_signed: 'Mandate Signing Date', + licence_categories: 'Driver’s License Categories', + subscription_model: 'Membership Model', + licence: 'Driver’s License', + licence_number: 'Driver’s License Number', + issued_date: 'Issue Date', + expiration_date: 'Expiration Date', + country: 'Country', + details: 'Details', + unknown: 'Unknown', + notes: 'Notes', + address: 'Street & House Number', + city: 'City', + zip_code: 'ZIP Code', + forgot_password: 'Forgot Password?', + password: 'Password', + confirm_password: 'Repeat Password', + password_changed: 'Password successfully changed.', + change_password: 'Change Password', + password_change_requested: 'Password change request sent... Please check your inbox.', + company: 'Company', + login: 'Login', + profile: 'Profile', + membership: 'Membership', + bankaccount: 'Bank Account', + status: 'Status', + start: 'Start', + end: 'End', + parent_member_id: 'Parent Member ID', + bank_account_holder: 'Account Holder', + bank_name: 'Bank Name', + iban: 'IBAN', + bic: 'BIC', + mandate_reference: 'SEPA Mandate', + payments: 'Payments', + add_new: 'New', + email_sent: 'Email has been sent...', + payment: { + id: 'Payment ID', + amount: 'Amount', + date: 'Date', + status: 'Status' + }, + subscriptionStatus: { + pending: 'Pending', + completed: 'Completed', + failed: 'Failed', + cancelled: 'Cancelled' + } };