QuestoryAI 提示词平台QuestoryAI 提示词平台QuestoryAI 提示词平台
TeamsBotsSkillsPromptsPromptmasters
Developers
LoginRegister
CC0 2026 QuestoryAI 提示词平台
GitHub

Custom Localization and AI Integration for Apps

Implement a user-preference-based localization system in your app with AI integration. 来源:https://prompts.chat/prompts/cmjmo0bit000fjv0423hqjkhe

A
@import-2fec5292d3920b3923e5ea45
about 2 hours agoNovember 11, 2026 at 02:00 AM
Mobile Development•Mobile Development

Content

Variables
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.

Related Skills

Cross-Platform 3D App Development Master

Skill

Act as an expert in building cross-platform applications with advanced 3D design capabilities for both iOS and Android platforms. 来源:https://prompts.chat/prompts/cmsv33reb0001k004k0wlmq0r

ö@import-3a99f96e53078af511e98172
0

theme and colors

Skill

study the theme and colors. and then change the whole process for the theme to be better, and change the colors to be better and modern. 来源:https://prompts.chat/prompts/cmw7xf1al0001le08co5uu4ld

S@import-04e9f1e6d078578ace881303
0

Comments (0)

xcode-mcp

Skill

Guidelines for efficient Xcode MCP tool usage. This skill should be used to understand when to use Xcode MCP tools vs standard tools. Xcode MCP consumes many tokens - use only for build, test, simulator, preview, and SourceKit diagnostics. Never use for file read/write/grep operations. 来源:https://prompts.chat/prompts/cmlgonce30009ju04csqhzq32

I@import-227b388ae648dee524de913e
0