Skip to content

armgit / orca

Public Imported from GitHub
0

Orca is the place for working with a fleet of agents (e.g. Grok Bot, Claude Code). Run any coding agent with your own subscription. Available on desktop, mobile and remote runtime.

1.2 KB
Raw Blame
import type { NativeChatOrcaStopSay } from '../../../../../src/shared/native-chat/native-chat-orca-stop-words'
import type { Translate } from '../../../i18n/mobile-i18n'

export function nativeChatOrcaStopSay(t: Translate): NativeChatOrcaStopSay {
  return (id, machine) => {
    const copy = {
      update: () =>
        t(
          'chat.orcaStop.update',
          'Orca on {{machine}} restarted for an update while this response was in progress.',
          { machine }
        ),
      quit: () =>
        t(
          'chat.orcaStop.quit',
          'Orca on {{machine}} was closed while this response was in progress.',
          { machine }
        ),
      crash: () =>
        t(
          'chat.orcaStop.crash',
          'Orca on {{machine}} stopped unexpectedly while this response was in progress.',
          { machine }
        ),
      remote: () =>
        t(
          'chat.orcaStop.remote',
          'Orca on {{machine}} stopped while this response was in progress.',
          { machine }
        ),
      canContinue: () => t('chat.orcaStop.canContinue', 'You can continue in this conversation.'),
      unnamedServer: () => t('chat.orcaStop.unnamedServer', 'the remote server')
    }
    return copy[id]()
  }
}