-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
25 changed files
with
535 additions
and
542 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
{ | ||
"recommendations": [ | ||
"inlang.vs-code-extension" | ||
] | ||
} | ||
"recommendations": ["inlang.vs-code-extension"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
--- | ||
title: "not found" | ||
img: "_.jpg" | ||
alt: "" | ||
volgnummer: "" | ||
title: 'not found' | ||
img: '_.jpg' | ||
alt: '' | ||
volgnummer: '' | ||
--- | ||
|
||
# The requested page could not be found | ||
# The requested page could not be found |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
--- | ||
title: "niet gevonden" | ||
img: "_.jpg" | ||
alt: "" | ||
volgnummer: "" | ||
title: 'niet gevonden' | ||
img: '_.jpg' | ||
alt: '' | ||
volgnummer: '' | ||
--- | ||
|
||
# De gevraagde pagina kon niet worden gevonden | ||
# De gevraagde pagina kon niet worden gevonden |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
--- | ||
title: "not found" | ||
img: "_.jpg" | ||
alt: "" | ||
volgnummer: "" | ||
title: 'not found' | ||
img: '_.jpg' | ||
alt: '' | ||
volgnummer: '' | ||
--- | ||
|
||
# The requested page could not be found | ||
# The requested page could not be found |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
--- | ||
title: "niet gevonden" | ||
img: "_.jpg" | ||
alt: "" | ||
volgnummer: "" | ||
title: 'niet gevonden' | ||
img: '_.jpg' | ||
alt: '' | ||
volgnummer: '' | ||
--- | ||
|
||
# De gevraagde pagina kon niet worden gevonden | ||
# De gevraagde pagina kon niet worden gevonden |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
--- | ||
title: "not found" | ||
img: "_.jpg" | ||
alt: "" | ||
volgnummer: "" | ||
title: 'not found' | ||
img: '_.jpg' | ||
alt: '' | ||
volgnummer: '' | ||
--- | ||
|
||
# The requested page could not be found | ||
# The requested page could not be found |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
--- | ||
title: "niet gevonden" | ||
img: "_.jpg" | ||
alt: "" | ||
volgnummer: "" | ||
title: 'niet gevonden' | ||
img: '_.jpg' | ||
alt: '' | ||
volgnummer: '' | ||
--- | ||
|
||
# De gevraagde pagina kon niet worden gevonden | ||
# De gevraagde pagina kon niet worden gevonden |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,45 +1,45 @@ | ||
{ | ||
"name": "yeptrainingen-svelte", | ||
"version": "0.0.1", | ||
"private": true, | ||
"scripts": { | ||
"dev": "vite dev", | ||
"build": "vite build", | ||
"preview": "vite preview", | ||
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json", | ||
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch", | ||
"lint": "prettier --check . && eslint .", | ||
"format": "prettier --write ." | ||
}, | ||
"devDependencies": { | ||
"@sveltejs/adapter-auto": "^3.0.0", | ||
"@sveltejs/adapter-static": "^3.0.1", | ||
"@sveltejs/enhanced-img": "^0.2.0", | ||
"@sveltejs/kit": "^2.0.0", | ||
"@sveltejs/vite-plugin-svelte": "^3.0.0", | ||
"@types/eslint": "^8.56.0", | ||
"@typescript-eslint/eslint-plugin": "^7.0.0", | ||
"@typescript-eslint/parser": "^7.0.0", | ||
"bootstrap": "^4.6.2", | ||
"eslint": "^8.56.0", | ||
"eslint-config-prettier": "^9.1.0", | ||
"eslint-plugin-svelte": "^2.35.1", | ||
"mdsvex": "^0.11.0", | ||
"prettier": "^3.1.1", | ||
"prettier-plugin-svelte": "^3.1.2", | ||
"rehype-rewrite": "^4.0.2", | ||
"sass": "1.52.3", | ||
"svelte": "^4.2.7", | ||
"svelte-check": "^3.6.0", | ||
"svelte-preprocess": "^5.1.4", | ||
"tslib": "^2.4.1", | ||
"typescript": "^5.0.0", | ||
"vite": "^5.0.3", | ||
"@inlang/paraglide-js": "1.9.1" | ||
}, | ||
"type": "module", | ||
"dependencies": { | ||
"pug": "^3.0.3", | ||
"@inlang/paraglide-sveltekit": "0.9.2" | ||
} | ||
} | ||
"name": "yeptrainingen-svelte", | ||
"version": "0.0.1", | ||
"private": true, | ||
"scripts": { | ||
"dev": "vite dev", | ||
"build": "vite build", | ||
"preview": "vite preview", | ||
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json", | ||
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch", | ||
"lint": "prettier --check . && eslint .", | ||
"format": "prettier --write ." | ||
}, | ||
"devDependencies": { | ||
"@sveltejs/adapter-auto": "^3.0.0", | ||
"@sveltejs/adapter-static": "^3.0.1", | ||
"@sveltejs/enhanced-img": "^0.2.0", | ||
"@sveltejs/kit": "^2.0.0", | ||
"@sveltejs/vite-plugin-svelte": "^3.0.0", | ||
"@types/eslint": "^8.56.0", | ||
"@typescript-eslint/eslint-plugin": "^7.0.0", | ||
"@typescript-eslint/parser": "^7.0.0", | ||
"bootstrap": "^4.6.2", | ||
"eslint": "^8.56.0", | ||
"eslint-config-prettier": "^9.1.0", | ||
"eslint-plugin-svelte": "^2.35.1", | ||
"mdsvex": "^0.11.0", | ||
"prettier": "^3.1.1", | ||
"prettier-plugin-svelte": "^3.1.2", | ||
"rehype-rewrite": "^4.0.2", | ||
"sass": "1.52.3", | ||
"svelte": "^4.2.7", | ||
"svelte-check": "^3.6.0", | ||
"svelte-preprocess": "^5.1.4", | ||
"tslib": "^2.4.1", | ||
"typescript": "^5.0.0", | ||
"vite": "^5.0.3", | ||
"@inlang/paraglide-js": "1.9.1" | ||
}, | ||
"type": "module", | ||
"dependencies": { | ||
"pug": "^3.0.3", | ||
"@inlang/paraglide-sveltekit": "0.9.2" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,16 @@ | ||
{ | ||
"$schema": "https://inlang.com/schema/project-settings", | ||
"sourceLanguageTag": "nl", | ||
"languageTags": [ | ||
"nl", | ||
"en" | ||
], | ||
"modules": [ | ||
"https://cdn.jsdelivr.net/npm/@inlang/message-lint-rule-empty-pattern@latest/dist/index.js", | ||
"https://cdn.jsdelivr.net/npm/@inlang/message-lint-rule-missing-translation@latest/dist/index.js", | ||
"https://cdn.jsdelivr.net/npm/@inlang/message-lint-rule-without-source@latest/dist/index.js", | ||
"https://cdn.jsdelivr.net/npm/@inlang/message-lint-rule-valid-js-identifier@latest/dist/index.js", | ||
"https://cdn.jsdelivr.net/npm/@inlang/plugin-message-format@latest/dist/index.js", | ||
"https://cdn.jsdelivr.net/npm/@inlang/plugin-m-function-matcher@latest/dist/index.js" | ||
], | ||
"plugin.inlang.messageFormat": { | ||
"pathPattern": "./messages/{languageTag}.json" | ||
} | ||
} | ||
"$schema": "https://inlang.com/schema/project-settings", | ||
"sourceLanguageTag": "nl", | ||
"languageTags": ["nl", "en"], | ||
"modules": [ | ||
"https://cdn.jsdelivr.net/npm/@inlang/message-lint-rule-empty-pattern@latest/dist/index.js", | ||
"https://cdn.jsdelivr.net/npm/@inlang/message-lint-rule-missing-translation@latest/dist/index.js", | ||
"https://cdn.jsdelivr.net/npm/@inlang/message-lint-rule-without-source@latest/dist/index.js", | ||
"https://cdn.jsdelivr.net/npm/@inlang/message-lint-rule-valid-js-identifier@latest/dist/index.js", | ||
"https://cdn.jsdelivr.net/npm/@inlang/plugin-message-format@latest/dist/index.js", | ||
"https://cdn.jsdelivr.net/npm/@inlang/plugin-m-function-matcher@latest/dist/index.js" | ||
], | ||
"plugin.inlang.messageFormat": { | ||
"pathPattern": "./messages/{languageTag}.json" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
// file initialized by the Paraglide-SvelteKit CLI - Feel free to edit it | ||
import { sequence } from "@sveltejs/kit/hooks" | ||
import { i18n } from "$lib/i18n" | ||
import { sequence } from '@sveltejs/kit/hooks'; | ||
import { i18n } from '$lib/i18n'; | ||
|
||
// add your own hooks as part of the sequence here | ||
export const handle = sequence(i18n.handle()) | ||
export const handle = sequence(i18n.handle()); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
// file initialized by the Paraglide-SvelteKit CLI - Feel free to edit it | ||
import { i18n } from "$lib/i18n" | ||
import { i18n } from '$lib/i18n'; | ||
|
||
export const reroute = i18n.reroute() | ||
export const reroute = i18n.reroute(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,20 @@ | ||
// file initialized by the Paraglide-SvelteKit CLI - Feel free to edit it | ||
import { createI18n } from "@inlang/paraglide-sveltekit" | ||
import * as runtime from "$lib/paraglide/runtime.js" | ||
import { createI18n } from '@inlang/paraglide-sveltekit'; | ||
import * as runtime from '$lib/paraglide/runtime.js'; | ||
|
||
export const i18n = createI18n(runtime, { | ||
pathnames: { | ||
"/team": { | ||
nl: "/team", | ||
en: "/team", | ||
|
||
}, | ||
"/blog": { | ||
nl: "/blog", | ||
en: "/blog", | ||
|
||
}, | ||
"/onze-aanpak": { | ||
nl: "/onze-aanpak", | ||
en: "/our-approach", | ||
|
||
}, | ||
} | ||
|
||
}) | ||
pathnames: { | ||
'/team': { | ||
nl: '/team', | ||
en: '/team' | ||
}, | ||
'/blog': { | ||
nl: '/blog', | ||
en: '/blog' | ||
}, | ||
'/onze-aanpak': { | ||
nl: '/onze-aanpak', | ||
en: '/our-approach' | ||
} | ||
} | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,41 @@ | ||
import type { AvailableLanguageTag } from '$lib/paraglide/runtime.js'; | ||
const importPathsNl = { | ||
blog: import.meta.glob('$content/blog/*.nl.md'), | ||
coaching: import.meta.glob('$content/coaching/*.nl.md'), | ||
opdrachtgevers: import.meta.glob('$content/opdrachtgevers/*.nl.md'), | ||
team: import.meta.glob('$content/team/*.nl.md'), | ||
trainingen: import.meta.glob('$content/trainingen/*.nl.md') | ||
blog: import.meta.glob('$content/blog/*.nl.md'), | ||
coaching: import.meta.glob('$content/coaching/*.nl.md'), | ||
opdrachtgevers: import.meta.glob('$content/opdrachtgevers/*.nl.md'), | ||
team: import.meta.glob('$content/team/*.nl.md'), | ||
trainingen: import.meta.glob('$content/trainingen/*.nl.md') | ||
}; | ||
const importPathsEn = { | ||
blog: import.meta.glob('$content/blog/*.en.md'), | ||
coaching: import.meta.glob('$content/coaching/*.en.md'), | ||
opdrachtgevers: import.meta.glob('$content/opdrachtgevers/*.en.md'), | ||
team: import.meta.glob('$content/team/*.en.md'), | ||
trainingen: import.meta.glob('$content/trainingen/*.en.md') | ||
blog: import.meta.glob('$content/blog/*.en.md'), | ||
coaching: import.meta.glob('$content/coaching/*.en.md'), | ||
opdrachtgevers: import.meta.glob('$content/opdrachtgevers/*.en.md'), | ||
team: import.meta.glob('$content/team/*.en.md'), | ||
trainingen: import.meta.glob('$content/trainingen/*.en.md') | ||
}; | ||
|
||
const importPathsMap = { | ||
nl: importPathsNl, | ||
en: importPathsEn | ||
nl: importPathsNl, | ||
en: importPathsEn | ||
}; | ||
|
||
|
||
type ValidCategory = 'blog' | 'coaching' | 'opdrachtgevers' | 'team' | 'trainingen'; | ||
|
||
export const fetchContent = async (category: ValidCategory, language: AvailableLanguageTag) => { | ||
const importPaths = importPathsMap[language]; | ||
const allPostFiles = importPaths[category]; | ||
const iterablePostFiles = Object.entries(allPostFiles); | ||
const importPaths = importPathsMap[language]; | ||
const allPostFiles = importPaths[category]; | ||
const iterablePostFiles = Object.entries(allPostFiles); | ||
|
||
const allPosts = await Promise.all( | ||
iterablePostFiles.map(async ([path, resolver]) => { | ||
const { metadata } = await resolver(); | ||
const postPath = path.replace(`/content/${category}/`, '').replace(`.${language}.md`, ''); | ||
return { | ||
meta: metadata, | ||
path: postPath | ||
}; | ||
}) | ||
); | ||
const allPosts = await Promise.all( | ||
iterablePostFiles.map(async ([path, resolver]) => { | ||
const { metadata } = await resolver(); | ||
const postPath = path.replace(`/content/${category}/`, '').replace(`.${language}.md`, ''); | ||
return { | ||
meta: metadata, | ||
path: postPath | ||
}; | ||
}) | ||
); | ||
|
||
return allPosts; | ||
return allPosts; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.