38a36ed504
Introduce MainTabView with history and Liquid Glass dock; refresh home and onboarding layouts; unify accent green and provider localization; refine settings/API rows; redesign keyboard mic and flanking controls; set Utility iPhone-only targets and Flow session reliability fixes.
16 lines
455 B
Swift
16 lines
455 B
Swift
// ProviderDisplayName.swift
|
|
// OSGKeyboard · Shared
|
|
//
|
|
// Locale-aware provider labels for settings and status hints.
|
|
|
|
import Foundation
|
|
|
|
public enum ProviderDisplayName {
|
|
public static func name(for providerId: String) -> String {
|
|
let key = "provider.\(providerId)"
|
|
let localized = NSLocalizedString(key, comment: "")
|
|
if localized != key { return localized }
|
|
return LLMProvider.provider(id: providerId).name
|
|
}
|
|
}
|