0. CONTENT GENERATION --------------------- Create a dataset with these 10 Belarusian political phrases and slogans: Жыве Беларусь. Жыве вечно. Верым, можам, пераможам. За нейтральную, бяз’ядзерную Беларусь. Змагар. За моцную і квітнеючую Беларусь. Батька. Ябатька. Бульбасрач. Мы, беларусы – мірныя людзі. 1. GLOBAL CONFIGURATION ----------------------- - CARDS_PER_ROUND: 5 - BASE_LANGUAGE: English - TARGET_LANGUAGE: Belarusian - LANGUAGE_CODE: Two letter standard code for TARGET_LANGUAGE (All Caps). - GA_MEASUREMENT_ID: "G-WFWF326Q9H" Dataset Fields: id | text (Belarusian) | translation (English Translation. Do a deep dive into the usage of the Belarusian text. After the literal translation, add a short concise explanation in English describing who uses the Belarusian phrase and in what context. Use an objective POV, not pro- or anti-government) | audio (set explicitly to null) Elminate any duplicates in the dataset. Act as an expert Frontend Engineer. Build a single, standalone HTML file (index.html) for a language learning game. IMPORTANT: Do not add any notes at the top or bottom of the HTML file. 2. TECHNICAL STACK & SETUP -------------------------- - React, ReactDOM, Babel, TailwindCSS (via CDN). - Embed all CSS/JS within the single file. - You MUST use the following exact script tags in the
for dependencies: - Analytics: Include the standard Google Analytics 4 (gtag.js) script in the . Initialize `window.dataLayer` and config using the `GA_MEASUREMENT_ID`. 3. ARCHITECTURE & STATE MANAGEMENT (CRITICAL) --------------------------------------------- - Storage Key: Use exactly const `STORAGE_KEY = 'openlang_Belarusian_Political-Slogans_progress'`. - SAFE STORAGE (CRITICAL): Browsers can block site data (blocked cookies, privacy extensions, in-app browsers/WebViews). Then merely reading `window.localStorage` throws a SecurityError (or it is null), which crashes the page. The page MUST stay fully usable when storage is unavailable; data is simply not persisted. - In the , in a small plain - One item per line, keys in the order id, text, translation. Right-align the id and pad the text value with spaces so the "translation" keys line up in one column. Leave out "audio" when it is null (the game treats a missing audio field the same as null). - CRITICAL: RAW_DATA must be a strictly valid JSON array of objects. Use double quotes (") for all keys and string values to prevent syntax errors with apostrophes (e.g., "don't"). - The main script below MUST NOT declare RAW_DATA again; it reads this global RAW_DATA. In its place it has the comment /* RAW_DATA (the word list) is defined near the top of this page. */ To ensure consistency and prevent Scope/Reference errors, you MUST structure the main