← All posts

Welcome to this learning blog

How this site works and how to publish the same article in English, French, and Arabic.

  • meta
  • astro

This blog is a personal study journal by Nada Tayebi, a software engineering student. When I learn something, I rewrite it in my own words. That helps memory—and if it helps you too, even better.

Three languages, one topic

Each “logical” article uses the same translationKey in every language file. Put English in src/content/blog/en/, French in fr/, and Arabic in ar/ (same filename is a good habit).

Required frontmatter in each file:

  • title, description, pubDate
  • translationKey — shared slug (example: welcome-to-this-blog)
  • localeen, fr, or ar

Optional: updatedDate, tags, draft: true.

The header lets readers switch EN · FR · العربية. If a translation is missing, that language links to the blog index until you add the file.

Run locally

npm run dev

Then open the URL from the terminal and pick a language from the home page.