www/astro.config.mjs
Angel cb4df21583
feat(i18n): add spanish translation (#657)
* feat(i18n): add Spanish localization

* feat(cspell): add additional Spanish words to dictionary

* feat(i18n): Update translation

* fix: minor spelling issues

* chore: remove unnecessary margin

* feat: add arktype

* chore: update cspell dictionary

* refactor: implement object schema with arktype to validate schema on runtime

* refactor(i18n): simplify locale retrieval process

* fix: linter issues

* refactor: replace import glob with static imports to prevent playwright from dying

* chore: remove unnecessary mapping

* refactor: split logic into multiple files

* chore: use new imports

* fix: fix playwright tests with import glob

* chore: update lock files

* chore: fix types

* chore: update fonts with broader subset

---------

Co-authored-by: Bryan Galdámez <josuegalre@gmail.com>
2025-06-09 20:22:06 -06:00

30 lines
677 B
JavaScript

import react from '@astrojs/react'
import sitemap from '@astrojs/sitemap'
import tailwind from '@astrojs/tailwind'
import { defineConfig } from 'astro/config'
// https://astro.build/config
export default defineConfig({
integrations: [tailwind(), react(), sitemap()],
site: 'https://zen-browser.app',
i18n: {
defaultLocale: 'en',
locales: ['en', 'ja', 'es'],
routing: {
fallbackType: 'rewrite',
prefixDefaultLocale: false,
},
},
vite: {
build: {
rollupOptions: {
output: {
manualChunks: {
vendor: ['react', 'react-dom'],
astro: ['astro'],
},
},
},
},
},
})