mirror of
https://github.com/stablyai/orca.git
synced 2026-11-19 04:23:57 +00:00
Moves ~970 strings in session screens, the terminal, agent chat (including the copy mobile used to render straight from shared English records), the browser pane and the file explorer to the translation API, with all ten translations. - Chat tool-run sentences, task lists, receipts, notices and turn status take translated words; the shared sentence joiner accepts an optional continuation so German nouns and Turkish casing survive mid-sentence (desktop unchanged) - "Used the browser" vs "… 21 times" and resolved PR comment headers use explicit keys instead of plural rules, which would drop the count for Russian 21, 31, … - Action sheet rows carry stable ids instead of being keyed by translated labels - Rename inputs keep the raw title rather than a translated placeholder Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
33 lines
1.3 KiB
TypeScript
33 lines
1.3 KiB
TypeScript
import { MobileSessionSurface } from './MobileSessionSurface'
|
|
import { useMobileSessionController } from './use-mobile-session-controller'
|
|
import { ActivityIndicator, Text, View } from 'react-native'
|
|
import { colors } from '../theme/mobile-theme'
|
|
import { useMobileColorScheme } from '../theme/use-mobile-color-scheme'
|
|
import { useMobileTranslation } from '../i18n/use-mobile-translation'
|
|
import { styles } from './mobile-session-styles'
|
|
|
|
// Keep the screen importable by the page; native route modules mount the shell.
|
|
export function MobileSessionRouteScreen() {
|
|
useMobileColorScheme()
|
|
const t = useMobileTranslation()
|
|
const controller = useMobileSessionController()
|
|
// Readiness stays true on refocus so returning from Settings preserves mounted panes.
|
|
if (
|
|
!controller.terminalPreferencesReady ||
|
|
!controller.accessoryPreferencesReady ||
|
|
!controller.nativeChatController.sessionViewReady
|
|
) {
|
|
return (
|
|
<View style={styles.container}>
|
|
<View style={styles.emptyState}>
|
|
<ActivityIndicator size="small" color={colors.textSecondary} />
|
|
<Text style={styles.emptyText}>
|
|
{t('session.routeScreen.openingWorkspace', 'Opening workspace')}
|
|
</Text>
|
|
</View>
|
|
</View>
|
|
)
|
|
}
|
|
return <MobileSessionSurface controller={controller} />
|
|
}
|