fix(shared): i18n coverage and contract updates
- keyPath field no longer tells users to enter a server-side path - settings.highlight.builtin.* notes, timeout messages in four languages - prototype-safe dictionary lookup; language as a render-time dependency - Partial<AppSettings> saveSettings contract, update:stateGet channel
This commit is contained in:
1 parent
23fa566fa9
commit
c0342db1e8
16 files changed
+100
-9
No files matched your search
+3
-1
@@ -97,7 +97,7 @@ export interface AppApi {
|
||||
|
||||
// ---- settings ----
|
||||
getSettings(): Promise<AppSettings>
|
||||
saveSettings(next: AppSettings): Promise<AppSettings>
|
||||
saveSettings(next: Partial<AppSettings>): Promise<AppSettings>
|
||||
onSettingsChanged(cb: (s: AppSettings) => void): () => void
|
||||
|
||||
// ---- fonts ----
|
||||
@@ -112,6 +112,8 @@ export interface AppApi {
|
||||
|
||||
// ---- updater (domestic feed first, GitHub fallback) ----
|
||||
updateCheck(): Promise<UpdateState>
|
||||
/** read the updater's current state without triggering a network check */
|
||||
getUpdateState(): Promise<UpdateState>
|
||||
updateDownload(): Promise<void>
|
||||
updateInstall(): Promise<void>
|
||||
updateChangelog(): Promise<ReleaseNote[]>
|
||||
|
||||
Reference in new issue
Block a user