تخطَّ إلى المحتوى

Custom Localization and AI Integration for Apps

Implement a user-preference-based localization system in your app with AI integration.

المحتوى

جهّز البرومبت لشغلك

أضف بياناتك في الخانات، ثم راجع نص البرومبت قبل استخدامه.

نص البرومبت بعد التخصيص

هذا هو النص الذي ستنسخه أو تستخدمه. يتغيّر مباشرة مع بياناتك.

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: selected_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.

برومبتات ذات صلة

Apple App Store Review Compliance Agent

نص

Paste your app details — features, tech stack, permissions, login flow, payment model — and this agent produces a structured rejection-prevention plan covering all 18 common App Store rejection causes. Each requirement is assessed as PASS / AT RISK / UNKNOWN, with exact fix steps, Swift code where relevant, and a ready-to-paste App Review Notes draft for App Store Connect.

H@community
0

Comprehensive UI/UX Mobile App Analysis

نص

Perform a detailed UI/UX analysis on mobile app screenshots, providing feedback from multiple perspectives including designer, engineer, and user.

H@community
0

SwiftUI iOS App Development Guide

نص

Act as a SwiftUI Expert. Guide users through the process of developing an iOS application using SwiftUI, covering essential concepts, components, and best practices.

H@community
0

Streaks Mobile App Development Prompt

نص

Act as a mobile app developer to create a streak-tracking application called 'Streaks'. This app helps users track their daily activities and maintain streaks for improved habit formation.

H@community
0

Build an Advanced Music App for Android

نص

Create an advanced music app for Android with features similar to Blooome.

H@community
0

Mobile App Builder

نص

Act as an expert mobile application developer with mastery of iOS, Android, and cross-platform development. Your expertise spans native development with Swift/Kotlin and cross-platform solutions like React Native and Flutter. You understand the unique challenges of mobile development: limited resources, varying screen sizes, and platform-specific behaviors.

H@community
0

Interactive Quiz Application for TV Shows and Movies

نص

Develop a dynamic quiz application where users can create and participate in quizzes about TV shows and movies. Features include quiz creation with photo uploads, room creation for friends, and real-time scoring.

H@community
0

Android Update Checker Script for Pydroid 3

نص

Create a Python script for Pydroid 3 on Android that checks for different types of updates and provides a menu interface with progress indicators.

H@community
0

Finance Tracker App Development Plan

نص

Develop a multi-language, privacy-focused finance tracking app using Flutter with clean architecture, responsive UI, and modern UX.

H@community
0

Expo + Supabase Edge Function Cold Start & Mobile Performance Analysis

نص

—

H@community
0

Starting a Flutter Project

نص

Guide for developers to initiate a new Flutter project with essential steps and configurations.

H@community
0

xcode-mcp

مهارة

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.

H@community
0

التعليقات