Skip to content

desering/sveltia-cms-poc

Repository files navigation

sveltia-cms-poc

A poc/template for multilingual static sites built with Astro and Sveltia.

It only supports the subdirectory URL format. Each language is managed with a URL like the following. The root URL will redirect to the specified default language.

  • example.com/en/
  • example.com/es/

Features

  • Support for Astro's official i18n functionality
  • Various methods for managing multilingual pages
  • Vanilla CSS
  • SEO-friendly

Getting started

Install dependencies:

bun i

Run dev server:

bun run --bun dev

Run tests with vitest (vi.mock depends on Node.js behavior for module interception and is not compatible with the --bun runtime):

bun run test

Deployment

GHA workflow builds static site and pushes it to GitHub Pages.

Sveltia CMS requires an Oauth client to allow users to authenticate to GitHub. See https://github.com/desering/sveltia-cms-auth.