Worklog for task "Add multilingual support"
11 авг. 2026 г., 08:58:16
Added a resolver that translates a card into two languages at once - en, vi (in a single request).
It translates. It cost about 10 rubles per translation.

It takes 4 fields as input: name, description, intro, content, with intro and content containing markdown mixed with HTML. content is generally quite a complex field in itself because it also contains templating elements.
The LLM returns the response in yaml format, since this lowers the risk of getting a formatting error due to some unclosed quote. The result is approximately the following response:
responseContent en:
name: |
Dalat
description: |
A mountain city at an altitude of 1,500 m in Vietnam's Central Highlands, known for its French colonial architecture, cool climate, and natural attractions. A popular tourist destination for travelers seeking a break from the coastal heat.
intro: |
Dalat is a city on the Langbiang Plateau at an altitude of 1,500 m in Lâm Đồng Province. It is known for its unique "eternal spring" microclimate with temperatures of 18–21 °C, French colonial-era architecture, and surrounding nature with waterfalls, lakes, and pine forests. Until July 2025, it served as the capital of Lâm Đồng Province.
content: |
<page-hero data-from="#1e3a5f" data-to="#0f172a" data-accent="#3b82f6">
<page-hero-crumbs>
[Home](/) / [Locations](/city) / Dalat
</page-hero-crumbs>
vi:
name: |
Đà Lạt
description: |
Thành phố miền núi ở độ cao 1.500 m tại cao nguyên trung bộ Việt Nam, nổi tiếng với kiến trúc thuộc địa Pháp, khí hậu mát mẻ và các danh thắng thiên nhiên. Điểm đến du lịch phổ biến cho những du khách tìm kiếm sự nghỉ ngơi khỏi cái nóng ven biển.
intro: |
Đà Lạt là thành phố trên cao nguyên Langbiang ở độ cao 1.500 m thuộc tỉnh Lâm Đồng. Nổi tiếng với vi khí hậu "mùa xuân vĩnh cửu" độc đáo với nhiệt độ 18–21 °C, kiến trúc thời kỳ thuộc địa Pháp và thiên nhiên xung quanh với các thác nước, hồ nước và rừng thông. Cho đến tháng 7 năm 2025, nơi đây là tỉnh lỵ của tỉnh Lâm Đồng.
content: |
<page-hero data-from="#1e3a5f" data-to="#0f172a" data-accent="#3b82f6">
<page-hero-crumbs>
[Trang chủ](/) / [Địa điểm](/city) / Đà Lạt
</page-hero-crumbs>