mirror of
https://github.com/stablyai/orca.git
synced 2026-11-19 04:23:57 +00:00
* feat(mobile): localize tasks, new workspaces and source control Moves the last ~670 strings (task lists and boards, issue and PR sources, the new-workspace flow, and source control) to the translation API, with all ten translations. What remains in the coverage baseline is reviewed non-copy: key names, schema errors and log lines. - Source control section titles recompute on a language change * fix(mobile): align catalog terminology across screens A whole-catalog pass per language reconciled terms that differed between batches (host/desktop, dictation, transcripts, address form) with the glossaries and the desktop catalogs. The page bundle verifier now reports catalog bytes separately. * fix(mobile): keep fetched history and source error slugs language-independent History rows are derived from the fetched page at render so relative times follow a language switch; quality-gate follow-ups for the tasks and source control migration. * fix(mobile): name Android notification channels in the UI language * chore(mobile): drop catalog entries for removed source-control copy * fix(mobile): re-localize the composer source hook on current main --------- Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
45 lines
1.3 KiB
TypeScript
45 lines
1.3 KiB
TypeScript
import { translate } from '../i18n/mobile-i18n'
|
|
import { refusedRpcMessageOrFallback } from '../transport/rpc-refusal-message'
|
|
import {
|
|
gitCancelGenerateCommitMessageRun,
|
|
gitGenerateCommitMessageRun,
|
|
type MobileGenerateCommitMessageResult
|
|
} from './mobile-git-mutation-operations'
|
|
import type { RpcOperationSender } from '../transport/rpc-operation-sender'
|
|
|
|
export type { MobileGenerateCommitMessageResult }
|
|
|
|
// Collapse refusals and malformed payloads to the same failed-generation verdict.
|
|
export async function requestMobileCommitMessage(
|
|
client: RpcOperationSender,
|
|
worktreeId: string
|
|
): Promise<MobileGenerateCommitMessageResult> {
|
|
const reply = await gitGenerateCommitMessageRun.request(client, {
|
|
worktree: `id:${worktreeId}`
|
|
})
|
|
try {
|
|
return gitGenerateCommitMessageRun.interpret(reply)
|
|
} catch (error) {
|
|
return {
|
|
success: false,
|
|
error: refusedRpcMessageOrFallback(
|
|
error,
|
|
translate(
|
|
'sourceControl.commitMessageAi.generateFailed',
|
|
'Failed to generate commit message'
|
|
)
|
|
)
|
|
}
|
|
}
|
|
}
|
|
|
|
export async function cancelMobileCommitMessage(
|
|
client: RpcOperationSender,
|
|
worktreeId: string
|
|
): Promise<void> {
|
|
const reply = await gitCancelGenerateCommitMessageRun.request(client, {
|
|
worktree: `id:${worktreeId}`
|
|
})
|
|
gitCancelGenerateCommitMessageRun.interpret(reply)
|
|
}
|