fix: onboarding permission refresh, keyboard l10n, and flow recording
Refresh mic/speech status when returning from TCC dialogs, persist onboarding page across Settings trips, load extension strings from .lproj bundles via ExtL10n, and keep flow result polling alive across host-app jumps.
This commit is contained in:
@@ -1,14 +1,21 @@
|
||||
// ExtL10n.swift
|
||||
// OSGKeyboard · Keyboard Extension
|
||||
//
|
||||
// Loads strings from the extension bundle. Replaces the old KeyboardL10n
|
||||
// hard-coded fallback map — keys live in Localizable.strings.
|
||||
// Loads strings from the keyboard extension bundle (not SwiftUI's default
|
||||
// bundle, which may not see our Localizable.strings).
|
||||
|
||||
import Foundation
|
||||
import SwiftUI
|
||||
|
||||
enum ExtL10n {
|
||||
private static let bundle = Bundle(for: KeyboardViewController.self)
|
||||
|
||||
static func string(_ key: String) -> String {
|
||||
NSLocalizedString(key, bundle: .main, comment: "")
|
||||
NSLocalizedString(key, bundle: bundle, comment: "")
|
||||
}
|
||||
|
||||
static func text(_ key: String) -> Text {
|
||||
Text(string(key))
|
||||
}
|
||||
|
||||
static func format(_ key: String, _ args: CVarArg...) -> String {
|
||||
|
||||
Reference in New Issue
Block a user