Skip to content

Commit

Permalink
Dutch translations (#119)
Browse files Browse the repository at this point in the history
  • Loading branch information
JimmyHoenderdaal authored Oct 29, 2024
1 parent fdf18e1 commit c71fd25
Show file tree
Hide file tree
Showing 2 changed files with 115 additions and 11 deletions.
95 changes: 95 additions & 0 deletions lang/nl.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
{
"Account features": "Account voordelen",
"Account overview": "Account overzicht",
"Account registration successful.": "Accountregistratie succesvol.",
"Account settings": "Account instellingen",
"Add a new address": "Voeg een nieuw adres toe",
"Add address and save": "Voeg adres toe en sla op",
"Address": "Adres",
"Address changed successfully": "Adres succesvol gewijzigd",
"Address created successfully": "Adres succesvol aangemaakt",
"Address data": "Adresgegevens",
"Already logged in": "Al ingelogd",
"Amount": "Bedrag",
"An email is send with a password reset link if an account exists with the provided email address.": "Een e-mail is verzonden met een link om het wachtwoord te resetten, als er een account bestaat met het opgegeven e-mailadres.",
"and use a different e-mail address.": "en gebruik een ander e-mailadres.",
"Back to account": "Terug naar account",
"Back to cart": "Terug naar winkelwagen",
"Back to credentials": "Terug naar inloggegevens",
"Back to dashboard": "Terug naar dashboard",
"Back to login": "Terug naar inloggen",
"Back to my orders": "Terug naar mijn bestellingen",
"Back to settings": "Terug naar instellingen",
"Change address and save": "Adres wijzigen en opslaan",
"Change credentials / Add addresses / Newsletters": "Wijzig gegevens / Voeg adressen toe / Nieuwsbrieven",
"Change e-mail address": "E-mailadres wijzigen",
"Change password": "Wachtwoord wijzigen",
"Changed successfully!": "Succesvol gewijzigd!",
"Contact information": "Contactgegevens",
"Continue shopping": "Verder winkelen",
"Coupon code": "Kortingscode",
"Current password": "Huidig wachtwoord",
"Customer centre": "Klantenservice",
"Default billing address": "Standaard factuuradres",
"Default shipping address": "Standaard verzendadres",
"Delete address": "Adres verwijderen",
"Delivery method": "Bezorgmethode",
"Deselect as billing": "Deselecteer als factuuradres",
"Deselect as shipping": "Deselecteer als verzendadres",
"Don't have an account yet? Create an account and enjoy faster ordering, repeat orders, status of your order, easy returns and more!": "Nog geen account? Maak een account aan en geniet van sneller bestellen, herhaalde bestellingen, bestelstatus, gemakkelijke retouren en meer!",
"Edit": "Bewerken",
"Email": "E-mail",
"Enter your e-mail address": "Voer uw e-mailadres in",
"Enter your email address": "Voer uw e-mailadres in",
"Enter your email address below, you will receive an email within minutes to reset the password.": "Voer hieronder uw e-mailadres in, u ontvangt binnen enkele minuten een e-mail om het wachtwoord te resetten.",
"Everything centralized in 1 place such as returns, exchanges and customer service": "Alles gecentraliseerd op 1 plek zoals retouren, ruilingen en klantenservice",
"Free": "Gratis",
"Go to your account": "Ga naar uw account",
"Is this not your account?": "Is dit niet uw account?",
"Log out": "Uitloggen",
"Logout from your account": "Uitloggen van uw account",
"My addresses": "Mijn adressen",
"New password": "Nieuw wachtwoord",
"No account yet? Create an account and benefit instantly from repeat orders, order statuses and easy returns!": "Nog geen account? Maak direct een account aan en profiteer van herhaalde bestellingen, bestelstatus en gemakkelijke retouren!",
"No default address has been set yet.": "Er is nog geen standaardadres ingesteld.",
"Number of products": "Aantal producten",
"Order": "Bestelling",
"Order again": "Bestelling herhalen",
"Order date": "Besteldatum",
"Order overview": "Bestellingsoverzicht",
"Ordered within 2 minutes": "Besteld binnen 2 minuten",
"Place repeat order / View orders": "Herhaal bestelling / Bekijk bestellingen",
"Please select an address": "Selecteer een adres",
"Price": "Prijs",
"Product": "Product",
"Quick and easy ordering without having to fill in your details every time": "Snel en eenvoudig bestellen zonder elke keer uw gegevens in te vullen",
"Register": "Registreren",
"Register account": "Account registreren",
"Register within 1 minute": "Registreer binnen 1 minuut",
"Return to home": "Terug naar home",
"Security token": "Beveiligingstoken",
"Select an address": "Selecteer een adres",
"Select as billing": "Selecteer als factuuradres",
"Select as shipping": "Selecteer als verzendadres",
"Send": "Versturen",
"Step 1 of 4": "Stap 1 van 4",
"Step :step out of :total": "Stap :step van :total",
"Subscribe to newsletter": "Inschrijven voor nieuwsbrief",
"Thank you for subscribing": "Bedankt voor uw inschrijving",
"Thank you for your order": "Bedankt voor uw bestelling",
"This is a business account": "Dit is een zakelijke account",
"To checkout": "Naar afrekenen",
"Total price": "Totale prijs",
"Total price (incl. VAT)": "Totale prijs (incl. BTW)",
"Track status of your order and view order history": "Volg de status van uw bestelling en bekijk uw bestelgeschiedenis",
"Use a new address": "Gebruik een nieuw adres",
"Vat ID": "BTW-nummer",
"We will also check if you already have an account so you can checkout more efficiently.": "We zullen ook controleren of u al een account heeft, zodat u efficiënter kunt afrekenen.",
"We will send your order confirmation to this e-mail address.": "We sturen uw orderbevestiging naar dit e-mailadres.",
"Welcome back": "Welkom terug",
"Yes, I want to subscribe to the newsletter": "Ja, ik wil me inschrijven voor de nieuwsbrief",
"You already have an account with this e-mail address. Please log in to continue.": "U heeft al een account met dit e-mailadres. Log in om verder te gaan.",
"You do not have any orders yet.": "U heeft nog geen bestellingen.",
"You will receive this newsletter approximately 2x a year": "U ontvangt deze nieuwsbrief ongeveer 2x per jaar",
"Your password has been changed, please login.": "Uw wachtwoord is gewijzigd, log alstublieft in."
}
31 changes: 20 additions & 11 deletions src/ServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,44 +18,46 @@ public function boot()
$this
->bootViews()
->bootPublishables()
->bootMacros();
->bootMacros()
->bootTranslations();
}

public function registerConfig() : self
public function registerConfig(): self
{
$this->mergeConfigFrom(__DIR__.'/../config/rapidez/checkout-theme.php', 'rapidez.checkout-theme');
$this->mergeConfigFrom(__DIR__ . '/../config/rapidez/checkout-theme.php', 'rapidez.checkout-theme');

return $this;
}

public function bootViews() : self
public function bootViews(): self
{
$this->loadViewsFrom(__DIR__.'/../resources/views', 'rapidez-ct');
$this->loadViewsFrom(__DIR__ . '/../resources/views', 'rapidez-ct');

return $this;
}

public function bootPublishables() : self
public function bootPublishables(): self
{
$this->publishes([
__DIR__.'/../resources/core-overwrites' => resource_path('views/vendor/rapidez'),
__DIR__ . '/../resources/core-overwrites' => resource_path('views/vendor/rapidez'),
], 'core-overwrites');

$this->publishes([
__DIR__.'/../resources/views' => resource_path('views/vendor/rapidez-ct'),
__DIR__ . '/../resources/views' => resource_path('views/vendor/rapidez-ct'),
], 'views');

$this->publishes([
__DIR__.'/../config/rapidez/checkout-theme.php' => config_path('rapidez/checkout-theme.php'),
__DIR__ . '/../config/rapidez/checkout-theme.php' => config_path('rapidez/checkout-theme.php'),
], 'config');

return $this;
}
public function bootMacros() : self

public function bootMacros(): self
{
ComponentAttributeBag::macro('hasAny', function ($key) {
/** @var ComponentAttributeBag $this */
if (! count($this->attributes)) {
if (!count($this->attributes)) {
return false;
}

Expand All @@ -71,4 +73,11 @@ public function bootMacros() : self
});
return $this;
}

protected function bootTranslations(): self
{
$this->loadJsonTranslationsFrom(__DIR__ . '/../lang');

return $this;
}
}

0 comments on commit c71fd25

Please sign in to comment.