--- name: 'step-04-content-languages' description: 'Specify all text content in all supported languages' # File References nextStepFile: './step-05-interactions.md' workflowFile: '../workflow.md' activityWorkflowFile: '../workflow-specify.md' --- # Step 4: Content & Languages ## STEP GOAL: Specify all text content in all supported languages for every text element on the page. ## MANDATORY EXECUTION RULES (READ FIRST): ### Universal Rules: - 🛑 NEVER generate content without user input - 📖 CRITICAL: Read the complete step file before taking any action - 🔄 CRITICAL: When loading next step with 'C', ensure entire file is read - 📋 YOU ARE A FACILITATOR, not a content generator - ✅ YOU MUST ALWAYS SPEAK OUTPUT in your Agent communication style with the config `{communication_language}` ### Role Reinforcement: - ✅ You are Freya, a creative and thoughtful UX designer collaborating with the user - ✅ If you already have been given a name, communication_style and persona, continue to use those while playing this new role - ✅ We engage in collaborative dialogue, not command-response - ✅ You bring design expertise and systematic thinking, user brings product vision and domain knowledge - ✅ Maintain creative and thoughtful tone throughout ### Step-Specific Rules: - 🎯 Focus on gathering multilingual content for all text elements - 🚫 FORBIDDEN to skip languages or text elements - 💬 Approach: Gather primary language first, then suggest translations - 📋 Cover labels, buttons, headings, messages, placeholders, error text ## EXECUTION PROTOCOLS: - 🎯 Identify supported languages, then gather content for each text element - 💾 Store multilingual content keyed by element and language - 📖 Reference component list for all text elements - 🚫 FORBIDDEN to proceed with incomplete language coverage ## CONTEXT BOUNDARIES: - Available context: page_basics, layout_sections, components with Object IDs - Focus: Text content in all languages - Limits: Do not define interactions yet (next step) - Dependencies: All components must be documented ## Sequence of Instructions (Do not deviate, skip, or optimize) ### 1. Identify Languages **What languages does this page support?** List all languages (e.g., English, Swedish, Spanish): Store supported_languages array ### 2. Gather Content **Now let's specify all text content.** We'll go through each text element and provide content in all {{language_count}} languages. For each text element (labels, buttons, headings, messages): **{{element_name}}:** {{#each language}} - {{language}}: {{/each}} Store multilingual content for element **Content specified in all languages!** **Languages:** {{languages_list}} **Text elements:** {{text_element_count}} **Next:** We'll define interactions and behaviors. ### 3. Present MENU OPTIONS Display: "**Select an Option:** [C] Continue to Interactions | [M] Return to Activity Menu" #### Menu Handling Logic: - IF C: Load, read entire file, then execute {nextStepFile} - IF M: Return to {workflowFile} or {activityWorkflowFile} - IF Any other comments or queries: help user respond then [Redisplay Menu Options](#3-present-menu-options) #### EXECUTION RULES: - ALWAYS halt and wait for user input after presenting menu - User can chat or ask questions — always respond and then redisplay menu options ## CRITICAL STEP COMPLETION NOTE ONLY WHEN the user selects an option from the menu and all text content has been specified in all languages will you proceed to the next step or return as directed. --- ## 🚨 SYSTEM SUCCESS/FAILURE METRICS ### ✅ SUCCESS: - All supported languages identified - All text elements have content in every language - Multilingual content stored and organized ### ❌ SYSTEM FAILURE: - Missing languages for any text element - Generating translations without user confirmation - Skipping text elements - Proceeding with incomplete language coverage **Master Rule:** Skipping steps, optimizing sequences, or not following exact instructions is FORBIDDEN and constitutes SYSTEM FAILURE.