Skip to content

Commit db62ffd

Browse files
Added Dutch translation
1 parent 1cdaa9c commit db62ffd

18 files changed

+316
-295
lines changed

nodejs/htmlGenerator.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,10 @@ xlsxFile("../../../../OneDrive/Documents/Patterns.xlsm", { sheet: "Patterns" }).
3838
{ lang: "ar", name: "العربية", col: 9, site: "https://ar.pattern.monster", path: "../ar.pattern.monster/" },
3939
{ lang: "pt", name: "Português", col: 10, site: "https://pt.pattern.monster", path: "../pt.pattern.monster/" },
4040
{ lang: "zh-cn", name: "中文(简体)", col: 11, site: "https://cn.pattern.monster", path: "../cn.pattern.monster/" },
41+
{ lang: "nl", name: "Nederlands", col: 12, site: "https://nl.pattern.monster", path: "../nl.pattern.monster/" },
4142

42-
// { lang: "uk", name: "Українська", col: 11, path: "../../uk.pattern.monster/" },
43-
// { lang: "af", name: "Afrikaans", col: 12, path: "../../af.pattern.monster/" },
43+
// { lang: "uk", name: "Українська", col: 13, path: "../../uk.pattern.monster/" },
44+
// { lang: "af", name: "Afrikaans", col: 14, path: "../../af.pattern.monster/" },
4445
];
4546

4647
languages.forEach((language) => {

src/components/Footer.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
"Chinese Traditional2% • 2%",
3939
"Czech2% • 2%",
4040
"Danish2% • 2%",
41-
"Dutch2% • 2%",
41+
"Dutch100% • 100%",
4242
"Finnish5% • 5%",
4343
"French34% • 34%",
4444
"German43% • 43%",
@@ -70,7 +70,7 @@
7070
"2% • 2%",
7171
"2% • 2%",
7272
"2% • 2%",
73-
"2% • 2%",
73+
"100% • 100%",
7474
"5% • 5%",
7575
"34% • 34%",
7676
"43% • 43%",

src/components/LangSelect.svelte

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
{ id: "es", name: "Español", link: "https://es.pattern.monster" },
1212
{ id: "fr", name: "Français", link: "https://fr.pattern.monster" },
1313
{ id: "it", name: "Italiano", link: "https://it.pattern.monster" },
14+
{ id: "nl", name: "Nederlands", link: "https://nl.pattern.monster" },
1415
{ id: "pl", name: "Polski", link: "https://pl.pattern.monster" },
1516
{ id: "pt", name: "Português", link: "https://pt.pattern.monster" },
1617
{ id: "ro", name: "Română", link: "https://ro.pattern.monster" },

src/components/ShopSelect.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@
8888
margin: 0 auto;
8989
justify-items: end;
9090
font-size: 1em;
91-
padding-left: 0.5em;
91+
padding: var(--shop-menu-padding);
9292
}
9393
.menuButton {
9494
font-weight: 500;

src/css/global.css

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@
3333
--notification-list-padding: 0.5em 1em 0.5em 2.5em;
3434
--notification-header-padding: 1.5em 1em 0.5em 1.5em;
3535
--notification-header-margin: 1em -0.8em 0 -2.5em;
36+
--list-style-before-left: 0;
37+
--list-style-before-right: auto;
38+
--list-style-padding: 1px 0 9px 25px;
39+
--shop-menu-padding: 0 0 0 0.5em;
3640
}
3741
[data-theme="dark"] {
3842
--pattern-bg: rgb(24, 24, 30);
@@ -56,6 +60,10 @@
5660
--notification-list-padding: 0.5em 2.5em 0.5em 1em;
5761
--notification-header-padding: 1.5em 1.5em 0.5em 1em;
5862
--notification-header-margin: 1em -2.5em 0 -0.8em;
63+
--list-style-before-left: auto;
64+
--list-style-before-right: 0;
65+
--list-style-padding: 1px 25px 9px 0;
66+
--shop-menu-padding: 0 0.5em 0 0;
5967
}
6068

6169
*,
@@ -914,14 +922,15 @@ button.bellIcon:active {
914922
.shopFeatures li {
915923
list-style: none;
916924
position: relative;
917-
padding: 1px 0 9px 25px;
925+
padding: var(--list-style-padding);
918926
}
919927

920928
.shopFeatures li::before {
921929
content: "-";
922930
position: absolute;
923931
top: 0;
924-
left: 0;
932+
left: var(--list-style-before-left);
933+
right: var(--list-style-before-right);
925934
}
926935
.shop-button {
927936
display: inline-block;

src/routes/_constants.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,10 @@ const strings = {
136136
lang: "zh-cn",
137137
website: "https://cn.pattern.monster",
138138
},
139+
{
140+
lang: "nl",
141+
website: "https://nl.pattern.monster",
142+
},
139143
],
140144
};
141145

src/routes/_values.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
11
let changeLog = [
2+
{
3+
date: "October 12, 2021",
4+
updates: [
5+
'Added Dutch translation by Maarten van der Velde which can be accessed <a href="https://nl.pattern.monster">here</a>',
6+
],
7+
},
28
{
39
date: "October 10, 2021",
410
updates: [

src/routes/pattern-accessories.svelte

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
};
4343
});
4444
const uniqCategories = [...new Map(categories.map((item) => [item["category_id"], item])).values()];
45-
45+
4646
$: selectedUnique = uniqCategories.filter((category) => category.category_id === selection);
4747
</script>
4848

@@ -76,14 +76,14 @@
7676
<h1 class="text-center mt-12 p-2 mb-2 pb-6 font-semibold text-4xl uppercase">{strings[page]}</h1>
7777

7878
<div class="container mx-auto">
79-
<div class="range2Controls mt-8">
80-
<div class="radio-toolbar">
81-
{#each uniqCategories as cat}
82-
<input type="radio" id={cat.category_id} name="bg" value={cat.category_id} bind:group={selection} />
83-
<label class="disable-select" for={cat.category_id}>{strings[cat.item_id]}</label>
84-
{/each}
85-
</div>
79+
<!-- <div class="range2Controls mt-8"> -->
80+
<div class="radio-toolbar">
81+
{#each uniqCategories as cat}
82+
<input type="radio" id={cat.category_id} name="bg" value={cat.category_id} bind:group={selection} />
83+
<label class="disable-select" for={cat.category_id}>{strings[cat.item_id]}</label>
84+
{/each}
8685
</div>
86+
<!-- </div> -->
8787
</div>
8888
<div class="container mx-auto gray-text p-4 pt-12 pb-4 title">
8989
<h2 class="inline-block font-semibold secondary-text-color">{strings[selectedUnique[0].item_id]}</h2>

src/routes/pattern-home-living.svelte

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -76,14 +76,14 @@
7676
<h1 class="text-center mt-12 p-2 mb-2 pb-6 font-semibold text-4xl uppercase">{strings[page]}</h1>
7777

7878
<div class="container mx-auto">
79-
<div class="range2Controls mt-8">
80-
<div class="radio-toolbar">
81-
{#each uniqCategories as cat}
82-
<input type="radio" id={cat.category_id} name="bg" value={cat.category_id} bind:group={selection} />
83-
<label class="disable-select" for={cat.category_id}>{strings[cat.item_id]}</label>
84-
{/each}
85-
</div>
79+
<!-- <div class="range2Controls mt-8"> -->
80+
<div class="radio-toolbar">
81+
{#each uniqCategories as cat}
82+
<input type="radio" id={cat.category_id} name="bg" value={cat.category_id} bind:group={selection} />
83+
<label class="disable-select" for={cat.category_id}>{strings[cat.item_id]}</label>
84+
{/each}
8685
</div>
86+
<!-- </div> -->
8787
</div>
8888
<div class="container mx-auto gray-text p-4 pt-12 pb-4 title">
8989
<h2 class="inline-block font-semibold secondary-text-color">{strings[selectedUnique[0].item_id]}</h2>

src/routes/pattern-phone-cases.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,14 +76,14 @@
7676
<h1 class="text-center mt-12 p-2 mb-2 pb-6 font-semibold text-4xl uppercase">{strings[page]}</h1>
7777

7878
<div class="container mx-auto">
79-
<div class="range2Controls mt-8">
79+
<!-- <div class="range2Controls mt-8"> -->
8080
<div class="radio-toolbar">
8181
{#each uniqCategories as cat}
8282
<input type="radio" id={cat.category_id} name="bg" value={cat.category_id} bind:group={selection} />
8383
<label class="disable-select" for={cat.category_id}>{strings[cat.item_id]}</label>
8484
{/each}
8585
</div>
86-
</div>
86+
<!-- </div> -->
8787
</div>
8888
<div class="container mx-auto gray-text p-4 pt-12 pb-4 title">
8989
<h2 class="inline-block font-semibold secondary-text-color">{strings[selectedUnique[0].item_id]}</h2>

0 commit comments

Comments
 (0)