This project consists of a backend API that combines/transforms TRT's content APIs in different languages and a frontend application that consumes this API.
- Backend (API): NestJS (Node.js framework)
- Frontend: Next.js (React framework)
- apps/api: NestJS API
- apps/frontend: Next.js frontend
- GET
/api/v1/content
language: Filter by language (e.g.,fr,ar,bs,sq,mk,ru,de)
- GET
/api/v1/proxy-content/:lang
- POST
/api/v1/translate
targetLangs: Target languages (e.g.,fr,ar,bs,sq,mk,ru,de)
source_id: Source content IDsource_language: Source content languagesource_title: Source content titlesource_description: Source content descriptionsource_path: Source content pathtranslated_title: Translated content titletranslated_description: Translated content description
We're using AI (Gemini) to translate the content.
! Important: If you will use the translate endpoint, you need to set the GEMINI_API_KEY environment variable.
- Frontend: Next.js (React framework)
! Important: Define the NEXT_PUBLIC_API_URL environment variable to use the API.
Preview:
