diff --git a/packages/evershop/src/lib/util/readCsvFile.js b/packages/evershop/src/lib/util/readCsvFile.js index 9075b7373..4c7be44b7 100644 --- a/packages/evershop/src/lib/util/readCsvFile.js +++ b/packages/evershop/src/lib/util/readCsvFile.js @@ -1,11 +1,13 @@ const fs = require('fs'); const csv = require('csv-parser'); +const { getConfig } = require('./getConfig'); async function readCsvFile(filePath) { return new Promise((resolve, reject) => { const results = {}; + const languageFileCsvSeparator = getConfig('system.languageFileCsvSeparator', ','); fs.createReadStream(filePath) - .pipe(csv({ headers: false })) + .pipe(csv({ headers: false, separator: languageFileCsvSeparator })) .on('data', (data) => { // Skip the first row (headers) if (!data[0].startsWith('#')) { diff --git a/translations/de/account.csv b/translations/de/account.csv index 041c36c5a..49b7d96a2 100644 --- a/translations/de/account.csv +++ b/translations/de/account.csv @@ -1,33 +1,33 @@ -Login, Anmelden -Logout, Abmelden -Email, E-Mail -Password, Passwort -Forgot your password?, Passwort vergessen? -Create an account, Ein Konto erstellen -Register, Registrieren -Full Name, Vollständiger Name -Full name, Vollständiger Name -SIGN IN, ANMELDEN -Order History, Bestellverlauf -Account Details, Kontodetails -You have not placed any orders yet, Sie haben noch keine Bestellungen aufgegeben -My Account, Mein Konto -Already have an account?, Haben Sie bereits ein Konto? -Contact information, Kontaktinformationen -City, Stadt -Account Information, Kontoinformationen -Address, Adresse -Postcode, Postleitzahl -Postcode is required, Postleitzahl ist erforderlich -Telephone is required, Telefonnummer ist erforderlich -Telephone, Telefon -Full name is required, Vollständiger Name ist erforderlich -Country is required, Land ist erforderlich -Country, Land -Province is required, Provinz ist erforderlich -Province, Provinz -Billing Address, Rechnungsadresse -Shipping Address, Lieferadresse -Create A New Account, Ein neues Konto erstellen -Contact, Kontakt -Customer information, Kundeninformationen \ No newline at end of file +Login; Anmelden +Logout; Abmelden +Email; E-Mail +Password; Passwort +Forgot your password?; Passwort vergessen? +Create an account; Ein Konto erstellen +Register; Registrieren +Full Name; Vollständiger Name +Full name; Vollständiger Name +SIGN IN; ANMELDEN +Order History; Bestellverlauf +Account Details; Kontodetails +You have not placed any orders yet; Sie haben noch keine Bestellungen aufgegeben +My Account; Mein Konto +Already have an account?; Haben Sie bereits ein Konto? +Contact information; Kontaktinformationen +City; Stadt +Account Information; Kontoinformationen +Address; Adresse +Postcode; Postleitzahl +Postcode is required; Postleitzahl ist erforderlich +Telephone is required; Telefonnummer ist erforderlich +Telephone; Telefon +Full name is required; Vollständiger Name ist erforderlich +Country is required; Land ist erforderlich +Country; Land +Province is required; Provinz ist erforderlich +Province; Provinz +Billing Address; Rechnungsadresse +Shipping Address; Lieferadresse +Create A New Account; Ein neues Konto erstellen +Contact; Kontakt +Customer information; Kundeninformationen \ No newline at end of file diff --git a/translations/de/catalog.csv b/translations/de/catalog.csv index c87c0d3a1..ff955f68e 100644 --- a/translations/de/catalog.csv +++ b/translations/de/catalog.csv @@ -1,6 +1,6 @@ -Featured collection, Ausgewählte Kollektion -SHOP BY, Einkaufen nach -Sort By, Sortieren nach -There is no product to display, Es gibt keine Produkte zum Anzeigen -${count} products, ${count} Produkte -Search results for "${keyword}", Suchergebnisse für "${keyword}" \ No newline at end of file +Featured collection; Ausgewählte Kollektion +SHOP BY; Einkaufen nach +Sort By; Sortieren nach +There is no product to display; Es gibt keine Produkte zum Anzeigen +${count} products; ${count} Produkte +Search results for "${keyword}"; Suchergebnisse für "${keyword}" \ No newline at end of file diff --git a/translations/de/checkout.csv b/translations/de/checkout.csv index fd0f6c05b..064b1ea50 100644 --- a/translations/de/checkout.csv +++ b/translations/de/checkout.csv @@ -1,62 +1,62 @@ -Total, Gesamt -Order, Bestellung -Sku, SKU -Continue to shipping, Weiter zum Versand -Continue shopping, Weiter einkaufen -Continue Shopping, Weiter Einkaufen -CONTINUE SHOPPING, WEITER EINKAUFEN -Shopping cart, Einkaufswagen -Product, Produkt -Price, Preis -Quantity, Menge -Remove, Entfernen -Qty, Menge -Sub total, Zwischensumme -Discount(${coupon}), Rabatt(${coupon}) -Order summary, Bestellübersicht -Taxes and shipping calculated at checkout, Steuern und Versandkosten werden beim Bezahlen berechnet -CHECKOUT, ZUR KASSE -Change, Ändern -Payment Method, Zahlungsmethode -Shipping Address, Lieferadresse -Shipping Method, Versandmethode -No payment methods available, Keine Zahlungsmethoden verfügbar -Place Order, Bestellung aufgeben -My billing address is same as shipping address, Mein Rechnungsadresse ist gleich wie die Versandadresse -${count} items, ${count} Artikel -Discount, Rabatt -Shipping, Versand -No tax, Keine Steuern -Tax, Steuer -Sorry, there is no available method for your address, Entschuldigung, es gibt keine verfügbare Methode für Ihre Adresse -Please enter a shipping address in order to see shipping quotes, Bitte geben Sie eine Versandadresse ein, um Versandkosten zu sehen -Continue to payment, Weiter zur Zahlung -No payment method available, Keine Zahlungsmethode verfügbar -Ship to, Versenden an -Shipment, Versand -Thank you ${name}!, Danke, ${name}! -Contact information, Kontaktinformationen -Order #${orderNumber}, Bestellung #${orderNumber} -ADD TO CART, IN DEN WARENKORB -Please select variant options, Bitte wählen Sie Variantenoptionen -VIEW CART (${count}), WARENKORB ANZEIGEN (${count}) -JUST ADDED TO YOUR CART, SOEBEN ZU IHREM WARENKORB HINZUGEFÜGT -Promotion code?, Aktionscode? -Enter coupon code, Gutscheincode eingeben -Apply, Anwenden -Your cart is empty!, Ihr Warenkorb ist leer! -Full name, Voller Name -Telephone, Telefon -Address, Adresse -City, Stadt -Country, Land -Postcode, Postleitzahl -Inclusive of tax, Enthaltene Steuern -Sorry, there is no available method for your address,Entschuldigung, es gibt keine verfügbare Methode für Ihre Adresse. -Full name is required, Bitte angeben -Telephone is required, Bitte angeben -Address is required, Bitte angeben -City is required, Bitte angeben -Country is required, Bitte angeben -Postcode is required, Bitte angeben -Contact, Kontakt +Total; Gesamt +Order; Bestellung +Sku; SKU +Continue to shipping; Weiter zum Versand +Continue shopping; Weiter einkaufen +Continue Shopping; Weiter Einkaufen +CONTINUE SHOPPING; WEITER EINKAUFEN +Shopping cart; Einkaufswagen +Product; Produkt +Price; Preis +Quantity; Menge +Remove; Entfernen +Qty; Menge +Sub total; Zwischensumme +Discount(${coupon}); Rabatt(${coupon}) +Order summary; Bestellübersicht +Taxes and shipping calculated at checkout; Steuern und Versandkosten werden beim Bezahlen berechnet +CHECKOUT; ZUR KASSE +Change; Ändern +Payment Method; Zahlungsmethode +Shipping Address; Lieferadresse +Shipping Method; Versandmethode +No payment methods available; Keine Zahlungsmethoden verfügbar +You will be redirected to PayPal; Du wirst zu Paypal weitergeleitet +Place Order; Bestellung aufgeben +My billing address is same as shipping address; Meine Rechnungsadresse entspricht der Versandadresse +${count} items; ${count} Artikel +Discount; Rabatt +Shipping; Versand +No tax; Keine Steuern +Tax; Steuer +Please enter a shipping address in order to see shipping quotes; Bitte geben Sie eine Versandadresse ein, um Versandkosten zu sehen +Continue to payment; Weiter zur Zahlung +No payment method available; Keine Zahlungsmethode verfügbar +Ship to; Versenden an +Shipment; Versand +Thank you ${name}!; Danke, ${name}! +Contact information; Kontaktinformationen +Order #${orderNumber}; Bestellung #${orderNumber} +ADD TO CART; IN DEN WARENKORB +Please select variant options; Bitte wählen Sie Variantenoptionen +VIEW CART (${count}); WARENKORB ANZEIGEN (${count}) +JUST ADDED TO YOUR CART; SOEBEN ZU IHREM WARENKORB HINZUGEFÜGT +Promotion code?; Aktionscode? +Enter coupon code; Gutscheincode eingeben +Apply; Anwenden +Your cart is empty!; Ihr Warenkorb ist leer! +Full name; Voller Name +Telephone; Telefon +Address; Adresse +City; Stadt +Country; Land +Postcode; Postleitzahl +Inclusive of tax; Enthaltene Steuern +Sorry, there is no available method for your address; Entschuldigung, es gibt keine verfügbare Methode für Ihre Adresse. +Full name is required; Bitte angeben +Telephone is required; Bitte angeben +Address is required; Bitte angeben +City is required; Bitte angeben +Country is required; Bitte angeben +Postcode is required; Bitte angeben +Contact; Kontakt \ No newline at end of file diff --git a/translations/de/general.csv b/translations/de/general.csv index c4eb1c835..7497bc786 100644 --- a/translations/de/general.csv +++ b/translations/de/general.csv @@ -1,7 +1,7 @@ -Discount ${discount} For All Orders Over ${price}, Rabatt von ${discount} auf alle Bestellungen über ${price} -Please select, Bitte auswählen... -The page you requested does not exist., Die von Ihnen angeforderte Seite existiert nicht. -Continue shopping, Weiter einkaufen -404 Page Not Found, 404 Seite nicht gefunden -Home, Startseite -Not found, Nicht gefunden \ No newline at end of file +Discount ${discount} For All Orders Over ${price};Rabatt von ${discount} auf alle Bestellungen über ${price} +Please select;Bitte auswählen... +The page you requested does not exist.;Die von Ihnen angeforderte Seite existiert nicht. +Continue shopping;Weiter einkaufen +404 Page Not Found;404 Seite nicht gefunden +Home;Startseite +Not found;Nicht gefunden \ No newline at end of file