wineater-bot 3.9.4 → 4.0.0-beta.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (43) hide show
  1. package/.prettierignore +9 -0
  2. package/.prettierrc +16 -0
  3. package/README.md +86 -0
  4. package/dist/wineater-chatbot.css +1 -0
  5. package/dist/wineater-chatbot.mjs +6502 -5128
  6. package/dist/wineater-chatbot.umd.js +40 -985
  7. package/docs/SVELTE.md +146 -0
  8. package/e2e/demo.test.ts +6 -0
  9. package/eslint.config.js +41 -0
  10. package/index.html +14 -3
  11. package/package.json +30 -5
  12. package/playwright.config.ts +9 -0
  13. package/pnpm-workspace.yaml +2 -0
  14. package/src/App.svelte +394 -0
  15. package/src/App.svelte.test.ts +13 -0
  16. package/src/components/Footer.svelte +131 -0
  17. package/src/components/Header.svelte +92 -0
  18. package/src/components/Loader.svelte +62 -0
  19. package/src/components/Search.svelte +188 -0
  20. package/src/components/WinePopup.svelte +192 -0
  21. package/src/components/WineTile.svelte +331 -0
  22. package/src/demo.spec.ts +13 -0
  23. package/src/index.js +4 -36
  24. package/src/services/analytics/analytics.ts +103 -0
  25. package/src/{js/widget/widget-events.js → services/analytics/constants.ts} +0 -2
  26. package/src/services/api/api.ts +112 -0
  27. package/src/services/api/deserialize.ts +102 -0
  28. package/src/services/i18n/i18n.ts +134 -0
  29. package/src/services/i18n/translations.json +521 -0
  30. package/src/services/store/app-store.svelte.ts +77 -0
  31. package/src/services/store/deserialize.ts +22 -0
  32. package/src/services/store/types.ts +10 -0
  33. package/tsconfig.json +23 -0
  34. package/vite.config.js +69 -19
  35. package/vitest-setup-client.ts +2 -0
  36. package/src/js/analytics.js +0 -117
  37. package/src/js/api.js +0 -138
  38. package/src/js/i18n.js +0 -703
  39. package/src/js/widget/widget-language.js +0 -107
  40. package/src/js/widget/widget-search.js +0 -68
  41. package/src/js/widget/widget-styles.js +0 -855
  42. package/src/js/widget/widget-ui.js +0 -186
  43. package/src/js/widget.js +0 -241
@@ -0,0 +1,134 @@
1
+ import translationsJson from './translations.json';
2
+
3
+ export type LanguageCode = keyof typeof translationsJson;
4
+
5
+ export type CurrencyCode = string;
6
+
7
+ const MAP_LOCALE_TO_ISO_CODE: Record<string, CurrencyCode> = {
8
+ 'en': 'en-US',
9
+ 'de': 'de-DE',
10
+ 'fr': 'fr-FR',
11
+ 'es': 'es-ES',
12
+ 'it': 'it-IT',
13
+ 'ja': 'ja-JP',
14
+ 'zh': 'zh-CN',
15
+ 'ru': 'ru-RU',
16
+ 'kk': 'kk-KZ',
17
+ 'pt': 'pt-PT',
18
+ }
19
+
20
+ export function formatCurrency(amount: number, currencyCode: CurrencyCode, locale = "en"): string {
21
+ if (!currencyCode) {
22
+ return amount.toString();
23
+ }
24
+
25
+ try {
26
+ return new Intl.NumberFormat(MAP_LOCALE_TO_ISO_CODE[locale] || "en-US", {
27
+ style: 'currency',
28
+ currency: currencyCode,
29
+ currencyDisplay: 'narrowSymbol'
30
+ }).format(amount);
31
+ } catch {
32
+ return amount.toString();
33
+ }
34
+ }
35
+
36
+ export function getTranslation({ key, lang }): string {
37
+ const translations = translationsJson as Record<LanguageCode, Record<string, string>>;
38
+ if (translations[lang] && translations[lang][key]) {
39
+ return translations[lang][key];
40
+ }
41
+
42
+ throw new Error(`Translation for key "${key}" not found in language "${lang}".`);
43
+ }
44
+
45
+ export type TranslationEntry = {
46
+ key: string;
47
+ text: string;
48
+ };
49
+ type TranslateTextsArguments = {
50
+ sourceLang: string;
51
+ targetLang: string;
52
+ texts: Record<string, string>;
53
+ apiKey: string | undefined;
54
+ };
55
+ export async function translateTexts<T extends Record<string, string>>({ sourceLang, targetLang, texts, apiKey }: TranslateTextsArguments): Promise<T> {
56
+ if (!apiKey) return texts;
57
+ if (!sourceLang || !targetLang || sourceLang === targetLang) return texts;
58
+
59
+ const url = 'https://api.openai.com/v1/chat/completions';
60
+
61
+ const headers = {
62
+ 'Content-Type': 'application/json',
63
+ Authorization: `Bearer ${apiKey}`,
64
+ };
65
+
66
+ const entries: TranslationEntry[] = Object.entries(texts).map(([key, text]) => ({
67
+ key,
68
+ text,
69
+ }));
70
+
71
+ const prompt = `
72
+ You are a professional translator.
73
+
74
+ The input texts are written in language with code "${sourceLang}". Your task is to translate them strictly to the target language with code "${targetLang}".
75
+
76
+ ⚠️ DO NOT leave the original text.
77
+ ⚠️ DO NOT skip any entry.
78
+ ⚠️ Preserve the original order and keys exactly.
79
+
80
+ Translate only the "text" fields of the JSON array. Return an array of the same length and structure, like this:
81
+
82
+ Input:
83
+ [
84
+ { "key": "shortDescription", "text": "Red wine with rich cherry notes." },
85
+ { "key": "tags", "text": "fruity, dry, elegant" }
86
+ ]
87
+
88
+ Output:
89
+ [
90
+ { "key": "shortDescription", "text": "..." },
91
+ { "key": "tags", "text": "..." }
92
+ ]
93
+
94
+ Now translate the following input:
95
+ ${JSON.stringify(entries, null, 2)}
96
+ `;
97
+
98
+ const body = JSON.stringify({
99
+ model: 'gpt-3.5-turbo',
100
+ messages: [
101
+ { role: 'system', content: 'You are a professional translator.' },
102
+ { role: 'user', content: prompt },
103
+ ],
104
+ temperature: 0.2,
105
+ max_tokens: 1000,
106
+ });
107
+
108
+ try {
109
+ const response = await fetch(url, {
110
+ method: 'POST',
111
+ headers,
112
+ body,
113
+ });
114
+
115
+ const data = await response.json();
116
+ const translatedRaw: string | undefined = data?.choices?.[0]?.message?.content?.trim();
117
+
118
+ if (!translatedRaw) throw new Error('No response from OpenAI');
119
+
120
+ const translatedArray: TranslationEntry[] = JSON.parse(translatedRaw);
121
+
122
+ const translatedObject: Record<string, string> = {};
123
+ translatedArray.forEach((entry) => {
124
+ if (entry.key && entry.text !== undefined) {
125
+ translatedObject[entry.key] = entry.text;
126
+ }
127
+ });
128
+
129
+ return { ...texts, ...translatedObject } as T;
130
+ } catch (error) {
131
+ console.error('Error translating texts:', error);
132
+ return texts;
133
+ }
134
+ }
@@ -0,0 +1,521 @@
1
+ {
2
+ "fr": {
3
+ "lang": "fr",
4
+ "welcomeMessage": "Quel plat allez-vous déguster ? Décrivez-le-moi et je vous proposerai le vin qui l'accompagnera parfaitement.",
5
+ "noResultsFound": "Aucun résultat trouvé.",
6
+ "somethingWentWrong": "Désolé, quelque chose a mal tourné.",
7
+ "chatButton1": "Trouvez l'accord parfait",
8
+ "chatButton2": "Associez le vin",
9
+ "chatButton3": "Obtenez des conseils",
10
+ "chatTitle": "Accord Mets & Vins 🍷",
11
+ "chatSubtitle": "Décrivez votre plat et obtenez une recommandation en 30 secondes",
12
+ "inputPlaceholder": "ex., Salade de thon",
13
+ "sendButton": "Accorder",
14
+ "poweredBy": "Propulsé par",
15
+ "price": "Prix",
16
+ "region": "Région",
17
+ "type": "Type",
18
+ "reason": "Suggestion",
19
+ "moreInfo": "Plus d'infos",
20
+ "winePairingIntro": "Pour ce vin, voici quelques suggestions de plats :",
21
+ "askForDinner": "Que voulez-vous manger ce soir?",
22
+ "clearChatButton": "Effacer le chat",
23
+ "widgetTitle": "TROUVEZ VOTRE VIN PARFAIT",
24
+ "widgetSubtitle": "Partagez tout ce que vous avez en tête—votre repas, humeur, budget ou occasion—et notre sommelier IA vous recommandera le vin parfait en quelques secondes",
25
+ "searchPlaceholder": "Entrez un mot-clé ou une description",
26
+ "wineDetails": {
27
+ "reason": "Raison",
28
+ "price": "Prix",
29
+ "region": "Région",
30
+ "type": "Type",
31
+ "moreInfo": "Plus d'infos",
32
+ "code": "Code",
33
+ "buy": "Acheter"
34
+ },
35
+ "searchButton": "Rechercher",
36
+ "priceRange": "Gamme de prix",
37
+ "wineColor": "Couleur du vin",
38
+ "intensity": "Intensité",
39
+ "red": "Rouge",
40
+ "white": "Blanc",
41
+ "rose": "Rosé",
42
+ "light": "Léger",
43
+ "medium": "Moyen",
44
+ "full": "Puissant",
45
+ "barTitle": "Sélection du bar",
46
+ "barSubtitle": "Choisissez vos plats ci-dessous et cliquez sur «Envoyer»",
47
+ "barSendButton": "Envoyer",
48
+ "barResetButton": "Réinitialiser",
49
+ "barName": "Nom du bar",
50
+ "barNotesPlaceholder": "Entrez vos souhaits ici...",
51
+ "placeholderSuggestions": [
52
+ "Vin pour les pâtes",
53
+ "Parfait avec du poisson",
54
+ "Recommandé pour une soirée"
55
+ ],
56
+ "headerLine1": "Partagez tout ce qui vous passe par la tête —",
57
+ "headerLine2": "— et obtenez des recommandations de vin parfait en quelques secondes",
58
+ "headerMeal": "repas",
59
+ "headerMood": "humeur",
60
+ "headerBudget": "budget",
61
+ "headerOccasion": "occasion",
62
+ "headerOr": "ou",
63
+ "errorMessage": "Une erreur est survenue. Veuillez réessayer plus tard.",
64
+ "noResultsMessage": "Aucun résultat trouvé pour votre recherche. Veuillez essayer une autre requête.",
65
+ "ai_sommelier": "AI sommelier"
66
+ },
67
+ "es": {
68
+ "lang": "es",
69
+ "welcomeMessage": "¿Qué vas a comer? Cuéntame tu plato y te recomendaré el maridaje perfecto.",
70
+ "noResultsFound": "No se encontraron resultados.",
71
+ "somethingWentWrong": "Lo sentimos, algo salió mal.",
72
+ "chatButton1": "Encuentra tu maridaje",
73
+ "chatButton2": "Combina vino ya",
74
+ "chatButton3": "Recibe asesoría ahora",
75
+ "chatTitle": "Maridaje de Vinos 🍷",
76
+ "chatSubtitle": "Describe tu comida y obtén una recomendación en 30 segundos",
77
+ "inputPlaceholder": "ej., Ensalada de atún",
78
+ "sendButton": "Combinar",
79
+ "poweredBy": "Desarrollado por",
80
+ "price": "Precio",
81
+ "region": "Región",
82
+ "type": "Tipo",
83
+ "reason": "Sugerencia",
84
+ "moreInfo": "Más info",
85
+ "winePairingIntro": "Para este vino, aquí tienes algunas sugerencias de platos:",
86
+ "askForDinner": "¿Qué te gustaría cenar?",
87
+ "clearChatButton": "Limpiar el chat",
88
+ "widgetTitle": "ENCUENTRA TU VINO PERFECTO",
89
+ "widgetSubtitle": "Comparte cualquier cosa que tengas en mente—tu comida, estado de ánimo, presupuesto o evento—y nuestro sommelier de IA te recomendará el vino perfecto en segundos",
90
+ "searchPlaceholder": "Escribe una palabra clave o descripción",
91
+ "wineDetails": {
92
+ "reason": "Razón",
93
+ "price": "Precio",
94
+ "region": "Región",
95
+ "type": "Tipo",
96
+ "code": "Código",
97
+ "moreInfo": "Más información",
98
+ "buy": "Comprar"
99
+ },
100
+ "searchButton": "Buscar",
101
+ "priceRange": "Rango de precios",
102
+ "wineColor": "Color del vino",
103
+ "intensity": "Intensidad",
104
+ "red": "Tinto",
105
+ "white": "Blanco",
106
+ "rose": "Rosado",
107
+ "light": "Ligero",
108
+ "medium": "Medio",
109
+ "full": "Intenso",
110
+ "barTitle": "Platos de Bar",
111
+ "barSubtitle": "Selecciona de la lista y presiona «Enviar»",
112
+ "barSendButton": "Enviar",
113
+ "barResetButton": "Reiniciar",
114
+ "barName": "Nombre del bar",
115
+ "barNotesPlaceholder": "Agrega tus comentarios aquí...",
116
+ "placeholderSuggestions": [
117
+ "Vino para pasta",
118
+ "Perfecto con pescado",
119
+ "Recomendado para una fiesta"
120
+ ],
121
+ "headerLine1": "Comparte cualquier cosa que tengas en mente —",
122
+ "headerLine2": "— y obtén recomendaciones del vino perfecto en cuestión de segundos",
123
+ "headerMeal": "comida",
124
+ "headerMood": "estado de ánimo",
125
+ "headerBudget": "presupuesto",
126
+ "headerOccasion": "ocasión",
127
+ "headerOr": "o",
128
+ "errorMessage": "Algo salió mal. Por favor, inténtalo de nuevo más tarde.",
129
+ "noResultsMessage": "No se encontraron resultados para tu búsqueda. Por favor, intenta con otra consulta.",
130
+ "ai_sommelier": "AI sommelier"
131
+ },
132
+ "en": {
133
+ "lang": "en",
134
+ "welcomeMessage": "What are you planning to eat? Share your dish and I'll recommend the perfect wine pairing for your meal.",
135
+ "noResultsFound": "No results found.",
136
+ "somethingWentWrong": "Sorry, something went wrong.",
137
+ "chatButton1": "Find Your Pairing",
138
+ "chatButton2": "Pair Wine Now",
139
+ "chatButton3": "Get Wine Advice",
140
+ "chatTitle": "Wine Pairing Assistant 🍷",
141
+ "chatSubtitle": "Describe your meal and get a recommendation in 30 seconds",
142
+ "inputPlaceholder": "e.g., Tuna salad",
143
+ "sendButton": "Match",
144
+ "poweredBy": "Powered by",
145
+ "price": "Price",
146
+ "region": "Region",
147
+ "type": "Type",
148
+ "reason": "Suggestion",
149
+ "moreInfo": "More info",
150
+ "winePairingIntro": "For this wine, here are some suggested dishes:",
151
+ "askForDinner": "What would you like to have for dinner?",
152
+ "clearChatButton": "Clear Chat",
153
+ "widgetTitle": "FIND YOUR PERFECT WINE",
154
+ "widgetSubtitle": "Share anything on your mind—your meal, mood, budget, or occasion—and our AI sommelier will recommend the perfect wine in seconds",
155
+ "searchPlaceholder": "Enter a keyword or description",
156
+ "wineDetails": {
157
+ "price": "Price",
158
+ "region": "Region",
159
+ "type": "Type",
160
+ "moreInfo": "More info",
161
+ "reason": "Reason",
162
+ "code": "Code",
163
+ "buy": "Buy"
164
+ },
165
+ "searchButton": "Search",
166
+ "priceRange": "Price Range",
167
+ "wineColor": "Wine Color",
168
+ "intensity": "Intensity",
169
+ "red": "Red",
170
+ "white": "White",
171
+ "rose": "Rosé",
172
+ "light": "Light",
173
+ "medium": "Medium",
174
+ "full": "Full",
175
+ "barTitle": "Bar Dishes",
176
+ "barSubtitle": "Select dishes below and click 'Send'",
177
+ "barSendButton": "Send",
178
+ "barResetButton": "Reset",
179
+ "barName": "Bar Name",
180
+ "barNotesPlaceholder": "Add your wishes here...",
181
+ "placeholderSuggestions": [
182
+ "Wine for pasta",
183
+ "Perfect with fish",
184
+ "Recommended for a party"
185
+ ],
186
+ "headerLine1": "Share anything on your mind —",
187
+ "headerLine2": "— and get recommendations of the perfect wine in seconds",
188
+ "headerMeal": "meal",
189
+ "headerMood": "mood",
190
+ "headerBudget": "budget",
191
+ "headerOccasion": "occasion",
192
+ "headerOr": "or",
193
+ "errorMessage": "Something went wrong. Please try again later.",
194
+ "noResultsMessage": "No results found for your search. Please try a different query.",
195
+ "ai_sommelier": "AI sommelier"
196
+ },
197
+ "sr": {
198
+ "lang": "sr",
199
+ "welcomeMessage": "Šta planirate da jedete? Podelite svoje jelo i preporučiću vam savršeno vino uz obrok.",
200
+ "noResultsFound": "Nema rezultata.",
201
+ "somethingWentWrong": "Izvinite, nešto je pošlo po zlu.",
202
+ "chatButton1": "Pronađi vino",
203
+ "chatButton2": "Upari vino sada",
204
+ "chatButton3": "Zatraži preporuku",
205
+ "chatTitle": "Asistent za uparivanje vina 🍷",
206
+ "chatSubtitle": "Opišite svoj obrok i dobijte preporuku za 30 sekundi",
207
+ "inputPlaceholder": "npr. Tuna salata",
208
+ "sendButton": "Upari",
209
+ "poweredBy": "Pokreće",
210
+ "price": "Cena",
211
+ "region": "Regija",
212
+ "type": "Tip",
213
+ "reason": "Preporuka",
214
+ "moreInfo": "Više informacija",
215
+ "winePairingIntro": "Za ovo vino, preporučuju se sledeća jela:",
216
+ "askForDinner": "Šta biste želeli za večeru?",
217
+ "clearChatButton": "Obriši razgovor",
218
+ "widgetTitle": "PRONAĐITE SAVRŠENO VINO",
219
+ "widgetSubtitle": "Podelite bilo šta — obrok, raspoloženje, budžet ili priliku — i naš AI somelijer će vam za par sekundi preporučiti vino",
220
+ "searchPlaceholder": "Unesite ključnu reč ili opis",
221
+ "wineDetails": {
222
+ "price": "Cena",
223
+ "region": "Regija",
224
+ "type": "Tip",
225
+ "moreInfo": "Više informacija",
226
+ "reason": "Razlog",
227
+ "code": "Šifra",
228
+ "buy": "Kupi"
229
+ },
230
+ "searchButton": "Pretraga",
231
+ "priceRange": "Cenovni raspon",
232
+ "wineColor": "Boja vina",
233
+ "intensity": "Intenzitet",
234
+ "red": "Crveno",
235
+ "white": "Belo",
236
+ "rose": "Roze",
237
+ "light": "Lako",
238
+ "medium": "Srednje",
239
+ "full": "Puno",
240
+ "barTitle": "Jela iz bara",
241
+ "barSubtitle": "Izaberite jela ispod i kliknite 'Pošalji'",
242
+ "barSendButton": "Pošalji",
243
+ "barResetButton": "Resetuj",
244
+ "barName": "Naziv bara",
245
+ "barNotesPlaceholder": "Dodajte svoje želje ovde...",
246
+ "placeholderSuggestions": [
247
+ "Vino uz pastu",
248
+ "Savršeno uz ribu",
249
+ "Preporuka za žurku"
250
+ ],
251
+ "headerLine1": "Podelite bilo šta što vam je na umu —",
252
+ "headerLine2": "— i dobijte preporuke za savršeno vino za par sekundi",
253
+ "headerMeal": "obrok",
254
+ "headerMood": "raspoloženje",
255
+ "headerBudget": "budžet",
256
+ "headerOccasion": "prilika",
257
+ "headerOr": "ili",
258
+ "errorMessage": "Nešto je pošlo po zlu. Molimo pokušajte ponovo kasnije.",
259
+ "noResultsMessage": "Nema rezultata za vašu pretragu. Molimo pokušajte sa drugačijim upitom.",
260
+ "ai_sommelier": "AI sommelier"
261
+ },
262
+ "de": {
263
+ "lang": "de",
264
+ "welcomeMessage": "Was möchten Sie essen? Beschreiben Sie Ihr Gericht und ich empfehle Ihnen den perfekten Wein dazu.",
265
+ "noResultsFound": "Keine Ergebnisse gefunden.",
266
+ "somethingWentWrong": "Entschuldigung, etwas ist schief gelaufen.",
267
+ "chatButton1": "Finde Dein Pairing",
268
+ "chatButton2": "Wein jetzt wählen",
269
+ "chatButton3": "Erhalte Weinberatung",
270
+ "chatTitle": "Wein & Speisen 🍷",
271
+ "chatSubtitle": "Beschreiben Sie Ihr Gericht und erhalten Sie in 30 Sekunden eine Empfehlung",
272
+ "inputPlaceholder": "z.B., Thunfischsalat",
273
+ "sendButton": "Kombinieren",
274
+ "poweredBy": "Unterstützt von",
275
+ "price": "Preis",
276
+ "region": "Region",
277
+ "type": "Typ",
278
+ "reason": "Anregung",
279
+ "moreInfo": "Mehr Info",
280
+ "winePairingIntro": "Für diesen Wein gibt es folgende Essensvorschläge:",
281
+ "askForDinner": "Was möchten Sie zum Abendessen essen?",
282
+ "clearChatButton": "Chat löschen",
283
+ "widgetTitle": "FINDEN SIE IHREN PERFEKTEN WEIN",
284
+ "widgetSubtitle": "Teilen Sie alles, was Ihnen in den Sinn kommt—Ihre Mahlzeit, Stimmung, Ihr Budget oder Anlass—und unser KI-Sommelier empfiehlt Ihnen in Sekunden den perfekten Wein",
285
+ "placeholderSuggestions": [
286
+ "Wein für Pasta",
287
+ "Perfekt zu Fisch",
288
+ "Empfohlen für eine Party"
289
+ ],
290
+ "searchPlaceholder": "Geben Sie ein Stichwort oder eine Beschreibung ein",
291
+ "wineDetails": {
292
+ "price": "Preis",
293
+ "region": "Region",
294
+ "type": "Typ",
295
+ "moreInfo": "Mehr Infos",
296
+ "reason": "Grund",
297
+ "code": "Code",
298
+ "buy": "Kaufen"
299
+ },
300
+ "searchButton": "Suche",
301
+ "priceRange": "Preisspanne",
302
+ "wineColor": "Weinfarbe",
303
+ "intensity": "Intensität",
304
+ "red": "Rot",
305
+ "white": "Weiß",
306
+ "rose": "Rosé",
307
+ "light": "Leicht",
308
+ "medium": "Mittel",
309
+ "full": "Voll",
310
+ "barTitle": "Bar-Auswahl",
311
+ "barSubtitle": "Wählen Sie Ihre Gerichte und klicken Sie auf 'Senden'",
312
+ "barSendButton": "Senden",
313
+ "barResetButton": "Zurücksetzen",
314
+ "barName": "Name der Bar",
315
+ "headerLine1": "Teilen Sie alles, was Ihnen durch den Kopf geht —",
316
+ "headerLine2": "— und erhalten Sie in Sekundenschnelle Empfehlungen für den perfekten Wein",
317
+ "headerMeal": "Mahlzeit",
318
+ "headerMood": "Stimmung",
319
+ "headerBudget": "Budget",
320
+ "headerOccasion": "Anlass",
321
+ "headerOr": "oder",
322
+ "errorMessage": "Etwas ist schief gelaufen. Bitte versuchen Sie es später erneut.",
323
+ "noResultsMessage": "Keine Ergebnisse für Ihre Suche gefunden. Bitte versuchen Sie es mit einer anderen Anfrage.",
324
+ "ai_sommelier": "AI sommelier"
325
+ },
326
+ "ukr": {
327
+ "lang": "ukr",
328
+ "welcomeMessage": "Що ви збираєтесь їсти? Опишіть свою страву, і я порекомендую вам ідеальне вино.",
329
+ "noResultsFound": "Результатів не знайдено.",
330
+ "somethingWentWrong": "Вибачте, щось пішло не так.",
331
+ "chatButton1": "Знайти ідеальне поєднання",
332
+ "chatButton2": "Підібрати вино",
333
+ "chatButton3": "Отримати пораду",
334
+ "chatTitle": "Сомельє-помічник 🍷",
335
+ "chatSubtitle": "Опишіть свою страву і отримайте рекомендацію за 30 секунд",
336
+ "inputPlaceholder": "наприклад, Тунець із салатом",
337
+ "sendButton": "Підібрати",
338
+ "poweredBy": "Розроблено на основі",
339
+ "price": "Ціна",
340
+ "region": "Регіон",
341
+ "type": "Тип",
342
+ "reason": "Рекомендація",
343
+ "moreInfo": "Докладніше",
344
+ "winePairingIntro": "До цього вина підходять такі страви:",
345
+ "askForDinner": "Що ви хочете на вечерю?",
346
+ "clearChatButton": "Очистити чат",
347
+ "widgetTitle": "ЗНАЙДІТЬ ІДЕАЛЬНЕ ВИНО",
348
+ "widgetSubtitle": "Поділіться тим, що у вас на думці—їжа, настрій, бюджет чи подія—і наш AI-сомельє порекомендує вам ідеальне вино за секунди",
349
+ "searchPlaceholder": "Введіть ключове слово або опис",
350
+ "wineDetails": {
351
+ "reason": "Причина",
352
+ "price": "Ціна",
353
+ "region": "Регіон",
354
+ "type": "Тип",
355
+ "moreInfo": "Докладніше",
356
+ "code": "Код",
357
+ "buy": "Купити"
358
+ },
359
+ "searchButton": "Пошук",
360
+ "priceRange": "Діапазон цін",
361
+ "wineColor": "Колір вина",
362
+ "intensity": "Інтенсивність",
363
+ "red": "Червоне",
364
+ "white": "Біле",
365
+ "rose": "Рожеве",
366
+ "light": "Легке",
367
+ "medium": "Середнє",
368
+ "full": "Повне",
369
+ "barTitle": "Закуски до вина",
370
+ "barSubtitle": "Виберіть страви нижче та натисніть «Надіслати»",
371
+ "barSendButton": "Надіслати",
372
+ "barResetButton": "Скинути",
373
+ "barName": "Назва бару",
374
+ "barNotesPlaceholder": "Додайте ваші побажання тут...",
375
+ "placeholderSuggestions": [
376
+ "Вино до пасти",
377
+ "Ідеально до риби",
378
+ "Рекомендуємо для вечірки"
379
+ ],
380
+ "headerLine1": "Поділіться будь-якими вашими думками —",
381
+ "headerLine2": "— і отримайте рекомендації щодо ідеального вина за секунди",
382
+ "headerMeal": "страва",
383
+ "headerMood": "настрій",
384
+ "headerBudget": "бюджет",
385
+ "headerOccasion": "подія",
386
+ "headerOr": "або",
387
+ "errorMessage": "Щось пішло не так. Будь ласка, спробуйте пізніше.",
388
+ "noResultsMessage": "За вашим запитом не знайдено результатів. Спробуйте інший запит.",
389
+ "ai_sommelier": "AI sommelier"
390
+ },
391
+ "ru": {
392
+ "lang": "ru",
393
+ "welcomeMessage": "Что вы планируете поесть? Напишите ваше блюдо, и я подберу идеальное вино к нему.",
394
+ "noResultsFound": "Результаты не найдены.",
395
+ "somethingWentWrong": "Извините, что-то пошло не так.",
396
+ "chatButton1": "Найти сочетание",
397
+ "chatButton2": "Подобрать вино",
398
+ "chatButton3": "Получить совет",
399
+ "chatTitle": "Ассистент по подбору вина 🍷",
400
+ "chatSubtitle": "Опишите ваше блюдо и получите рекомендацию за 30 секунд",
401
+ "inputPlaceholder": "например, Тунец с салатом",
402
+ "sendButton": "Подобрать",
403
+ "poweredBy": "Powered by",
404
+ "price": "Цена",
405
+ "region": "Регион",
406
+ "type": "Тип",
407
+ "reason": "Рекомендация",
408
+ "moreInfo": "Подробнее",
409
+ "winePairingIntro": "К этому вину подходят следующие блюда:",
410
+ "askForDinner": "Что бы вы хотели на ужин?",
411
+ "clearChatButton": "Очистить чат",
412
+ "widgetTitle": "НАЙДИТЬ ИДЕАЛЬНОЕ ВИНО",
413
+ "widgetSubtitle": "Поделитесь вашими предпочтениями — блюдом, настроением, бюджетом или случаем — и наш AI-сомелье подберёт идеальное вино за секунды",
414
+ "searchPlaceholder": "Введите ключевое слово или описание",
415
+ "wineDetails": {
416
+ "price": "Цена",
417
+ "region": "Регион",
418
+ "type": "Тип",
419
+ "moreInfo": "Подробнее",
420
+ "reason": "Причина",
421
+ "code": "Код",
422
+ "buy": "Купить"
423
+ },
424
+ "searchButton": "Поиск",
425
+ "priceRange": "Диапазон цен",
426
+ "wineColor": "Цвет вина",
427
+ "intensity": "Интенсивность",
428
+ "red": "Красное",
429
+ "white": "Белое",
430
+ "rose": "Розовое",
431
+ "light": "Лёгкое",
432
+ "medium": "Среднее",
433
+ "full": "Полное",
434
+ "barTitle": "Закуски к вину",
435
+ "barSubtitle": "Выберите блюда ниже и нажмите 'Отправить'",
436
+ "barSendButton": "Отправить",
437
+ "barResetButton": "Сбросить",
438
+ "barName": "Название бара",
439
+ "barNotesPlaceholder": "Добавьте ваши пожелания здесь...",
440
+ "placeholderSuggestions": [
441
+ "Вино для пасты",
442
+ "Идеально к рыбе",
443
+ "Рекомендуем для вечеринки"
444
+ ],
445
+ "headerLine1": "Поделитесь любыми вашими мыслями —",
446
+ "headerLine2": "— и получите рекомендации по идеальному вину за считанные секунды",
447
+ "headerMeal": "блюдо",
448
+ "headerMood": "настроение",
449
+ "headerBudget": "бюджет",
450
+ "headerOccasion": "случай",
451
+ "headerOr": "или",
452
+ "errorMessage": "Что-то пошло не так. Пожалуйста, попробуйте позже.",
453
+ "noResultsMessage": "По вашему запросу не найдено результатов. Попробуйте другой запрос.",
454
+ "ai_sommelier": "AI sommelier"
455
+ },
456
+ "kk": {
457
+ "lang": "kk",
458
+ "welcomeMessage": "Сіз не жегіңіз келеді? Тағамыңызды сипаттаңыз, мен оған керемет шарап ұсынамын.",
459
+ "noResultsFound": "Нәтижелер табылмады.",
460
+ "somethingWentWrong": "Кешіріңіз, бірдеңе дұрыс болмады.",
461
+ "chatButton1": "Сәйкестік табу",
462
+ "chatButton2": "Шарап таңдау",
463
+ "chatButton3": "Кеңес алу",
464
+ "chatTitle": "Шарап таңдаушы көмекші 🍷",
465
+ "chatSubtitle": "Тағамыңызды сипаттаңыз — 30 секундта ұсыныс алыңыз",
466
+ "inputPlaceholder": "мысалы, тунец салатымен",
467
+ "sendButton": "Таңдау",
468
+ "poweredBy": "Powered by",
469
+ "price": "Бағасы",
470
+ "region": "Өңір",
471
+ "type": "Түрі",
472
+ "reason": "Ұсыныс",
473
+ "moreInfo": "Толығырақ",
474
+ "winePairingIntro": "Бұл шарапқа келесі тағамдар сәйкес келеді:",
475
+ "askForDinner": "Кешкі асқа не қалайсыз?",
476
+ "clearChatButton": "Чатты тазалау",
477
+ "widgetTitle": "КЕРЕМЕТ ШАРАПТЫ ТАБЫҢЫЗ",
478
+ "widgetSubtitle": "Таңдауларыңызды бөлісіңіз — тағам, көңіл-күй, бюджет немесе жағдай — және біздің AI-сомелье сізге бірнеше секундта шарап ұсынады",
479
+ "searchPlaceholder": "Кілт сөзді немесе сипаттаманы енгізіңіз",
480
+ "wineDetails": {
481
+ "price": "Бағасы",
482
+ "region": "Өңір",
483
+ "type": "Түрі",
484
+ "moreInfo": "Толығырақ",
485
+ "reason": "Себебі",
486
+ "code": "Код",
487
+ "buy": "Сатып алу"
488
+ },
489
+ "searchButton": "Іздеу",
490
+ "priceRange": "Баға диапазоны",
491
+ "wineColor": "Шарап түсі",
492
+ "intensity": "Қанықтылық",
493
+ "red": "Қызыл",
494
+ "white": "Ақ",
495
+ "rose": "Розалық",
496
+ "light": "Жеңіл",
497
+ "medium": "Орташа",
498
+ "full": "Толық",
499
+ "barTitle": "Шарапқа арналған тіскебасарлар",
500
+ "barSubtitle": "Төмендегі тағамдарды таңдаңыз және 'Жіберу' батырмасын басыңыз",
501
+ "barSendButton": "Жіберу",
502
+ "barResetButton": "Қалпына келтіру",
503
+ "barName": "Бар атауы",
504
+ "barNotesPlaceholder": "Мұнда өз тілектеріңізді жазыңыз...",
505
+ "placeholderSuggestions": [
506
+ "Пастаға арналған шарап",
507
+ "Балыққа тамаша үйлеседі",
508
+ "Кешке ұсынуға болады"
509
+ ],
510
+ "headerLine1": "Ойларыңызбен бөлісіңіз —",
511
+ "headerLine2": "— және бірнеше секундта мінсіз шарап ұсынысын алыңыз",
512
+ "headerMeal": "тағам",
513
+ "headerMood": "көңіл-күй",
514
+ "headerBudget": "бюджет",
515
+ "headerOccasion": "жағдай",
516
+ "headerOr": "немесе",
517
+ "errorMessage": "Бірдеңе дұрыс болмады. Кейінірек қайта көріңіз.",
518
+ "noResultsMessage": "Іздеуіңізге сәйкес нәтиже табылмады. Басқа сұрау қолданып көріңіз.",
519
+ "ai_sommelier": "AI sommelier"
520
+ }
521
+ }