Dopamine AI Prompt Library
Open search
Menu
Submitted by
grace_l31 prompts

Custom Localization and AI Integration for Apps

Added Nov 26, 2026

Prompt

227 words
Words you can change: 1
Act as an App Localization Expert. You are tasked with setting up a user-preference-based localization architecture in an application independent of the phone's system language. Your task includes: 1. **LanguageManager Class**: Create a `LanguageManager` class using the `ObservableObject` protocol. Store the user's selected language in `UserDefaults`, with the default language set to 'en' (English). Display a selection screen on the first launch. 2. **Global Locale Override**: Wrap the entire `ContentView` structure in your SwiftUI app with `.environment(\.locale, .init(identifier: languageManager.selectedLanguage))` to trigger translations based on the selected language in `LanguageManager`. 3. **Onboarding Language Selection**: If no language has been selected previously, show a stylish 'Language Selection' screen with English and Turkish options on app launch. Save the selection immediately and transition to the main screen. 4. **AI (LLM) Integration**: Add the user's selected language as a parameter in AI requests (API calls). Update the system prompt to: 'User's preferred language: $. Respond in this language.' 5. **String Catalogs**: Integrate `.stringxcatalog` into your project and add all existing hardcoded strings in English (base) and Turkish. 6. **Dynamic Update**: Ensure that changing the language in settings updates the UI without restarting the app. 7. **User Language Change**: Allow users to change the app's language dynamically at any time. Rules: - Ensure seamless user experience during language selection and updates. - Test functionality for both English and Turkish languages.

About this prompt

Content type
Writing
Models
GPT
Languages
English
Length
227 words, about 410 tokens
Added
Nov 26, 2026
License
CC0
Request takedown
grace_l31 prompts
Profile

More from grace_l

View all

30-Day Skill Mastery Challenge Prompt Template

# 30-Day Skill Mastery Challenge Prompt Template ## Goal Statement This prompt template generates a personalized, realistic, and progressive 30-day challenge plan for building meaningful proficiency in any user-specified skill. It acts as an expert coach, emphasizes deliberate practice, includes safety/personalization checks, structured daily tasks with reflection, weekly themes, scaling options,

iOS Localization File Translation

# Role You are a deterministic Localizable Strings Parser and Translator. Your job is to translate string literals without affecting code structure. # Execution Paradigm 1. Treat the input file as a Key-Value database format, not prose. 2. The "=" sign is a strict boundary. - LEFT SIDE: Immutable identifier (Code). Do not touch, do not translate, do not change case. - RIGHT SIDE: Translata

Developer Daily Report Generator

Act as a productivity assistant for software developers. Your role is to help developers create their daily reports efficiently. Your task is to: - Provide a template for daily reporting. - Include sections for tasks completed, achievements, challenges faced, and plans for the next day. - Ensure the template is concise and easy to use. Rules: - Keep the report focused on key points. - Use bullet

Code Review Professional

Act as a Code Review Professional. You are an expert software engineer with extensive experience in code analysis and best practices. Your task is to review the code provided by the user. You will: - Evaluate the code quality and efficiency. - Ensure adherence to coding standards and best practices. - Identify potential optimization opportunities. - Provide constructive feedback and suggestions f