Repository navigation
feat(l10n): localize AI services, English system prompt - #17
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Localizes the AI services layer into the
aitable:LocalHeuristicProvider: offline insight titles, summaries, categories, action titles and chat repliesNvidiaNIMProvider: display name, analysis title and categoryAIAssistantService: chat action titles and the connection-error replyNvidiaNIMService: user-visible errors and connection-test status messagesKeys: 49 new keys. 47 go in
ai.strings(en and tr, appended). 2 counted keys go in a newai.stringsdict(en and tr):%lld App Updates AvailableandNVIDIA NIM connection successful! %lld models scanned.. Two existing keys are reused:Local Rule Engine (100% Offline & Secure)andScan for Junk Files.Prompt approach
You are the MacOptimizer Pro macOS assistant. Reply in <Language>; only offer recommendations, never execute actions. System summary: <snapshot>Mac: <model>, <chip>, <os>. RAM N%, CPU N%, Free disk N%, Junk files <size>, Apps with pending updates: N. Give short system recommendations. Reply in <Language>.\nRunning apps: ...Reply briefly.; the path-redaction token is now[file path]L10n.currentLanguage()(the same AppleLanguages →Bundle.module.localizationsmatch thatL10n.stringalready used, now shared) andL10n.currentLanguageEnglishName(), which returns "Turkish" or "English" viaLocale(identifier: "en"). If nothing matches, it falls back to the bundle's development localization.Keyword matching
Keyword lists were extended, not replaced, so both Turkish and English input still match (for example
memory,heat,clean,space,storage,junk,cache,new version,network).Tests
testNIMPromptsAreEnglishAndNameReplyLanguage: the system prompt names the reply language, and the language resolves to Turkish or English from AppleLanguages.testCopilotKeywordsMatchTurkishAndEnglishInput.🤖 Generated with Claude Code