Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 10 additions & 7 deletions astro.config.mjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
// @ts-check
import { defineConfig } from 'astro/config';
import paraglide from '@inlang/paraglide-astro';
import remarkGfm from 'remark-gfm';
import {
remarkDefinitionList,
Expand All @@ -9,6 +8,7 @@ import {
import svelte from '@astrojs/svelte';
import node from '@astrojs/node';
import config from './src/config.js';
import messagesPlugin, { messagesIntegration } from './scripts/messages-plugin.ts';

// https://astro.build/config
export default defineConfig({
Expand All @@ -33,18 +33,21 @@ export default defineConfig({
},

integrations: [
paraglide({
// recommended settings
project: './project.inlang',
outdir: './src/paraglide'
}),
svelte({
compilerOptions: {
customElement: true
}
})
}),
messagesIntegration()
],

vite: {
plugins: [messagesPlugin({
defaultLanguage: config.defaultLanguage,
enabledLanguages: config.enabledLanguages,
})],
},

adapter: process.env.NODE_ENV === 'production' ? undefined : node({
mode: 'standalone'
}),
Expand Down
1 change: 0 additions & 1 deletion messages/da.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{
"$schema": "https://inlang.com/schema/inlang-message-format",
"startTestNav": "Kør test",
"faqNav": "FAQ",
"welcome": "Velkommen til Zonemaster",
Expand Down
1 change: 0 additions & 1 deletion messages/en.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{
"$schema": "https://inlang.com/schema/inlang-message-format",
"startTestNav": "Start test",
"faqNav": "FAQ",
"welcome": "Welcome to Zonemaster",
Expand Down
1 change: 0 additions & 1 deletion messages/es.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{
"$schema": "https://inlang.com/schema/inlang-message-format",
"startTestNav": "Iniciar prueba",
"faqNav": "Preguntas frecuentes",
"welcome": "Bienvenido a Zonemaster",
Expand Down
1 change: 0 additions & 1 deletion messages/fi.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{
"$schema": "https://inlang.com/schema/inlang-message-format",
"startTestNav": "Aloita testi",
"faqNav": "UKK",
"welcome": "Tervetuloa Zonemasteriin",
Expand Down
1 change: 0 additions & 1 deletion messages/fr.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{
"$schema": "https://inlang.com/schema/inlang-message-format",
"startTestNav": "Démarrer un test",
"faqNav": "FAQ",
"welcome": "Bienvenue sur Zonemaster",
Expand Down
1 change: 0 additions & 1 deletion messages/nb.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{
"$schema": "https://inlang.com/schema/inlang-message-format",
"startTestNav": "Start sjekk",
"faqNav": "FAQ",
"welcome": "Velkommen til Zonemaster",
Expand Down
1 change: 0 additions & 1 deletion messages/sl.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{
"$schema": "https://inlang.com/schema/inlang-message-format",
"startTestNav": "Začni test",
"faqNav": "Pogosta vprašanja",
"welcome": "Dobrodošli v Zonemaster",
Expand Down
1 change: 0 additions & 1 deletion messages/sv.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{
"$schema": "https://inlang.com/schema/inlang-message-format",
"startTestNav": "Kör test",
"faqNav": "Vanliga frågor",
"welcome": "Välkommen till Zonemaster",
Expand Down
Loading