Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion KoeApp/Koe/AppDelegate/SPAppDelegate.m
Original file line number Diff line number Diff line change
Expand Up @@ -538,7 +538,7 @@ - (void)rustBridgeDidReceiveRewriteText:(NSString *)text {

// Show result with "Copied" indicator
[self.statusBarManager updateState:@"idle"];
[self.overlayPanel updateDisplayText:[text stringByAppendingString:@" ✓ Copied"]];
[self.overlayPanel updateDisplayText:[NSString stringWithFormat:KoeLocalizedString(@"overlay.runtime.copiedFormat"), text ?: @""]];
[self.overlayPanel updateState:@"pasting"];
[self.overlayPanel lingerAndDismiss];
}
Expand Down
11 changes: 7 additions & 4 deletions KoeApp/Koe/Bridge/SPRustBridge.m
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#import "SPRustBridge.h"
#import <AppKit/AppKit.h>
#import "SPLocalization.h"
#import "koe_core.h"

// ─── Static delegate reference for C callbacks ─────────────────────
Expand Down Expand Up @@ -233,7 +234,7 @@ - (NSDictionary *)llmRemoteModelsForBaseURL:(NSString *)baseURL apiKey:(NSString
return @{
@"success": @NO,
@"models": @[],
@"message": @"No response from core",
@"message": KoeLocalizedString(@"settings.setupWizard.test.llm.invalidResponseFromCore"),
};
}

Expand All @@ -245,7 +246,7 @@ - (NSDictionary *)llmRemoteModelsForBaseURL:(NSString *)baseURL apiKey:(NSString
return @{
@"success": @NO,
@"models": @[],
@"message": @"Invalid model list response encoding",
@"message": KoeLocalizedString(@"settings.setupWizard.llm.modelList.error.invalidEncoding"),
};
}

Expand All @@ -254,7 +255,7 @@ - (NSDictionary *)llmRemoteModelsForBaseURL:(NSString *)baseURL apiKey:(NSString
return @{
@"success": @NO,
@"models": @[],
@"message": @"Invalid model list response payload",
@"message": KoeLocalizedString(@"settings.setupWizard.llm.modelList.error.invalidPayload"),
};
}
return result;
Expand Down Expand Up @@ -329,7 +330,9 @@ - (void)downloadModel:(NSString *)modelPath
if (result != 0) {
// Transfer back so ARC releases
(void)(__bridge_transfer _KoeDownloadContext *)ctx;
NSString *msg = (result == -1) ? @"Already downloading" : @"Failed to start download";
NSString *msg = (result == -1)
? KoeLocalizedString(@"settings.setupWizard.model.download.alreadyDownloading")
: KoeLocalizedString(@"settings.setupWizard.model.download.startFailed");
dispatch_async(dispatch_get_main_queue(), ^{
completionBlock(NO, msg);
});
Expand Down
15 changes: 8 additions & 7 deletions KoeApp/Koe/Overlay/SPOverlayPanel.m
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#import "SPOverlayPanel.h"
#import "SPLocalization.h"
#import "koe_core.h"
#import <QuartzCore/QuartzCore.h>

Expand Down Expand Up @@ -1301,31 +1302,31 @@ - (void)updateState:(NSString *)state {
if ([state hasPrefix:@"recording"]) {
self.sessionMaxWidth = 0;
self.sessionMaxHeight = 0;
text = @"Listening…";
text = KoeLocalizedString(@"statusBar.status.listening");
accent = [NSColor colorWithRed:1.0 green:0.32 blue:0.32 alpha:1.0];
mode = SPOverlayModeWaveform;
} else if ([state hasPrefix:@"connecting_asr"]) {
text = @"Connecting…";
text = KoeLocalizedString(@"statusBar.status.connecting");
accent = [NSColor colorWithRed:1.0 green:0.78 blue:0.28 alpha:1.0];
mode = SPOverlayModeProcessing;
} else if ([state hasPrefix:@"finalizing_asr"]) {
text = @"Recognizing…";
text = KoeLocalizedString(@"statusBar.status.recognizing");
accent = [NSColor colorWithRed:0.35 green:0.78 blue:1.0 alpha:1.0];
mode = SPOverlayModeProcessing;
} else if ([state isEqualToString:@"correcting"]) {
text = @"Thinking…";
text = KoeLocalizedString(@"statusBar.status.thinking");
accent = [NSColor colorWithRed:0.55 green:0.6 blue:1.0 alpha:1.0];
mode = SPOverlayModeProcessing;
} else if ([state hasPrefix:@"preparing_paste"] || [state isEqualToString:@"pasting"]) {
text = @"Pasting…";
text = KoeLocalizedString(@"statusBar.status.pasting");
accent = [NSColor colorWithRed:0.3 green:0.85 blue:0.45 alpha:1.0];
mode = SPOverlayModeSuccess;
} else if ([state isEqualToString:@"error"] || [state isEqualToString:@"failed"]) {
text = @"Error";
text = KoeLocalizedString(@"statusBar.status.error");
accent = [NSColor colorWithRed:1.0 green:0.32 blue:0.32 alpha:1.0];
mode = SPOverlayModeError;
} else {
text = @"Working…";
text = KoeLocalizedString(@"statusBar.status.working");
accent = [NSColor colorWithRed:0.35 green:0.78 blue:1.0 alpha:1.0];
mode = SPOverlayModeProcessing;
}
Expand Down
Loading