Skip to content

Commit 954aa63

Browse files
authored
Moved the translations and added Dutch translations (#598)
1 parent 00e56d3 commit 954aa63

File tree

4 files changed

+150
-4
lines changed

4 files changed

+150
-4
lines changed

lang/nl.json

Lines changed: 98 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,98 @@
1+
{
2+
":count of the requested quantity will be backordered": ":count van de aangevraagde hoeveelheid zal worden nageleverd",
3+
"Accept cookies": "Accepteer cookies",
4+
"Account": "Account",
5+
"Add to cart": "Toevoegen aan winkelwagen",
6+
"Added": "Toegevoegd",
7+
"Adding": "Aan het toevoegen",
8+
"Addition": "Toevoeging",
9+
"All rights reserved.": "Alle rechten voorbehouden.",
10+
"Apply coupon code": "Kortingscode toepassen",
11+
"Apply": "Toepassen",
12+
"Billing address": "Factuuradres",
13+
"Cart": "Winkelwagen",
14+
"Categories": "Categorieën",
15+
"Category": "Categorie",
16+
"Checkout": "Afrekenen",
17+
"City": "Stad",
18+
"Close": "Sluiten",
19+
"Company": "Bedrijf",
20+
"Compatible file extensions to upload": "Compatibele bestandsextensies om te uploaden",
21+
"Continue": "Verder gaan",
22+
"Country": "Land",
23+
"Create an account": "Account aanmaken",
24+
"Credentials": "Gegevens",
25+
"Description": "Beschrijving",
26+
"Fax": "Fax",
27+
"Filters": "Filters",
28+
"Firstname": "Voornaam",
29+
"Forgot your password?": "Wachtwoord vergeten?",
30+
"Go to home": "Naar de homepagina",
31+
"Home": "Homepagina",
32+
"Housenumber": "Huisnummer",
33+
"Items per page": "Producten per pagina",
34+
"Lastname": "Achternaam",
35+
"Less options": "Minder opties",
36+
"Loading": "Aan het laden",
37+
"Login": "Inloggen",
38+
"Logout": "Uitloggen",
39+
"Maximum image height": "Maximale hoogte",
40+
"Maximum image width": "Maximale breedte",
41+
"Middlename": "Tussenvoegsel",
42+
"More options": "Meer opties",
43+
"My billing and shipping address are the same": "Mijn factuur- en verzendadres zijn hetzelfde",
44+
"New address": "Nieuw adres",
45+
"Next": "Volgende",
46+
"No": "Nee",
47+
"Order placed succesfully": "Bestelling succesvol geplaatst",
48+
"Orders": "Bestellingen",
49+
"page": "pagina",
50+
"Password": "Wachtwoord",
51+
"Payment method": "Betaalmethode",
52+
"Payment": "Betalen",
53+
"Place order": "Bestelling plaatsen",
54+
"Postcode": "Postcode",
55+
"Prefix": "Aanhef",
56+
"Prev": "Vorige",
57+
"Privacy Policy": "Privacybeleid",
58+
"products": "producten",
59+
"Quantity": "Hoeveelheid",
60+
"Related products": "Gerelateerde producten",
61+
"Remove": "Verwijderen",
62+
"Repeat password": "Wachtwoord herhalen",
63+
"Reset filters": "Filters resetten",
64+
"Search for": "Zoeken naar",
65+
"Search": "Zoeken",
66+
"Select": "Selecteer",
67+
"Shipping & billing address": "Verzend- en factuuradres",
68+
"Shipping address": "Verzendadres",
69+
"Shipping method": "Verzendmethode",
70+
"Shipping": "Verzending",
71+
"Show cart": "Bekijk winkelwagen",
72+
"Show results": "Bekijk resultaten",
73+
"Sign up for our newsletter to stay up to date.": "Meld je aan voor onze nieuwsbrief om op de hoogte te blijven.",
74+
"Sorry! No image": "Sorry! Geen afbeelding",
75+
"Sorry! This product is currently out of stock.": "Sorry! Dit product is momenteel niet op voorraad.",
76+
"Sorry! We did not find any products.": "Sorry! We hebben geen producten gevonden.",
77+
"Specifications": "Specificaties",
78+
"Street": "Straat",
79+
"Subscribe": "Inschrijven",
80+
"Subtotal": "Subtotaal",
81+
"Success": "Succes",
82+
"Suffix": "Achtervoegsel",
83+
"Tax ID": "Btw-id",
84+
"Telephone": "Telefoonnummer",
85+
"Thank you for subscribing!": "Bedankt voor het inschrijven!",
86+
"This product will be backordered": "Dit product zal worden nageleverd",
87+
"This website uses cookies": "Deze website maakt gebruik van cookies",
88+
"Total": "Totaal",
89+
"Update": "Update",
90+
"Want product news and updates?": "Wil je productnieuws en updates?",
91+
"We care about the protection of your data. Read our": "Wij geven om de bescherming van uw gegevens. Lees onze",
92+
"We found other products you might like!": "We hebben andere producten gevonden die je misschien leuk vindt!",
93+
"We will get to work for you right away": "Wij gaan meteen aan de slag",
94+
"We will send a confirmation of your order to": "Wij zullen een confirmatie sturen naar",
95+
"Wishlist": "Wensenlijst",
96+
"Yes": "Ja",
97+
"You don't have anything in your cart.": "Deze winkelwagen is leeg."
98+
}

lang/nl/frontend.php

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
<?php
2+
3+
return [
4+
'cart' => [
5+
'add' => 'toegevoegd aan de winkelwagen.',
6+
'remove' => 'verwijderd van de winkelwagen.',
7+
'coupon' => [
8+
'applied' => 'Kortingscode succesvol toegepast!',
9+
],
10+
],
11+
'errors' => [
12+
'wrong' => 'Er ging iets fout, probeer het opnieuw.',
13+
'session_expired' => 'Je sessie is verlopen, log opnieuw in.',
14+
'cart_expired' => 'Je winkelwagen is verlopen, voeg de producten opnieuw toe.',
15+
],
16+
'checkout' => [
17+
'no_shipping_method' => 'Geen verzendmethode geselecteerd.',
18+
'no_payment_method' => 'Geen betaalmethode geselecteerd.',
19+
],
20+
'account' => [
21+
'password_mismatch' => 'De wachtwoorden komen niet overeen.',
22+
'email_password' => 'Je hebt geen email of wachtwoord opgegeven.',
23+
'email' => 'Een email adres is verplicht.',
24+
],
25+
26+
'asc' => 'oplopend',
27+
'desc' => 'aflopend',
28+
'relevance' => 'Relevantie',
29+
'newest' => 'Nieuwste',
30+
'all' => 'Alles',
31+
32+
'sorting' => [
33+
'price' => [
34+
'asc' => 'Prijs oplopend',
35+
'desc' => 'Prijs aflopend',
36+
],
37+
'name' => [
38+
'asc' => 'Naam A-Z',
39+
'desc' => 'Naam Z-A',
40+
],
41+
],
42+
];

src/RapidezServiceProvider.php

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -118,9 +118,14 @@ protected function bootPublishables(): self
118118
__DIR__ . '/../resources/views' => resource_path('views/vendor/rapidez'),
119119
], 'views');
120120

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

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

236241
protected function bootTranslations(): self
237242
{
238-
$this->loadTranslationsFrom(__DIR__ . '/../resources/lang', 'rapidez');
243+
$this->loadTranslationsFrom(__DIR__ . '/../lang', 'rapidez');
244+
$this->loadJsonTranslationsFrom(__DIR__ . '/../lang');
239245

240246
return $this;
241247
}

0 commit comments

Comments
 (0)