fubits1 / astro-tina-cms-i18n-starter

Home Page:https://astro-tina-cms-i18n-starter.vercel.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Astro + TinaCMS - Multilanguage / i18n

Demo: https://astro-tina-cms-i18n-starter.vercel.app/

Single-Language Starter

TinaCMS website: https://tina.io/

Testimonials

TODO: description

Docs

Core Setup Tasks

Config

  • confirm that it's possible to init tina without clientId / creating a new cloud project
  • in tina/config.ts: change default location for Tina's content collection to src/content
  • to fully utilize Tina with Astro, define an Astro content collection (for e.g. posts)

Development

  • regular pnpm dev && pnpm build (both are modified to init tinacms <task> before running Astro)
  • add clientId and token from the Tina project to .env (see .env.example)

Deployment

  • add environment variables to deployment environment:
    • TINA_CLIENT_ID
    • TINA_READ_ONLY_TOKEN

TODO

  • figure out how to use Astro's image components / preprocessing with Tina
  • figure out i18n support Official docs
    • TODO: data-based UI translations
  • figure out mdx support Official docs
  • how to re-share types / schema modeling btw. Tina and Astro?
    • Tina schema is defined in tina/config.ts
    • Astro schema is defined in src/content/config.ts

About

https://astro-tina-cms-i18n-starter.vercel.app


Languages

Language:Astro 57.3%Language:TypeScript 19.8%Language:CSS 18.7%Language:JavaScript 4.2%