From 508ad165b1428618f8d88c5004e5c27f75e2137e Mon Sep 17 00:00:00 2001 From: Peppa Date: Wed, 18 Nov 2026 17:12:36 +0500 Subject: [PATCH] =?UTF-8?q?QLFW-54:=20=D1=81=D0=BE=D0=B3=D0=BB=D0=B0=D1=81?= =?UTF-8?q?=D0=BE=D0=B2=D0=B0=D1=82=D1=8C=20=D0=BD=D0=B0=D0=B7=D0=B2=D0=B0?= =?UTF-8?q?=D0=BD=D0=B8=D0=B5=20=D0=BA=D0=BD=D0=B8=D0=B3=D0=B8=20=D1=81=20?= =?UTF-8?q?=D0=B7=D0=B0=D0=B3=D0=BE=D0=BB=D0=BE=D0=B2=D0=BA=D0=BE=D0=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/book-where.test.ts | 4 +++- src/i18n/en.ts | 6 ++++-- src/i18n/kk.ts | 6 ++++-- 3 files changed, 11 insertions(+), 5 deletions(-) diff --git a/src/components/book-where.test.ts b/src/components/book-where.test.ts index bfe5126..2494105 100644 --- a/src/components/book-where.test.ts +++ b/src/components/book-where.test.ts @@ -20,8 +20,10 @@ describe('Сценарий: где купить книгу', () => { expect(html).toContain('Книжный мир') expect(html).toContain('

Наличие и стоимость книги уточняйте непосредственно у продавцов.

') }) - it.each(['kk', 'en'] as const)('язык %s: те же магазины, без пометок', (l) => { + it.each(['kk', 'en'] as const)('язык %s: название карточки и те же магазины', (l) => { const html = render(l) + const title = getDict(l).book.title + expect(html).toContain(l === 'kk' ? `«${title}»` : `“${title}”`) expect(html).toContain('href="https://www.marwin.kz/product/serkebaeva-i-ermek-serkebaev-i-zhizn-i-molodost-i-schaste-220988"') expect(html).toContain('href="https://www.flip.kz/catalog?prod=6364653') expect(html).toContain('Эрудит') diff --git a/src/i18n/en.ts b/src/i18n/en.ts index a999406..425dce0 100644 --- a/src/i18n/en.ts +++ b/src/i18n/en.ts @@ -1,5 +1,7 @@ import type { Dict } from './types' +const bookTitle = 'Yermek Serkebayev. Life, Youth and Happiness… New Pages' + export const en: Dict = { sections: {"about": "About the foundation", "contacts": "Contacts", "partners": "Partners", "goals": "Goals", "goalText": "Collect and organise archives, manuscripts and recordings; publish books and music collections; make the legacy available to a wide audience in digital form; support young musicians and researchers; build ties with cultural organisations abroad.", "founder": "Founder", "leadership": "Leadership", "board": "Board of trustees", "director": "Director", "chair": "Chair", "boardMember": "Member of the Board of Trustees", "read": "Read", "source": "Source", "review": "Translation awaiting review."}, siteName: 'Qazaq Legacy Foundation', @@ -76,7 +78,7 @@ export const en: Dict = { gallery: "Photographs of the book", additions: ["The second edition adds chapters on Yermek Serkebayev and his era, Soviet patriotic music, chamber music, Kazakh folk song, and his teachers.", "The author researched the biographies of Serkebayev’s teachers, K. G. Brückner and A. M. Kurganov. The book also includes the singer’s discography."], - "title": "Yermek Serkebayev. Life, Youth and Happiness… New Pages", + "title": bookTitle, "author": "A book by Irina Serkebayeva", "paragraphs": [ "RUAN Publishing Company, Almaty, 2026.", @@ -87,7 +89,7 @@ export const en: Dict = { "getNote": "The book is available on Flip. The link opens the book’s page.", "get": "Where to get the book", "buy": { - "intro": "Irina Serkebayeva’s book “Ermek Serkebayev. И жизнь, и молодость, и счастье. Новые страницы” is available online on these platforms:", + "intro": `Irina Serkebayeva’s book “${bookTitle}” is available online on these platforms:`, "platforms": ["Marwin", "Flip.kz"], "storesIntro": "It is also sold in the bookshops:", "stores": ["Эрудит", "Книжный мир"], diff --git a/src/i18n/kk.ts b/src/i18n/kk.ts index 6c1f3c0..89a7269 100644 --- a/src/i18n/kk.ts +++ b/src/i18n/kk.ts @@ -1,5 +1,7 @@ import type { Dict } from './types' +const bookTitle = 'Ермек Серкебаев. Өмір де, жастық та, бақыт та… Жаңа беттер' + export const kk: Dict = { sections: {"about": "Қор туралы", "contacts": "Байланыс", "partners": "Серіктестер", "goals": "Мақсаттар", "goalText": "Мұрағаттарды, қолжазбалар мен жазбаларды жинап, жүйелеу; кітаптар мен музыкалық жинақтар шығару; мұраны кең аудиторияға цифрлық түрде ұсыну; жас музыканттар мен зерттеушілерге қолдау көрсету; шетелдік мәдени ұйымдармен байланыс орнату.", "founder": "Құрылтайшы", "leadership": "Басшылық", "board": "Қамқоршылық кеңес", "director": "Директор", "chair": "Төраға", "boardMember": "Қамқоршылық кеңестің мүшесі", "read": "Оқу", "source": "Дереккөз", "review": "Аударманы тексеру қажет."}, siteName: 'Qazaq Legacy Foundation', @@ -76,7 +78,7 @@ export const kk: Dict = { gallery: "Кітаптың фотосуреттері", additions: ["Екінші басылымға «Ермек Серкебаев және оның дәуірі», «Кеңестік патриоттық музыка», «Камералық музыка», «Қазақтың халық әні», «Ұстаздар» тараулары қосылды.", "Автор Ермек Серкебаевтың ұстаздары К. Г. Брюкнер мен А. М. Кургановтың өмірбаяндарын зерттеді. Кітапта әншінің дискографиясы да берілген."], - "title": "Ермек Серкебаев. Өмір де, жастық та, бақыт та… Жаңа беттер", + "title": bookTitle, "author": "Ирина Серкебаеваның кітабы", "paragraphs": [ "«RUAN» баспа компаниясы, Алматы, 2026.", @@ -87,7 +89,7 @@ export const kk: Dict = { "getNote": "Кітап Flip сайтында қолжетімді. Сілтеме арқылы кітаптың парақшасы ашылады.", "get": "Қайдан алуға болады", "buy": { - "intro": "Ирина Серкебаеваның «Ермек Серкебаев. И жизнь, и молодость, и счастье. Новые страницы» кітабын онлайн мына платформалардан сатып алуға болады:", + "intro": `Ирина Серкебаеваның «${bookTitle}» кітабын онлайн мына платформалардан сатып алуға болады:`, "platforms": ["Marwin", "Flip.kz"], "storesIntro": "Сондай-ақ кітап дүкендерінен:", "stores": ["Эрудит", "Книжный мир"],