Files
OSGKeyboard/OSGKeyboard/en.lproj/Localizable.strings
T
Mavis 947d6220ff Merge branch 'feature/intelligent-polish-and-personal-dict' into main
Resolved real conflicts introduced by translation-polish-2 (#3) and
docs refresh (#4) being merged to main during development:

- OSGKeyboardShared/Models/ProviderConfig.swift
  Add polishIntensity field alongside translationTargetLocaleId /
  polishScenarioId / handednessPreference. Both new fields coexist.

- OSGKeyboardShared/Services/AppGroupStore.swift
  Keep main's translation setters; add polishIntensity setter,
  detectedAppContext setter, and personalDictionary getter/setter.

- OSGKeyboardShared/Services/PolishingService.swift
  Merge v0.2.1 translate-and-polish path with v0.3.0 context-aware
  intelligent prompt. New polish() entry point accepts both modes;
  translation mode still uses TranslationPrompt, polish mode now
  uses buildPrompt(for:context:).

- OSGKeyboard/Views/SettingsView.swift
  Compose localEngineSettingsSection (main) with polishIntensitySection,
  languageAndModelsSection, systemPromptLinkSection, personalDictionaryLinkSection (feature).

- OSGKeyboardShared/{en,zh-Hans}.lproj/Shared.strings
  Concat scenario keys + polish intensity / app context / dictionary keys.

Auto-merged without conflict:
- AppGroupStore new methods (localASRBackend, etc.)
- FlowSessionManager, KeyboardViewController (auto-merged)
- MaterialIcon, HistoryView (auto-merged, my icons added on top)

Co-authored-by: Mavis <Mavis@hkgood.dev>
2026-07-03 07:34:17 +00:00

347 lines
19 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/* OSGKeyboard · English localization (development language) */
"OSGKeyboard" = "OSGKeyboard";
/* Onboarding */
"onboarding.progress" = "Step %1$d of %2$d";
"onboarding.welcome.tagline" = "Speak instead of type";
"onboarding.welcome.subtitle" = "Open-source voice keyboard";
"onboarding.welcome.subtitle2" = "We never read or upload anything you type.";
"onboarding.permission.preface" = "iOS will ask for two permissions — please allow both.";
"onboarding.permission.mic.title" = "Microphone";
"onboarding.permission.mic.body" = "Records your voice.";
"onboarding.permission.mic.allow" = "Allow";
"onboarding.permission.mic.deniedHint" = "Open Settings to enable, or tap Next to set up later.";
"onboarding.permission.speech.title" = "Speech Recognition";
"onboarding.permission.speech.body" = "Turns your voice into text.";
"onboarding.permission.speech.allow" = "Allow";
"onboarding.permission.speech.deniedHint" = "Open Settings to enable, or tap Next to set up later.";
"onboarding.permission.openSettings" = "Open Settings";
"onboarding.permission.status.undetermined" = "Not requested yet";
"onboarding.permission.status.granted" = "Allowed";
"onboarding.permission.status.denied" = "Denied";
"legal.privacyPolicy" = "Privacy Policy";
"onboarding.enable.title" = "Add Keyboard";
"onboarding.enable.fullAccessNote" = "Turn on Allow Full Access so the mic can work.";
"onboarding.enable.step1" = "Settings → General → Keyboard → Add New Keyboard";
"onboarding.enable.step2" = "Select OSGKeyboard and enable Allow Full Access";
"onboarding.enable.step3.prefix" = "Hold ";
"onboarding.enable.step3.suffix" = "and select OSGKeyboard";
"onboarding.enable.openSettings" = "Open Settings";
"onboarding.api.title" = "Choose Engine";
"onboarding.api.localModels.hint" = "Download the on-device CoreML ASR model below before you finish setup (only needed when using Qwen3-ASR).";
"settings.onboarding.replay" = "Restart permission setup";
/* Common navigation */
"common.back" = "Back";
"common.next" = "Next";
"common.done" = "Done";
"common.continue" = "Continue";
"common.reset" = "Reset";
"common.cancel" = "Cancel";
"common.clear" = "Clear";
"common.delete" = "Delete";
"common.space" = "Space";
"common.newline" = "Return";
/* Privacy footnote (onboarding engine page) */
"privacy.audio.title" = "On-device transcription";
"privacy.audio.body" = "Powered by the on-device iOS speech engine.";
"privacy.network.title" = "Automatic text polish";
"privacy.network.body" = "AI formats and polishes your text automatically.";
"privacy.universal.title" = "Works everywhere";
"privacy.universal.body" = "Chat, email, vibe coding — just speak.";
/* Home */
"home.status.ready" = "Ready";
"home.status.setupIncomplete" = "Setup incomplete";
"home.hero.label" = "Tap to configure";
"home.action.enableInSettings" = "Enable in iOS Settings";
"home.action.editApi" = "Edit API Configuration";
"home.action.keyboardPreview" = "Keyboard Preview (Debug)";
"home.action.openSettingsA11y" = "Open OSGKeyboard settings";
/* API settings */
"api.baseUrl" = "Base URL";
"api.model" = "Model";
"api.getKey" = "Get an API key";
"api.key" = "API Key";
"api.key.placeholder" = "sk-…";
"api.key.show" = "Show";
"api.key.hide" = "Hide";
"api.connection" = "Connection";
"api.test.idle" = "Test connection";
"api.test.running" = "Testing…";
"api.test.success" = "Success · Retry";
"api.test.failure" = "Failed · Retry";
"api.test.connected" = "Connected";
"api.test.missing" = "API key missing";
"api.test.rateLimited" = "Rate limited (429)";
"api.test.http" = "HTTP %d";
"api.test.network" = "Network error";
"api.test.connectedWith" = "“%@”";
"api.test.transportWith" = "%@";
/* Settings */
"settings.title" = "Settings";
"settings.appLanguage.title" = "App language";
"settings.appLanguage.auto" = "Auto";
"settings.appLanguage.english" = "English";
"settings.appLanguage.chinese" = "Chinese";
"settings.reset.title" = "Reset all settings?";
"settings.reset.message" = "API key, model, base URL, voice history, and cloud consent will be cleared.";
"settings.reset.confirm" = "Reset all settings";
"settings.engine.title" = "Recognition method";
"settings.engine.subtitle" = "Local: on-device ASR only. Cloud: ASR + polish via your API.";
"settings.engine.local.title" = "On-device recognition";
"settings.engine.local.ios26" = "Always on-device, no network.";
"settings.engine.local.legacy" = "On-device ASR. Transcription only, no polish.";
"settings.engine.cloud.title" = "Cloud recognition & polish";
"settings.engine.cloud.subtitle" = "On-device ASR + polish via your API. Text is sent to the endpoint you configure.";
"settings.provider.title" = "Provider";
"settings.provider.subtitle" = "Pick the LLM that polishes your dictation.";
"provider.openai" = "OpenAI";
"provider.deepseek" = "DeepSeek";
"provider.qwen" = "Qwen (DashScope)";
"provider.zhipu" = "Zhipu GLM";
"provider.moonshot" = "Moonshot";
"provider.custom" = "Custom";
"settings.api.title" = "API";
"settings.language.title" = "Language";
"settings.languageAndPolish.title" = "Language & Polish";
// v0.2.1: translation feature
"settings.translation.afterPolish" = "Polish then translate";
"settings.translation.off" = "Don't translate";
"settings.polishScenario.section" = "Polish";
"settings.polishScenario.title" = "Scenario";
"settings.polishScenario.hint" = "Pick a scenario to match how you write. Choose Custom to edit the full system prompt.";
"settings.polishScenario.customHint" = "Custom scenario: edit the full system prompt below.";
"settings.languageModels.title" = "Language & models";
"settings.localModels.title" = "On-device models";
"settings.localModels.speechRole" = "Speech";
"settings.localModels.builtIn" = "Built-in";
"settings.localModels.allReady" = "Ready";
"settings.localModels.readiness %lld %lld" = "%lld/%lld ready";
"settings.localModels.cloudPolish.title" = "Cloud polish after ASR";
"settings.localModels.cloudPolish.subtitle" = "Sends the transcript to your configured cloud LLM (DeepSeek by default) for cleanup. Enable only when iOS speech recognition struggles — noisy far-field audio, strong accents, etc. Requires a DeepSeek API key.";
"settings.localEngine.title" = "Local engine";
"settings.language.subtitle.cloud" = "Recognition language and text processing mode.";
"settings.language.subtitle.local" = "Recognition language.";
"settings.mode.title" = "Mode";
"settings.mode.off" = "Off";
"settings.mode.transcribe" = "Transcribe";
"settings.mode.polish" = "Polish";
"settings.systemPrompt.title" = "System Prompt";
"settings.systemPrompt.edit" = "Edit system prompt";
"settings.systemPrompt.hint" = "Used by the cloud LLM when polishing your dictation. Local engine skips this step.";
"settings.about.title" = "About";
"settings.preferences.title" = "Preferences";
"settings.handedness.title" = "Handedness";
"settings.handedness.left" = "Left hand";
"settings.handedness.right" = "Right hand";
"settings.systemPrompt.reset" = "Reset";
"settings.asrLocale" = "ASR locale";
"settings.engineBadge.ios26" = "SpeechAnalyzer — always on-device";
"settings.engineRow.title" = "Recognition engine";
"settings.onDeviceOnly.title" = "On-device only";
"settings.onDeviceOnly.body" = "Disable cloud fallback. The keyboard reports an error instead of going online.";
"settings.legend.onDevice" = "On-device";
"settings.legend.cloudFallback" = "Cloud fallback";
"settings.privacy.title" = "Privacy";
"settings.privacy.policy" = "Privacy Policy";
"settings.privacy.fullAccess.title" = "About Full Access";
"settings.privacy.fullAccess.body" = "Full Access is required for the microphone and to read your API key. OSGKeyboard does not record or upload what you type with the keyboard.";
"settings.privacy.cloud.body" = "In Cloud polish mode, transcribed text is sent to the API endpoint you configure (e.g. OpenAI or your own server). OSGKeyboard does not operate servers and does not store transcripts in the cloud.";
"settings.privacy.cloud.alert.title" = "Third-party API";
"settings.privacy.cloud.alert.message" = "Cloud polish sends transcribed text to the third-party API you configure. OSGKeyboard never stores data on our servers. Continue?";
"settings.link.support" = "Help & Feedback";
"settings.link.github" = "GitHub";
"settings.support.footer" = "OSGKeyboard is open source. Report bugs and share ideas on GitHub.";
"settings.support.intro" = "The fastest way to get help or send feedback is to open a GitHub issue. We read every report.";
"settings.support.issuesHint" = "Search existing issues first. For bugs, include your iOS version, engine mode (local or cloud), and steps to reproduce.";
"settings.support.openIssues" = "Open GitHub Issues";
"settings.support.unavailable.title" = "Cannot load page";
"settings.support.unavailable.message" = "GitHub Issues could not be opened. Check your network connection and try again.";
"settings.link.licenses" = "Third-Party Licenses";
"settings.link.models" = "On-device models";
"settings.models.link.subtitle" = "Download source, models, and storage";
"settings.licenses.title" = "Third-Party Licenses";
"settings.licenses.footer" = "Open-source components used by OSGKeyboard. License texts are reproduced from upstream repositories; model weights are downloaded at runtime and cached on device. OSGKeyboard itself is source-available — commercial licensing: rocky.hk@gmail.com.";
/* On-device models manager (settings → "On-device models") */
"settings.models.title" = "On-device models";
"settings.models.intro.title" = "Run speech recognition entirely on your iPhone";
"settings.models.intro.body" = "Download the Qwen3-ASR model before using local recognition. Files are cached in this app's storage and can be deleted anytime.";
"settings.models.mirror.title" = "Download source";
"settings.models.source.modelScope" = "ModelScope";
"settings.models.source.huggingface" = "Hugging Face";
"settings.models.action.downloadSize %@" = "Download - %@";
"settings.models.action.deleteSize %@" = "Delete - %@";
"settings.models.action.downloadingPercent %lld" = "%lld%%";
"settings.models.status.notDownloaded" = "Not downloaded";
"settings.models.status.downloading" = "Downloading…";
"settings.models.status.downloadingPercent %lld" = "Downloading… %lld%%";
"settings.models.status.downloaded" = "Downloaded";
"settings.models.status.failed" = "Download failed";
"settings.models.action.download" = "Download";
"settings.models.action.cancel" = "Cancel";
"settings.models.action.cancelDownload" = "Cancel download";
"settings.models.action.delete" = "Delete";
/* Local ASR backend picker (local engine mode) */
"asr.backend.speechAnalyzer.label" = "iOS SpeechAnalyzer";
"asr.backend.speechAnalyzer.blurb" = "Built into iOS 26, always on-device, lowest latency.";
"asr.backend.speechAnalyzer.hint" = "No download required.";
"asr.backend.qwen3.label" = "Qwen3-ASR 0.6B (CoreML)";
"asr.backend.qwen3.blurb" = "Stronger on Chinese dialects and noisy audio. ~1.6 GB CoreML model, works in background.";
"asr.backend.qwen3.downloadHint" = "Download the CoreML model in the section above before dictating.";
"asr.error.modelNotDownloaded" = "Qwen3-ASR is not downloaded yet. Download it from On-device models in Settings.";
"asr.error.unsupportedOS" = "Qwen3-ASR CoreML requires iOS 18 or later. Use iOS SpeechAnalyzer or switch to a cloud engine.";
/* App group error */
"appGroup.error.title" = "App Group not configured";
"appGroup.error.body" = "OSGKeyboard needs an App Group to share config between the main app and the keyboard extension.";
"appGroup.error.step1" = "Create group.com.osgkeyboard.shared in the Apple Developer portal";
"appGroup.error.step2" = "Enable it for both the main app and the keyboard extension";
"appGroup.error.step3" = "Re-generate the provisioning profile and download it";
/* Keyboard preview */
"preview.title" = "Keyboard Preview";
"preview.subtitle" = "Tap Start/Stop Recording to test here. On the real keyboard, tap the mic disc to dictate.";
"preview.placeholder" = "Type here or tap the record button";
"preview.placeholder" = "Type here or tap the record button";
"preview.clear" = "Clear text";
"preview.openSettingsA11y" = "Open OSGKeyboard settings";
"preview.openSettings" = "Settings";
"preview.record.start" = "Start Recording";
"preview.record.stop" = "Stop Recording";
"preview.status.field" = "Text field";
"preview.status.recording" = "Recording…";
"preview.status.processing" = "Transcribing…";
/* Dictation handoff */
"dictation.title" = "Voice Input";
"dictation.status.ready" = "Ready to record…";
"dictation.status.listening" = "Listening…";
"dictation.status.listeningLive" = "Live transcription…";
"dictation.status.processing" = "Processing…";
"dictation.status.requestingPermission" = "Requesting permission…";
"dictation.status.waitingResult" = "Waiting for transcription…";
"dictation.status.saving" = "Saving…";
"preview.modeChip.cycle" = "Cycle input mode";
"preview.localeChip.cycle" = "Cycle recognition language";
"preview.error.audioSession" = "Audio session error: %@";
"preview.error.micUnavailable" = "Microphone unavailable (hw format %.0f Hz / %d ch)";
"preview.error.formatCreate" = "Failed to create 16 kHz audio format.";
"preview.error.converterCreate" = "Failed to create audio converter.";
"preview.error.engineStart" = "Engine start failed: %@";
/* Keyboard (ext) */
"keyboard.placeholder.idle" = "Tap to talk";
"keyboard.placeholder.preparing" = "Preparing";
"keyboard.placeholder.processing" = "Processing";
"keyboard.placeholder.error" = "Polishing failed";
"keyboard.placeholder.localBadge" = "On-device";
"keyboard.placeholder.cloudBadge" = "Cloud";
"keyboard.rec" = "REC";
"keyboard.space" = "Space";
"keyboard.denied.mic" = "Mic denied";
"keyboard.denied.speech" = "Speech denied";
"keyboard.openSettingsA11y" = "Open OSGKeyboard settings";
"keyboard.deniedHint" = "Opens the OSGKeyboard settings page where you can grant microphone or speech recognition access.";
"keyboard.tapToTalkA11y" = "Tap to talk";
/* Mode chip labels (used in both ext + preview stub) */
"mode.off" = "Off";
"mode.transcribe" = "Transcribe";
"mode.polish" = "Polish";
/* Locale chip labels (preview stub) */
"locale.zh-Hans" = "ZH-Hans";
/* Locale menu items (settings) */
"locale.auto" = "Auto";
"locale.zh-Hans" = "Chinese (Simplified)";
"locale.zh-Hant" = "Chinese (Traditional)";
"locale.en-US" = "English (US)";
"locale.ja-JP" = "Japanese";
"locale.ko-KR" = "Korean";
/* Flow session */
"flow.error.noSpeech" = "No speech detected. Please try again.";
"flow.error.recognitionInterrupted" = "Recognition did not finish. Please try again.";
"keyboard.denied.mic" = "Microphone access denied";
"keyboard.denied.speech" = "Speech recognition denied";
/* Home · Flow session */
"home.flow.active" = "Voice session active";
"home.flow.label" = "Ready";
"home.flow.inactive" = "Voice session inactive";
"home.flow.hint" = "Switch to any app and tap the keyboard mic to dictate.";
"home.setup.permission.mic" = "Microphone access is off — voice input won't work.";
"home.setup.permission.speech" = "Speech recognition is off — voice input won't work.";
"home.setup.permission.both" = "Microphone and speech recognition are off — voice input won't work.";
"home.setup.permission.request" = "Grant access";
"home.setup.cloudIncomplete" = "Cloud engine needs an API key. Open the Settings tab.";
"home.setup.keyboardHint" = "Don't see OSGKeyboard? Add it in iOS Settings.";
"home.setup.keyboardHint.dismiss" = "Got it";
"home.flow.starting" = "Starting voice session…";
"home.flow.openSettings" = "Open Settings to grant permissions";
"home.flow.start" = "Start voice session";
"home.flow.end" = "End voice session";
"home.flow.endShort" = "End";
"home.preview.label" = "Try typing";
"home.preview.placeholder" = "Tap to type and test…";
"home.engine.unsupportedOS" = "Qwen3-ASR CoreML requires iOS 18+";
"home.engine.warming" = "Loading ASR model into memory…";
"home.engine.downloading" = "Downloading ASR model…";
"home.engine.loadFailed" = "Model downloaded but failed to load. Restart the app and try again.";
"home.engine.modelsReady" = "ASR model ready";
"home.engine.setupRequired" = "Local ASR model not ready";
"home.engine.downloadFirst" = "Download the local ASR model in Settings first";
"home.engine.attentionBanner" = "Local ASR model is not ready yet. Download it and wait for warm-up before dictating.";
/* Tabs */
"tab.keyboard" = "Keyboard";
"tab.history" = "History";
"tab.settings" = "Settings";
/* History */
"history.title" = "History";
"history.subtitle" = "Saved on this device only.";
"history.empty" = "No voice transcripts yet.";
"history.clear.title" = "Clear all history?";
"history.clear.message" = "This cannot be undone.";
"history.clear.confirm" = "Clear all";
"history.clear.button" = "Clear all history";
"flow.error.speechRequired" = "Speech recognition access is required for voice sessions.";
"flow.error.micRequired" = "Microphone access is required for background voice sessions.";
"flow.error.micUnavailable" = "Microphone is unavailable on this device.";
"flow.error.audioUnavailable" = "Could not start background audio.";
"settings.models.error.metadata" = "Download cache was corrupted or incomplete. Try switching the download source and download again.";
"settings.models.error.offline" = "Could not reach the model server. Check your network or try a different download source.";
"settings.models.confirm.downloadTitle %@" = "Download %@";
"settings.models.confirm.downloadingTitleFormat %@" = "Downloading %@";
"settings.models.confirm.body %lld" = "This download uses about %lld MB on disk. We recommend WiFi to avoid cellular data. You can delete the file anytime from On-device models to free space.";
"settings.models.confirm.cancel" = "Cancel";
"settings.models.confirm.download %lld" = "Download %lld MB";
/* v0.3.0: Personal dictionary */
"settings.personalDictionary.sectionTitle" = "Personal dictionary";
"settings.personalDictionary.title" = "Personal dictionary";
"settings.personalDictionary.summary" = "Words the LLM must preserve verbatim when polishing.";
"settings.personalDictionary.intro.title" = "How words get added";
"settings.personalDictionary.intro.body" = "Words you dictate repeatedly are auto-learned. You can also edit or delete any entry here.";
"settings.personalDictionary.empty.title" = "No words yet";
"settings.personalDictionary.empty.body" = "Words you dictate often will appear here. You can also delete any entry from this screen.";
"settings.personalDictionary.search.prompt" = "Search words";
"settings.personalDictionary.usageCount" = "%lld uses";
"settings.personalDictionary.clearAll" = "Clear dictionary";
"settings.personalDictionary.clearAll.confirmTitle" = "Clear all dictionary words?";
"settings.personalDictionary.clearAll.message" = "This removes every word the LLM was protecting. This cannot be undone.";
"settings.personalDictionary.clearAll.confirm" = "Clear all";
/* v0.3.0: Polish intensity */
"settings.polishIntensity.title" = "Polish intensity";