Skip to content

Commit

Permalink
Moved the translations and added Dutch translations (#598)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jade-GG authored Oct 29, 2024
1 parent 00e56d3 commit 954aa63
Show file tree
Hide file tree
Showing 4 changed files with 150 additions and 4 deletions.
File renamed without changes.
98 changes: 98 additions & 0 deletions lang/nl.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
{
":count of the requested quantity will be backordered": ":count van de aangevraagde hoeveelheid zal worden nageleverd",
"Accept cookies": "Accepteer cookies",
"Account": "Account",
"Add to cart": "Toevoegen aan winkelwagen",
"Added": "Toegevoegd",
"Adding": "Aan het toevoegen",
"Addition": "Toevoeging",
"All rights reserved.": "Alle rechten voorbehouden.",
"Apply coupon code": "Kortingscode toepassen",
"Apply": "Toepassen",
"Billing address": "Factuuradres",
"Cart": "Winkelwagen",
"Categories": "Categorieën",
"Category": "Categorie",
"Checkout": "Afrekenen",
"City": "Stad",
"Close": "Sluiten",
"Company": "Bedrijf",
"Compatible file extensions to upload": "Compatibele bestandsextensies om te uploaden",
"Continue": "Verder gaan",
"Country": "Land",
"Create an account": "Account aanmaken",
"Credentials": "Gegevens",
"Description": "Beschrijving",
"Fax": "Fax",
"Filters": "Filters",
"Firstname": "Voornaam",
"Forgot your password?": "Wachtwoord vergeten?",
"Go to home": "Naar de homepagina",
"Home": "Homepagina",
"Housenumber": "Huisnummer",
"Items per page": "Producten per pagina",
"Lastname": "Achternaam",
"Less options": "Minder opties",
"Loading": "Aan het laden",
"Login": "Inloggen",
"Logout": "Uitloggen",
"Maximum image height": "Maximale hoogte",
"Maximum image width": "Maximale breedte",
"Middlename": "Tussenvoegsel",
"More options": "Meer opties",
"My billing and shipping address are the same": "Mijn factuur- en verzendadres zijn hetzelfde",
"New address": "Nieuw adres",
"Next": "Volgende",
"No": "Nee",
"Order placed succesfully": "Bestelling succesvol geplaatst",
"Orders": "Bestellingen",
"page": "pagina",
"Password": "Wachtwoord",
"Payment method": "Betaalmethode",
"Payment": "Betalen",
"Place order": "Bestelling plaatsen",
"Postcode": "Postcode",
"Prefix": "Aanhef",
"Prev": "Vorige",
"Privacy Policy": "Privacybeleid",
"products": "producten",
"Quantity": "Hoeveelheid",
"Related products": "Gerelateerde producten",
"Remove": "Verwijderen",
"Repeat password": "Wachtwoord herhalen",
"Reset filters": "Filters resetten",
"Search for": "Zoeken naar",
"Search": "Zoeken",
"Select": "Selecteer",
"Shipping & billing address": "Verzend- en factuuradres",
"Shipping address": "Verzendadres",
"Shipping method": "Verzendmethode",
"Shipping": "Verzending",
"Show cart": "Bekijk winkelwagen",
"Show results": "Bekijk resultaten",
"Sign up for our newsletter to stay up to date.": "Meld je aan voor onze nieuwsbrief om op de hoogte te blijven.",
"Sorry! No image": "Sorry! Geen afbeelding",
"Sorry! This product is currently out of stock.": "Sorry! Dit product is momenteel niet op voorraad.",
"Sorry! We did not find any products.": "Sorry! We hebben geen producten gevonden.",
"Specifications": "Specificaties",
"Street": "Straat",
"Subscribe": "Inschrijven",
"Subtotal": "Subtotaal",
"Success": "Succes",
"Suffix": "Achtervoegsel",
"Tax ID": "Btw-id",
"Telephone": "Telefoonnummer",
"Thank you for subscribing!": "Bedankt voor het inschrijven!",
"This product will be backordered": "Dit product zal worden nageleverd",
"This website uses cookies": "Deze website maakt gebruik van cookies",
"Total": "Totaal",
"Update": "Update",
"Want product news and updates?": "Wil je productnieuws en updates?",
"We care about the protection of your data. Read our": "Wij geven om de bescherming van uw gegevens. Lees onze",
"We found other products you might like!": "We hebben andere producten gevonden die je misschien leuk vindt!",
"We will get to work for you right away": "Wij gaan meteen aan de slag",
"We will send a confirmation of your order to": "Wij zullen een confirmatie sturen naar",
"Wishlist": "Wensenlijst",
"Yes": "Ja",
"You don't have anything in your cart.": "Deze winkelwagen is leeg."
}
42 changes: 42 additions & 0 deletions lang/nl/frontend.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
<?php

return [
'cart' => [
'add' => 'toegevoegd aan de winkelwagen.',
'remove' => 'verwijderd van de winkelwagen.',
'coupon' => [
'applied' => 'Kortingscode succesvol toegepast!',
],
],
'errors' => [
'wrong' => 'Er ging iets fout, probeer het opnieuw.',
'session_expired' => 'Je sessie is verlopen, log opnieuw in.',
'cart_expired' => 'Je winkelwagen is verlopen, voeg de producten opnieuw toe.',
],
'checkout' => [
'no_shipping_method' => 'Geen verzendmethode geselecteerd.',
'no_payment_method' => 'Geen betaalmethode geselecteerd.',
],
'account' => [
'password_mismatch' => 'De wachtwoorden komen niet overeen.',
'email_password' => 'Je hebt geen email of wachtwoord opgegeven.',
'email' => 'Een email adres is verplicht.',
],

'asc' => 'oplopend',
'desc' => 'aflopend',
'relevance' => 'Relevantie',
'newest' => 'Nieuwste',
'all' => 'Alles',

'sorting' => [
'price' => [
'asc' => 'Prijs oplopend',
'desc' => 'Prijs aflopend',
],
'name' => [
'asc' => 'Naam A-Z',
'desc' => 'Naam Z-A',
],
],
];
14 changes: 10 additions & 4 deletions src/RapidezServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,14 @@ protected function bootPublishables(): self
__DIR__ . '/../resources/views' => resource_path('views/vendor/rapidez'),
], 'views');

$this->publishes([
__DIR__ . '/../resources/lang' => resource_path('lang/vendor/rapidez'),
], 'translations');
// We're so explicit here as otherwise the json translations will also be published.
// That will publish to /lang/vendor/rapidez/nl.json where it will not be loaded
// by default and; you should keep everyting in one place: /lang/nl.json
foreach (['en', 'nl'] as $lang) {
$this->publishes([
__DIR__ . '/../lang/' . $lang . '/frontend.php' => lang_path('vendor/rapidez/' . $lang . '/frontend.php'),
], 'rapidez-translations');
}

$this->publishes([
__DIR__ . '/../resources/payment-icons' => public_path('payment-icons'),
Expand Down Expand Up @@ -235,7 +240,8 @@ protected function bootMiddleware(): self

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

return $this;
}
Expand Down

0 comments on commit 954aa63

Please sign in to comment.