From b926a267194aaf17b0d2dc1535ff23cb6ac1e4be Mon Sep 17 00:00:00 2001 From: Tim Biggs Date: Thu, 19 Nov 2026 09:30:04 +0000 Subject: [PATCH 1/2] fix(mobile): translate the phone runtime's Android notifications and dialogs Kotlin shows its user-facing text through localized(), and the app sends it translations from the GT catalogs whenever the language changes. Co-Authored-By: Claude Opus 5.5 --- .../modules/t3deviceruntime/AccessApproval.kt | 8 +- .../modules/t3deviceruntime/AndroidBridge.kt | 40 ++++++--- .../modules/t3deviceruntime/ClaudeLogin.kt | 4 +- .../modules/t3deviceruntime/DeviceRuntime.kt | 2 +- .../t3deviceruntime/DeviceRuntimeService.kt | 12 +-- .../modules/t3deviceruntime/NativeText.kt | 13 +++ .../t3deviceruntime/T3DeviceRuntimeModule.kt | 23 ++--- .../features/device-runtime/device-runtime.ts | 2 + .../features/device-runtime/native-text.ts | 90 +++++++++++++++++++ .../mobile/src/features/phone/phone-server.ts | 2 + apps/mobile/src/i18n/translations/de.json | 38 +++++++- apps/mobile/src/i18n/translations/en.json | 38 +++++++- apps/mobile/src/i18n/translations/es.json | 38 +++++++- apps/mobile/src/i18n/translations/fr.json | 38 +++++++- apps/mobile/src/i18n/translations/ja.json | 38 +++++++- apps/mobile/src/i18n/translations/ko.json | 38 +++++++- apps/mobile/src/i18n/translations/pt-BR.json | 38 +++++++- apps/mobile/src/i18n/translations/ru.json | 38 +++++++- apps/mobile/src/i18n/translations/sv.json | 38 +++++++- apps/mobile/src/i18n/translations/zh.json | 38 +++++++- 20 files changed, 510 insertions(+), 66 deletions(-) create mode 100644 apps/mobile/modules/t3-device-runtime/android/src/main/java/expo/modules/t3deviceruntime/NativeText.kt create mode 100644 apps/mobile/src/features/device-runtime/native-text.ts diff --git a/apps/mobile/modules/t3-device-runtime/android/src/main/java/expo/modules/t3deviceruntime/AccessApproval.kt b/apps/mobile/modules/t3-device-runtime/android/src/main/java/expo/modules/t3deviceruntime/AccessApproval.kt index 07335263e5528..dba462d041c83 100644 --- a/apps/mobile/modules/t3-device-runtime/android/src/main/java/expo/modules/t3deviceruntime/AccessApproval.kt +++ b/apps/mobile/modules/t3-device-runtime/android/src/main/java/expo/modules/t3deviceruntime/AccessApproval.kt @@ -102,9 +102,9 @@ internal object AccessApproval { val message = buildString { append(AgentAccess.commandName(command)) if (details.isNotEmpty()) append("\n\n$details") - append("\n\nAn agent or another device using this phone's server asked for this.") + append("\n\n" + localized("An agent or another device using this phone's server asked for this.")) } - return WaitingApproval("Allow ${category.label}?", message, CompletableFuture()) + return WaitingApproval(localized("Allow {access}?", "access" to localized(category.label)), message, CompletableFuture()) } fun prompt(id: String): Pair? = pending[id]?.let { it.title to it.message } @@ -133,8 +133,8 @@ class AccessApprovalActivity : Activity() { val shown = AlertDialog.Builder(this, android.R.style.Theme_DeviceDefault_Dialog_Alert) .setTitle(title) .setMessage(message) - .setPositiveButton("Allow") { _, _ -> answer(true) } - .setNegativeButton("Don't allow") { _, _ -> answer(false) } + .setPositiveButton(localized("Allow")) { _, _ -> answer(true) } + .setNegativeButton(localized("Don't allow")) { _, _ -> answer(false) } .setOnCancelListener { answer(false) } .create() shown.setCanceledOnTouchOutside(false) diff --git a/apps/mobile/modules/t3-device-runtime/android/src/main/java/expo/modules/t3deviceruntime/AndroidBridge.kt b/apps/mobile/modules/t3-device-runtime/android/src/main/java/expo/modules/t3deviceruntime/AndroidBridge.kt index b5de151017659..a2327fddb71b4 100644 --- a/apps/mobile/modules/t3-device-runtime/android/src/main/java/expo/modules/t3deviceruntime/AndroidBridge.kt +++ b/apps/mobile/modules/t3-device-runtime/android/src/main/java/expo/modules/t3deviceruntime/AndroidBridge.kt @@ -280,7 +280,7 @@ class AndroidBridge private constructor(context: Context, private val rootfs: Fi "share" -> { val text = body.getString("text") val send = Intent(Intent.ACTION_SEND).setType("text/plain").putExtra(Intent.EXTRA_TEXT, text) - startOrNotify(Intent.createChooser(send, null), "Share from an agent", text) + startOrNotify(Intent.createChooser(send, null), localized("Share from an agent"), text) } "vibrate" -> vibrate(body.optLong("duration", 1000)) "battery-status" -> batteryStatus() @@ -305,7 +305,7 @@ class AndroidBridge private constructor(context: Context, private val rootfs: Fi "call-log" -> data.callLog(body) "telephony-call" -> { val number = body.getString("number") - startOrNotify(Intent(Intent.ACTION_CALL, Uri.fromParts("tel", number, null)), "Call from an agent", number) + startOrNotify(Intent(Intent.ACTION_CALL, Uri.fromParts("tel", number, null)), localized("Call from an agent"), number) } "telephony-deviceinfo" -> data.deviceInfo() "telephony-cellinfo" -> data.cellInfo() @@ -318,7 +318,7 @@ class AndroidBridge private constructor(context: Context, private val rootfs: Fi private fun am(body: JSONObject): Any? { val intent = appIntent(context, body) return when (val mode = body.getString("mode")) { - "start" -> launchIntent(context, intent).let { startOrNotify(it, "Open an app from an agent", describeIntent(it)) } + "start" -> launchIntent(context, intent).let { startOrNotify(it, localized("Open an app from an agent"), describeIntent(it)) } "broadcast" -> { requireTarget(intent) context.sendBroadcast(intent) @@ -333,7 +333,7 @@ class AndroidBridge private constructor(context: Context, private val rootfs: Fi } private fun openUrl(url: String): Any? = - startOrNotify(Intent(Intent.ACTION_VIEW, webUri(url)), "Open a link from an agent", url) + startOrNotify(Intent(Intent.ACTION_VIEW, webUri(url)), localized("Open a link from an agent"), url) private fun webUri(url: String): Uri { val uri = Uri.parse(url) @@ -353,7 +353,7 @@ class AndroidBridge private constructor(context: Context, private val rootfs: Fi else -> fileIntent(target, send, body.optString("contentType")) } val chosen = if (send || body.optBoolean("chooser")) Intent.createChooser(intent, null) else intent - return startOrNotify(chosen, if (send) "Share from an agent" else "Open from an agent", target) + return startOrNotify(chosen, if (send) localized("Share from an agent") else localized("Open from an agent"), target) } private fun fileIntent(path: String, send: Boolean, contentType: String): Intent { @@ -448,7 +448,14 @@ class AndroidBridge private constructor(context: Context, private val rootfs: Fi context.startActivity(intent) } else { val tap = PendingIntent.getActivity(context, notificationId, intent, PendingIntent.FLAG_IMMUTABLE) - notify(REQUEST_CHANNEL, REQUEST_TAG, notificationId, "Allow $label?", "An agent wants to run ${AgentAccess.commandName(command)}. Tap to answer.", tap) + notify( + REQUEST_CHANNEL, + REQUEST_TAG, + notificationId, + localized("Allow {access}?", "access" to localized(label)), + localized("An agent wants to run {command}. Tap to answer.", "command" to AgentAccess.commandName(command)), + tap, + ) } }, dismiss = { notificationManager().cancel(REQUEST_TAG, notificationId) }, @@ -465,8 +472,8 @@ class AndroidBridge private constructor(context: Context, private val rootfs: Fi // Notification access is a system settings page, not a prompt. startOrNotify( AgentAccess.notificationAccessIntent(context), - "Allow notification access", - "An agent on this phone wants to read its notifications. Turn on T3 Code here.", + localized("Allow notification access"), + localized("An agent on this phone wants to read its notifications. Turn on T3 Code here."), ) throw BridgeError( "Android hasn't given T3 Code notification access. The user can turn it on in the settings page " + @@ -477,7 +484,14 @@ class AndroidBridge private constructor(context: Context, private val rootfs: Fi if (!onScreen()) { val id = requestIds.incrementAndGet() val tap = PendingIntent.getActivity(context, id, AccessPrompt.intent(context, category), PendingIntent.FLAG_IMMUTABLE) - notify(REQUEST_CHANNEL, REQUEST_TAG, id, "Allow $label?", "An agent on this phone wants $label. Tap to answer Android's prompt.", tap) + notify( + REQUEST_CHANNEL, + REQUEST_TAG, + id, + localized("Allow {access}?", "access" to localized(label)), + localized("An agent on this phone wants {access}. Tap to answer Android's prompt.", "access" to localized(label)), + tap, + ) throw BridgeError( "Android hasn't given T3 Code $label, and can only ask while T3 Code is on screen. The user can tap " + "T3 Code's notification to allow it, then run this again.", @@ -583,13 +597,13 @@ class AndroidBridge private constructor(context: Context, private val rootfs: Fi val manager = notificationManager() if (!manager.areNotificationsEnabled()) throw BridgeError("T3 Code's notifications are turned off.") manager.createNotificationChannel( - NotificationChannel(NOTIFICATION_CHANNEL, "Agent notifications", NotificationManager.IMPORTANCE_DEFAULT).apply { - description = "Notifications that agents on this phone post." + NotificationChannel(NOTIFICATION_CHANNEL, localized("Agent notifications"), NotificationManager.IMPORTANCE_DEFAULT).apply { + description = localized("Notifications that agents on this phone post.") }, ) manager.createNotificationChannel( - NotificationChannel(REQUEST_CHANNEL, "Requests from agents", NotificationManager.IMPORTANCE_HIGH).apply { - description = "Links, shares and permissions that agents ask for while T3 Code isn't on screen." + NotificationChannel(REQUEST_CHANNEL, localized("Requests from agents"), NotificationManager.IMPORTANCE_HIGH).apply { + description = localized("Links, shares and permissions that agents ask for while T3 Code isn't on screen.") }, ) val blocked = manager.getNotificationChannel(channel) diff --git a/apps/mobile/modules/t3-device-runtime/android/src/main/java/expo/modules/t3deviceruntime/ClaudeLogin.kt b/apps/mobile/modules/t3-device-runtime/android/src/main/java/expo/modules/t3deviceruntime/ClaudeLogin.kt index c9ef98b7654d4..0ea6ea62b1add 100644 --- a/apps/mobile/modules/t3-device-runtime/android/src/main/java/expo/modules/t3deviceruntime/ClaudeLogin.kt +++ b/apps/mobile/modules/t3-device-runtime/android/src/main/java/expo/modules/t3deviceruntime/ClaudeLogin.kt @@ -13,9 +13,9 @@ private val NETWORK_ERROR = Regex("""getaddrinfo|EAI_AGAIN|ENOTFOUND|ECONNREFUSE internal fun failureMessage(output: String, code: Int): String { val reason = output.substringAfterLast(CODE_PROMPT, output).lines() .map { it.trim() }.lastOrNull { it.isNotEmpty() } - ?: return "Sign-in exited with status $code." + ?: return localized("Sign-in exited with status {code}.", "code" to code) return if (NETWORK_ERROR.containsMatchIn(reason)) { - "Couldn't reach Claude's servers ($reason). Check the connection, then sign in again." + localized("Couldn't reach Claude's servers ({reason}). Check the connection, then sign in again.", "reason" to reason) } else { reason } diff --git a/apps/mobile/modules/t3-device-runtime/android/src/main/java/expo/modules/t3deviceruntime/DeviceRuntime.kt b/apps/mobile/modules/t3-device-runtime/android/src/main/java/expo/modules/t3deviceruntime/DeviceRuntime.kt index 0ad9f67b917e5..22125dd8707e8 100644 --- a/apps/mobile/modules/t3-device-runtime/android/src/main/java/expo/modules/t3deviceruntime/DeviceRuntime.kt +++ b/apps/mobile/modules/t3-device-runtime/android/src/main/java/expo/modules/t3deviceruntime/DeviceRuntime.kt @@ -296,7 +296,7 @@ class DeviceRuntime(private val context: Context, private val log: (String) -> U /** Starts a command in the guest with stderr merged into stdout. */ fun start(guestCommand: List, environment: Map = emptyMap()): GuestProcess { checkCancelled() - if (!ubuntuInstalled) throw IOException("Ubuntu on this phone is missing or damaged. Install it again.") + if (!ubuntuInstalled) throw IOException(localized("Ubuntu on this phone is missing or damaged. Install it again.")) writeGuestConfig() prootTmp.mkdirs() hardLinks.mkdirs() diff --git a/apps/mobile/modules/t3-device-runtime/android/src/main/java/expo/modules/t3deviceruntime/DeviceRuntimeService.kt b/apps/mobile/modules/t3-device-runtime/android/src/main/java/expo/modules/t3deviceruntime/DeviceRuntimeService.kt index 93fc484345489..9012464898b6f 100644 --- a/apps/mobile/modules/t3-device-runtime/android/src/main/java/expo/modules/t3deviceruntime/DeviceRuntimeService.kt +++ b/apps/mobile/modules/t3-device-runtime/android/src/main/java/expo/modules/t3deviceruntime/DeviceRuntimeService.kt @@ -80,7 +80,7 @@ object DeviceServer { @Synchronized private fun launch(context: Context, port: Int, retry: Boolean) { if (running) return - RuntimeForeground.hold(context, Hold.Server, "The server is running on this phone.") + RuntimeForeground.hold(context, Hold.Server, localized("The server is running on this phone.")) val log = logFile(context) val bridge = AndroidBridge.start(context) val started = try { @@ -128,7 +128,7 @@ object DeviceServer { val started = guest ?: return started.terminate() if (!started.process.waitFor(STOP_TIMEOUT_SECONDS, TimeUnit.SECONDS)) { - throw IOException("The server didn't stop within $STOP_TIMEOUT_SECONDS seconds.") + throw IOException(localized("The server didn't stop within {seconds} seconds.", "seconds" to STOP_TIMEOUT_SECONDS)) } } } @@ -154,7 +154,7 @@ class DeviceRuntimeService : Service() { } // A service started with startForegroundService must call startForeground, even when // its work has already finished. - val current = RuntimeForeground.current() ?: (Hold.Job to "Finishing…") + val current = RuntimeForeground.current() ?: (Hold.Job to localized("Finishing…")) startForeground(current) update() return START_NOT_STICKY @@ -206,8 +206,8 @@ class DeviceRuntimeService : Service() { private fun notification(hold: Hold, text: String): Notification { val manager = getSystemService(NotificationManager::class.java) manager.createNotificationChannel( - NotificationChannel(CHANNEL_ID, "T3 Code on this phone", NotificationManager.IMPORTANCE_LOW).apply { - description = "Shown while T3 Code installs, signs in or runs its server on this phone." + NotificationChannel(CHANNEL_ID, localized("T3 Code on this phone"), NotificationManager.IMPORTANCE_LOW).apply { + description = localized("Shown while T3 Code installs, signs in or runs its server on this phone.") }, ) val open = packageManager.getLaunchIntentForPackage(packageName)?.let { @@ -228,7 +228,7 @@ class DeviceRuntimeService : Service() { Intent(this, DeviceRuntimeService::class.java).setAction(ACTION_STOP_SERVER), PendingIntent.FLAG_IMMUTABLE, ) - builder.addAction(0, "Stop server", stop) + builder.addAction(0, localized("Stop server"), stop) } return builder.build() } diff --git a/apps/mobile/modules/t3-device-runtime/android/src/main/java/expo/modules/t3deviceruntime/NativeText.kt b/apps/mobile/modules/t3-device-runtime/android/src/main/java/expo/modules/t3deviceruntime/NativeText.kt new file mode 100644 index 0000000000000..f5ae75bf8499d --- /dev/null +++ b/apps/mobile/modules/t3-device-runtime/android/src/main/java/expo/modules/t3deviceruntime/NativeText.kt @@ -0,0 +1,13 @@ +package expo.modules.t3deviceruntime + +/** + * The app's translations of the English passed to [localized], sent by + * apps/mobile/src/features/device-runtime/native-text.ts. Text it hasn't sent stays English. + */ +@Volatile internal var nativeTranslations: Map = emptyMap() + +/** Text Android shows the user, in the app's language. Text for agents and logs stays English. */ +internal fun localized(english: String, vararg values: Pair): String = + values.fold(nativeTranslations[english] ?: english) { text, (name, value) -> + text.replace("{$name}", value.toString()) + } diff --git a/apps/mobile/modules/t3-device-runtime/android/src/main/java/expo/modules/t3deviceruntime/T3DeviceRuntimeModule.kt b/apps/mobile/modules/t3-device-runtime/android/src/main/java/expo/modules/t3deviceruntime/T3DeviceRuntimeModule.kt index 3936f45ed56e4..6e0861404f787 100644 --- a/apps/mobile/modules/t3-device-runtime/android/src/main/java/expo/modules/t3deviceruntime/T3DeviceRuntimeModule.kt +++ b/apps/mobile/modules/t3-device-runtime/android/src/main/java/expo/modules/t3deviceruntime/T3DeviceRuntimeModule.kt @@ -17,7 +17,7 @@ import java.util.concurrent.Executors private const val LOG_LIMIT = 2000 -// DeviceRuntimeSetupScreen translates titles by id, so a new or renamed id needs a title there. +// DeviceRuntimeSetupScreen translates titles by id and native-text.ts by title, so both list each step. private data class JobStep(val id: String, val title: String) private val INSTALL_STEPS = listOf( @@ -51,6 +51,8 @@ class T3DeviceRuntimeModule : Module() { Name("T3DeviceRuntime") Events("onJob", "onLogin") + Function("setText") { translations: Map -> nativeTranslations = translations } + Function("getStatus") { val runtime = DeviceRuntime(requireContext()) {} mapOf( @@ -140,7 +142,7 @@ class T3DeviceRuntimeModule : Module() { AsyncFunction("update") { promise: Promise -> val context = requireContext() if (!installed(DeviceRuntime(context) {})) { - throw CodedException("ERR_DEVICE_RUNTIME_MISSING", "The on-device runtime isn't installed.", null) + throw CodedException("ERR_DEVICE_RUNTIME_MISSING", localized("The on-device runtime isn't installed."), null) } startJob(context, "update", UPDATE_STEPS, promise) { runtime, step, script -> if (step.id == "upgrade-claude-code") runtime.installClaudeKey() @@ -184,7 +186,7 @@ class T3DeviceRuntimeModule : Module() { .capture(listOf("t3", "pair", "--label", "T3 Code app on this phone")) output.lines().map { it.trim() }.firstOrNull { it.startsWith("Pairing URL: ") } ?.removePrefix("Pairing URL: ") - ?: throw RuntimeJobFailed(output.trim().ifEmpty { "T3 Code didn't give a pairing link." }) + ?: throw RuntimeJobFailed(output.trim().ifEmpty { localized("T3 Code didn't give a pairing link.") }) } } @@ -199,7 +201,7 @@ class T3DeviceRuntimeModule : Module() { } login = created // The browser takes the screen while the user signs in; Claude has to keep running. - RuntimeForeground.hold(context, Hold.Login, "Signing in to Claude…") + RuntimeForeground.hold(context, Hold.Login, localized("Signing in to Claude…")) try { created.start() } catch (error: Throwable) { @@ -220,7 +222,7 @@ class T3DeviceRuntimeModule : Module() { // Stops the server and deletes Ubuntu with everything in it, then turns the runtime off. AsyncFunction("remove") { promise: Promise -> val context = requireContext() - if (activeJob != null) throw CodedException("ERR_DEVICE_RUNTIME_BUSY", "Wait for setup to finish first.", null) + if (activeJob != null) throw CodedException("ERR_DEVICE_RUNTIME_BUSY", localized("Wait for setup to finish first."), null) inBackground(promise) { login?.cancel() DeviceServer.stop() @@ -260,12 +262,12 @@ class T3DeviceRuntimeModule : Module() { ) { val runtime = DeviceRuntime(context, ::appendLog) synchronized(this) { - if (activeJob != null) throw CodedException("ERR_DEVICE_RUNTIME_BUSY", "Setup or an update is already running.", null) + if (activeJob != null) throw CodedException("ERR_DEVICE_RUNTIME_BUSY", localized("Setup or an update is already running."), null) activeJob = runtime } synchronized(jobLog) { jobLog.clear() } // Held from here, while T3 Code is on screen: Android won't start it from the background. - RuntimeForeground.hold(context, Hold.Job, "Starting…") + RuntimeForeground.hold(context, Hold.Job, localized("Starting…")) jobs.execute { var failure: String? = null try { @@ -277,13 +279,14 @@ class T3DeviceRuntimeModule : Module() { val code = runStep(runtime, step, script) if (code != 0) { val tail = synchronized(jobLog) { jobLog.filterNot { it.startsWith("@@") }.takeLast(4) } - failure = "${step.title} failed (exit $code).\n${tail.joinToString("\n")}".trim() + val summary = localized("{step} failed (exit {code}).", "step" to localized(step.title), "code" to code) + failure = "$summary\n${tail.joinToString("\n")}".trim() break } } if (failure == null && kind == "install") installedMarker(runtime).writeText("") } catch (error: RuntimeCancelled) { - failure = "Cancelled." + failure = localized("Cancelled.") } catch (error: Throwable) { Log.e(TAG, "$kind failed", error) failure = error.message ?: error.javaClass.simpleName @@ -298,7 +301,7 @@ class T3DeviceRuntimeModule : Module() { private fun setJobState(kind: String, running: Boolean, step: JobStep?, index: Int, count: Int, error: String?) { if (running && step != null) { val context = appContext.reactContext - if (context != null) RuntimeForeground.hold(context, Hold.Job, "${step.title} (step ${index + 1} of $count)…") + if (context != null) RuntimeForeground.hold(context, Hold.Job, localized("{step} (step {number} of {count})…", "step" to localized(step.title), "number" to index + 1, "count" to count)) } val state = mapOf( "kind" to kind, diff --git a/apps/mobile/src/features/device-runtime/device-runtime.ts b/apps/mobile/src/features/device-runtime/device-runtime.ts index 21351edb89a33..89979b931b33a 100644 --- a/apps/mobile/src/features/device-runtime/device-runtime.ts +++ b/apps/mobile/src/features/device-runtime/device-runtime.ts @@ -64,6 +64,8 @@ type DeviceRuntimeEvents = { }; declare class T3DeviceRuntimeModule extends NativeModule { + /** Translations keyed by the English Kotlin shows, with `{name}` placeholders kept. */ + setText(translations: Readonly>): void; getStatus(): DeviceRuntimeStatus; install(): Promise; openStorageSettings(): void; diff --git a/apps/mobile/src/features/device-runtime/native-text.ts b/apps/mobile/src/features/device-runtime/native-text.ts new file mode 100644 index 0000000000000..1810d6e8f6c77 --- /dev/null +++ b/apps/mobile/src/features/device-runtime/native-text.ts @@ -0,0 +1,90 @@ +import { decodeOptions, msg, useMessages } from "gt-react-native"; +import { useEffect } from "react"; + +import { deviceRuntime } from "./device-runtime"; + +/** The English the device runtime's Kotlin passes to `localized()`, character for character. */ +const NATIVE_TEXT: ReadonlyArray = [ + // Install and update steps. + msg("Downloading Ubuntu"), + msg("Installing Ubuntu packages"), + msg("Installing Node.js"), + msg("Installing Claude Code"), + msg("Installing T3 Code"), + msg("Updating T3 Code"), + msg("Updating Claude Code"), + msg("Cleaning up"), + msg("Starting…"), + msg("{step} (step {number} of {count})…"), + msg("Finishing…"), + msg("{step} failed (exit {code})."), + msg("Cancelled."), + msg("Setup or an update is already running."), + msg("Wait for setup to finish first."), + msg("The on-device runtime isn't installed."), + msg("Ubuntu on this phone is missing or damaged. Install it again."), + // Server and sign-in. + msg("The server is running on this phone."), + msg("Stop server"), + msg("The server didn't stop within {seconds} seconds."), + msg("T3 Code didn't give a pairing link."), + msg("Signing in to Claude…"), + msg("Sign-in exited with status {code}."), + msg("Couldn't reach Claude's servers ({reason}). Check the connection, then sign in again."), + msg("T3 Code on this phone"), + msg("Shown while T3 Code installs, signs in or runs its server on this phone."), + // Agent access categories. + msg("Location"), + msg("Camera"), + msg("Microphone"), + msg("Contacts"), + msg("Text messages"), + msg("Call log"), + msg("Phone calls and device info"), + msg("Notifications"), + msg("Other apps"), + // Requests from agents. + msg("Allow {access}?"), + msg("Allow", { $context: "verb, confirm button" }), + msg("Don't allow"), + msg("An agent or another device using this phone's server asked for this."), + msg("An agent wants to run {command}. Tap to answer."), + msg("An agent on this phone wants {access}. Tap to answer Android's prompt."), + msg("Allow notification access"), + msg("An agent on this phone wants to read its notifications. Turn on T3 Code here."), + msg("Share from an agent"), + msg("Call from an agent"), + msg("Open an app from an agent"), + msg("Open a link from an agent"), + msg("Open from an agent"), + msg("Agent notifications"), + msg("Notifications that agents on this phone post."), + msg("Requests from agents"), + msg("Links, shares and permissions that agents ask for while T3 Code isn't on screen."), +]; + +function english(message: string): string { + const source = decodeOptions(message)?.$_source; + return typeof source === "string" ? source : message; +} + +/** Keeps each `{name}` for Kotlin to fill in. */ +function placeholders(text: string): Record { + return Object.fromEntries([...text.matchAll(/\{(\w+)\}/g)].map(([token, name]) => [name, token])); +} + +/** Sends the device runtime its notification, dialog and error text in the app's language. */ +export function useDeviceRuntimeText() { + const resolve = useMessages(); + // oxlint-disable-next-line t3code/no-unreasoned-state-sync -- Android shows the module's notifications and dialogs from its own copy of the text + useEffect(() => { + deviceRuntime?.setText( + Object.fromEntries( + NATIVE_TEXT.map((message) => { + const source = english(message); + return [source, resolve(message, placeholders(source))]; + }), + ), + ); + }, [resolve]); +} diff --git a/apps/mobile/src/features/phone/phone-server.ts b/apps/mobile/src/features/phone/phone-server.ts index f943d1a0436f8..a813f96a7593a 100644 --- a/apps/mobile/src/features/phone/phone-server.ts +++ b/apps/mobile/src/features/phone/phone-server.ts @@ -20,6 +20,7 @@ import { } from "../../state/phone-server-settings"; import { useWorkspaceEnvironments, workspaceConnections } from "../../state/workspace"; import { deviceRuntime, deviceServer } from "../device-runtime/device-runtime"; +import { useDeviceRuntimeText } from "../device-runtime/native-text"; import { reconcilePhoneSharing } from "./phone-sharing-commands"; import { phoneServerPort } from "./phone-setup"; @@ -275,6 +276,7 @@ async function autoStartPhoneServer() { * launch once connections hydrate, after a drop, and whenever the app comes back. */ export function usePhoneServerWorker() { + useDeviceRuntimeText(); const settings = usePhoneServerSettings(); const phone = useWorkspaceEnvironments().find( (environment) => environment.environmentId === settings?.environmentId, diff --git a/apps/mobile/src/i18n/translations/de.json b/apps/mobile/src/i18n/translations/de.json index 5e469c81c58e2..da1d0485575dc 100644 --- a/apps/mobile/src/i18n/translations/de.json +++ b/apps/mobile/src/i18n/translations/de.json @@ -2044,6 +2044,41 @@ "442c27456faccba6": "Noch nichts protokolliert.", "9283ee3217bd5d1c": "T3 Code ist auf diesem Telefon nicht mehr installiert.", "09d24e558527565f": "Die Einrichtung oder ein Update läuft noch.", + "a20b495b9e6f82b9": "Wird gestartet…", + "6e511dcc5ed962bd": "{step} (Schritt {number} von {count})…", + "30ae6650acb0dd90": "Wird abgeschlossen…", + "54e2d7d3bf126c73": "Fehler bei „{step}“ (Exit-Code {code}).", + "298863d82706d076": "Abgebrochen.", + "9a4ae113ecdcd0b3": "Die Einrichtung oder ein Update läuft bereits.", + "56d279713ee08c83": "Warte zuerst, bis die Einrichtung fertig ist.", + "08665a2cadb6587a": "Die Laufzeitumgebung auf dem Gerät ist nicht installiert.", + "34636513f5199a08": "Ubuntu auf diesem Telefon fehlt oder ist beschädigt. Installiere es erneut.", + "cac2fe887623a958": "Der Server läuft auf diesem Telefon.", + "37d872a5b3197a9c": "Server stoppen", + "b61fe9317746cf27": "Der Server wurde nicht innerhalb von {seconds} Sekunden beendet.", + "9e73b459ff8bf4be": "T3 Code hat keinen Kopplungslink geliefert.", + "b301007de518cf02": "Anmeldung bei Claude…", + "3f0597c5c9903240": "Die Anmeldung wurde mit Status {code} beendet.", + "cd79c8e07f060d56": "Claudes Server sind nicht erreichbar ({reason}). Prüfe die Verbindung und melde dich dann erneut an.", + "64132f8127c75283": "T3 Code auf diesem Telefon", + "c3a53a2b86ac1757": "Wird angezeigt, während T3 Code auf diesem Telefon installiert, sich anmeldet oder seinen Server ausführt.", + "9558a82a33e2681f": "{access} erlauben?", + "908efcecc448d693": "Erlauben", + "a5120a92dce4546a": "Nicht erlauben", + "c9f284609e63581b": "Ein Agent oder ein anderes Gerät, das den Server dieses Telefons nutzt, hat das angefragt.", + "c2689cec1d9130dd": "Ein Agent möchte {command} ausführen. Tippe zum Antworten.", + "f7941eca2093cee0": "Ein Agent auf diesem Telefon möchte Zugriff auf {access}. Tippe, um auf die Android-Abfrage zu antworten.", + "24cc8c1e11dd55ad": "Benachrichtigungszugriff erlauben", + "760ccd844fc9a71b": "Ein Agent auf diesem Telefon möchte die Benachrichtigungen lesen. Aktiviere hier T3 Code.", + "018ed74bc3dc5f82": "Agent möchte etwas teilen", + "d9a5d4e4793372b0": "Agent möchte anrufen", + "cdbb31bca3749474": "Agent möchte eine App öffnen", + "8d90e6b229b88ff4": "Agent möchte einen Link öffnen", + "99129cbcdfed683c": "Agent möchte etwas öffnen", + "98e60862b9093324": "Agent-Benachrichtigungen", + "a7bb8793da0d4f73": "Benachrichtigungen, die Agenten auf diesem Telefon senden.", + "0d6635629a9c59c7": "Anfragen von Agenten", + "6d8e43345cf3a34b": "Links, Freigaben und Berechtigungen, um die Agenten bitten, während T3 Code nicht im Vordergrund ist.", "0cf35ae8d7452516": "Gerät konnte nicht heruntergefahren werden", "94f8e4fd2497326d": "Versionen der Geräte-Tools", "84718257bae3bc62": "{host} erneut versuchen", @@ -2529,7 +2564,6 @@ "a90b525c07c15d93": "Ubuntu-Home", "88f626cdec11791d": "{folder} durchsuchen", "79432ea87bc668b0": "Der Telefonspeicher kennt keine Dateiberechtigungen oder symbolischen Links, also lege Git-Repositories im Ubuntu-Home ab.", - "a20b495b9e6f82b9": "Wird gestartet…", "b036bc4620e2cf33": "Startet nicht", "d3d0ea2b27711c0f": "Gestoppt", "23065363f7148aa2": "{environment}, {state}", @@ -2544,7 +2578,6 @@ "8f7728969800e806": "Starten, wenn T3 Code öffnet", "7b65d74bfc265bce": "Startet den Server auf diesem Telefon, wenn er nicht läuft.", "7161c775bd96511c": "Wird gestoppt…", - "37d872a5b3197a9c": "Server stoppen", "cb1738ace0e210bc": "Schaltet auch das Starten beim Öffnen von T3 Code aus.", "9ec835322a87debf": "Der Server konnte nicht gestoppt werden.", "e570c6dd0d4da7a6": "Server starten", @@ -4316,7 +4349,6 @@ "7e072f3b5535dc99": "Vollbild beenden", "d3a4862f72c90c1e": "Diese App kann nicht angezeigt werden.", "ced684880c2e1961": "{server} erlauben, {tool} auszuführen?", - "908efcecc448d693": "Erlauben", "6fe313bc90c0e6bc": "Einen Link von {server} öffnen?", "f9a66fb70d32aa76": "Öffnen", "b66fa23b5647b62d": "Diese Nachricht von {server} senden?", diff --git a/apps/mobile/src/i18n/translations/en.json b/apps/mobile/src/i18n/translations/en.json index 11a50a77bd603..64e920d6d6b67 100644 --- a/apps/mobile/src/i18n/translations/en.json +++ b/apps/mobile/src/i18n/translations/en.json @@ -2044,6 +2044,41 @@ "442c27456faccba6": "Nothing logged yet.", "9283ee3217bd5d1c": "T3 Code isn't installed on this phone anymore.", "09d24e558527565f": "Setup or an update is still running.", + "a20b495b9e6f82b9": "Starting…", + "6e511dcc5ed962bd": "{step} (step {number} of {count})…", + "30ae6650acb0dd90": "Finishing…", + "54e2d7d3bf126c73": "{step} failed (exit {code}).", + "298863d82706d076": "Cancelled.", + "9a4ae113ecdcd0b3": "Setup or an update is already running.", + "56d279713ee08c83": "Wait for setup to finish first.", + "08665a2cadb6587a": "The on-device runtime isn't installed.", + "34636513f5199a08": "Ubuntu on this phone is missing or damaged. Install it again.", + "cac2fe887623a958": "The server is running on this phone.", + "37d872a5b3197a9c": "Stop server", + "b61fe9317746cf27": "The server didn't stop within {seconds} seconds.", + "9e73b459ff8bf4be": "T3 Code didn't give a pairing link.", + "b301007de518cf02": "Signing in to Claude…", + "3f0597c5c9903240": "Sign-in exited with status {code}.", + "cd79c8e07f060d56": "Couldn't reach Claude's servers ({reason}). Check the connection, then sign in again.", + "64132f8127c75283": "T3 Code on this phone", + "c3a53a2b86ac1757": "Shown while T3 Code installs, signs in or runs its server on this phone.", + "9558a82a33e2681f": "Allow {access}?", + "908efcecc448d693": "Allow", + "a5120a92dce4546a": "Don't allow", + "c9f284609e63581b": "An agent or another device using this phone's server asked for this.", + "c2689cec1d9130dd": "An agent wants to run {command}. Tap to answer.", + "f7941eca2093cee0": "An agent on this phone wants {access}. Tap to answer Android's prompt.", + "24cc8c1e11dd55ad": "Allow notification access", + "760ccd844fc9a71b": "An agent on this phone wants to read its notifications. Turn on T3 Code here.", + "018ed74bc3dc5f82": "Share from an agent", + "d9a5d4e4793372b0": "Call from an agent", + "cdbb31bca3749474": "Open an app from an agent", + "8d90e6b229b88ff4": "Open a link from an agent", + "99129cbcdfed683c": "Open from an agent", + "98e60862b9093324": "Agent notifications", + "a7bb8793da0d4f73": "Notifications that agents on this phone post.", + "0d6635629a9c59c7": "Requests from agents", + "6d8e43345cf3a34b": "Links, shares and permissions that agents ask for while T3 Code isn't on screen.", "0cf35ae8d7452516": "Could not shut down device", "94f8e4fd2497326d": "Device tool versions", "84718257bae3bc62": "Retry {host}", @@ -2529,7 +2564,6 @@ "a90b525c07c15d93": "Ubuntu home", "88f626cdec11791d": "Browse {folder}", "79432ea87bc668b0": "Phone storage keeps no file permissions or symlinks, so keep git repositories in Ubuntu home.", - "a20b495b9e6f82b9": "Starting…", "b036bc4620e2cf33": "Can't start", "d3d0ea2b27711c0f": "Stopped", "23065363f7148aa2": "{environment}, {state}", @@ -2544,7 +2578,6 @@ "8f7728969800e806": "Start when T3 Code opens", "7b65d74bfc265bce": "Starts the server on this phone if it isn't running.", "7161c775bd96511c": "Stopping…", - "37d872a5b3197a9c": "Stop server", "cb1738ace0e210bc": "Also turns off starting when T3 Code opens.", "9ec835322a87debf": "Couldn't stop the server.", "e570c6dd0d4da7a6": "Start server", @@ -4317,7 +4350,6 @@ "7e072f3b5535dc99": "Exit full screen", "d3a4862f72c90c1e": "This app cannot be shown.", "ced684880c2e1961": "Allow {server} to run {tool}?", - "908efcecc448d693": "Allow", "6fe313bc90c0e6bc": "Open a link from {server}?", "f9a66fb70d32aa76": "Open", "b66fa23b5647b62d": "Send this message from {server}?", diff --git a/apps/mobile/src/i18n/translations/es.json b/apps/mobile/src/i18n/translations/es.json index 054b0d665b48a..6ddf851d8e204 100644 --- a/apps/mobile/src/i18n/translations/es.json +++ b/apps/mobile/src/i18n/translations/es.json @@ -2044,6 +2044,41 @@ "442c27456faccba6": "Aún no hay nada registrado.", "9283ee3217bd5d1c": "T3 Code ya no está instalado en este teléfono.", "09d24e558527565f": "La configuración o una actualización sigue en curso.", + "a20b495b9e6f82b9": "Iniciando…", + "6e511dcc5ed962bd": "{step} (paso {number} de {count})…", + "30ae6650acb0dd90": "Finalizando…", + "54e2d7d3bf126c73": "Falló el paso «{step}» (código de salida {code}).", + "298863d82706d076": "Cancelado.", + "9a4ae113ecdcd0b3": "La configuración o una actualización ya está en curso.", + "56d279713ee08c83": "Espera a que termine la configuración.", + "08665a2cadb6587a": "El entorno de ejecución del dispositivo no está instalado.", + "34636513f5199a08": "Ubuntu falta o está dañado en este teléfono. Vuelve a instalarlo.", + "cac2fe887623a958": "El servidor se está ejecutando en este teléfono.", + "37d872a5b3197a9c": "Detener servidor", + "b61fe9317746cf27": "El servidor no se detuvo en {seconds} segundos.", + "9e73b459ff8bf4be": "T3 Code no devolvió un enlace de vinculación.", + "b301007de518cf02": "Iniciando sesión en Claude…", + "3f0597c5c9903240": "El inicio de sesión terminó con el estado {code}.", + "cd79c8e07f060d56": "No se pudo contactar con los servidores de Claude ({reason}). Comprueba la conexión y vuelve a iniciar sesión.", + "64132f8127c75283": "T3 Code en este teléfono", + "c3a53a2b86ac1757": "Se muestra mientras T3 Code se instala, inicia sesión o ejecuta su servidor en este teléfono.", + "9558a82a33e2681f": "¿Permitir {access}?", + "908efcecc448d693": "Permitir", + "a5120a92dce4546a": "No permitir", + "c9f284609e63581b": "Lo pidió un agente u otro dispositivo que usa el servidor de este teléfono.", + "c2689cec1d9130dd": "Un agente quiere ejecutar {command}. Toca para responder.", + "f7941eca2093cee0": "Un agente de este teléfono quiere acceso a {access}. Toca para responder al aviso de Android.", + "24cc8c1e11dd55ad": "Permitir acceso a notificaciones", + "760ccd844fc9a71b": "Un agente de este teléfono quiere leer sus notificaciones. Activa T3 Code aquí.", + "018ed74bc3dc5f82": "Compartir desde un agente", + "d9a5d4e4793372b0": "Llamada desde un agente", + "cdbb31bca3749474": "Abrir una app desde un agente", + "8d90e6b229b88ff4": "Abrir un enlace desde un agente", + "99129cbcdfed683c": "Abrir desde un agente", + "98e60862b9093324": "Notificaciones de agentes", + "a7bb8793da0d4f73": "Notificaciones que publican los agentes de este teléfono.", + "0d6635629a9c59c7": "Solicitudes de agentes", + "6d8e43345cf3a34b": "Enlaces, contenido compartido y permisos que piden los agentes mientras T3 Code no está en pantalla.", "0cf35ae8d7452516": "No se pudo apagar el dispositivo", "94f8e4fd2497326d": "Versiones de las herramientas de dispositivos", "84718257bae3bc62": "Reintentar {host}", @@ -2525,7 +2560,6 @@ "a90b525c07c15d93": "Inicio de Ubuntu", "88f626cdec11791d": "Explorar {folder}", "79432ea87bc668b0": "El almacenamiento del teléfono no guarda permisos de archivo ni enlaces simbólicos, así que guarda los repositorios de git en el inicio de Ubuntu.", - "a20b495b9e6f82b9": "Iniciando…", "b036bc4620e2cf33": "No puede iniciarse", "d3d0ea2b27711c0f": "Detenido", "23065363f7148aa2": "{environment}, {state}", @@ -2540,7 +2574,6 @@ "8f7728969800e806": "Iniciar al abrir T3 Code", "7b65d74bfc265bce": "Inicia el servidor en este teléfono si no está en marcha.", "7161c775bd96511c": "Deteniendo…", - "37d872a5b3197a9c": "Detener servidor", "cb1738ace0e210bc": "También desactiva el inicio al abrir T3 Code.", "9ec835322a87debf": "No se pudo detener el servidor.", "e570c6dd0d4da7a6": "Iniciar servidor", @@ -4311,7 +4344,6 @@ "7e072f3b5535dc99": "Salir de pantalla completa", "d3a4862f72c90c1e": "No se puede mostrar esta app.", "ced684880c2e1961": "¿Permitir que {server} ejecute {tool}?", - "908efcecc448d693": "Permitir", "6fe313bc90c0e6bc": "¿Abrir un enlace de {server}?", "f9a66fb70d32aa76": "Abrir", "b66fa23b5647b62d": "¿Enviar este mensaje desde {server}?", diff --git a/apps/mobile/src/i18n/translations/fr.json b/apps/mobile/src/i18n/translations/fr.json index 38d8d83a3efa9..520b070db6a68 100644 --- a/apps/mobile/src/i18n/translations/fr.json +++ b/apps/mobile/src/i18n/translations/fr.json @@ -2044,6 +2044,41 @@ "442c27456faccba6": "Rien n’a encore été journalisé.", "9283ee3217bd5d1c": "T3 Code n’est plus installé sur ce téléphone.", "09d24e558527565f": "La configuration ou une mise à jour est toujours en cours.", + "a20b495b9e6f82b9": "Démarrage…", + "6e511dcc5ed962bd": "{step} (étape {number} sur {count})…", + "30ae6650acb0dd90": "Finalisation…", + "54e2d7d3bf126c73": "Échec de l’étape « {step} » (code de sortie {code}).", + "298863d82706d076": "Annulé.", + "9a4ae113ecdcd0b3": "La configuration ou une mise à jour est déjà en cours.", + "56d279713ee08c83": "Attendez d’abord la fin de la configuration.", + "08665a2cadb6587a": "L’environnement d’exécution sur l’appareil n’est pas installé.", + "34636513f5199a08": "Ubuntu est absent ou endommagé sur ce téléphone. Réinstallez-le.", + "cac2fe887623a958": "Le serveur tourne sur ce téléphone.", + "37d872a5b3197a9c": "Arrêter le serveur", + "b61fe9317746cf27": "Le serveur ne s’est pas arrêté en {seconds} secondes.", + "9e73b459ff8bf4be": "T3 Code n’a pas fourni de lien d’association.", + "b301007de518cf02": "Connexion à Claude…", + "3f0597c5c9903240": "La connexion s’est terminée avec le code {code}.", + "cd79c8e07f060d56": "Impossible de joindre les serveurs de Claude ({reason}). Vérifiez la connexion, puis reconnectez-vous.", + "64132f8127c75283": "T3 Code sur ce téléphone", + "c3a53a2b86ac1757": "Affichée pendant que T3 Code s’installe, se connecte ou fait tourner son serveur sur ce téléphone.", + "9558a82a33e2681f": "Autoriser {access} ?", + "908efcecc448d693": "Autoriser", + "a5120a92dce4546a": "Ne pas autoriser", + "c9f284609e63581b": "Un agent ou un autre appareil utilisant le serveur de ce téléphone l’a demandé.", + "c2689cec1d9130dd": "Un agent veut exécuter {command}. Touchez pour répondre.", + "f7941eca2093cee0": "Un agent sur ce téléphone demande l’accès à {access}. Touchez pour répondre à la demande d’Android.", + "24cc8c1e11dd55ad": "Autoriser l’accès aux notifications", + "760ccd844fc9a71b": "Un agent sur ce téléphone veut lire ses notifications. Activez T3 Code ici.", + "018ed74bc3dc5f82": "Partage par un agent", + "d9a5d4e4793372b0": "Appel par un agent", + "cdbb31bca3749474": "Ouverture d’une app par un agent", + "8d90e6b229b88ff4": "Ouverture d’un lien par un agent", + "99129cbcdfed683c": "Ouverture par un agent", + "98e60862b9093324": "Notifications des agents", + "a7bb8793da0d4f73": "Notifications publiées par les agents de ce téléphone.", + "0d6635629a9c59c7": "Demandes des agents", + "6d8e43345cf3a34b": "Liens, partages et autorisations que les agents demandent quand T3 Code n’est pas à l’écran.", "0cf35ae8d7452516": "Impossible d’éteindre l’appareil", "94f8e4fd2497326d": "Versions des outils d’appareil", "84718257bae3bc62": "Réessayer {host}", @@ -2525,7 +2560,6 @@ "a90b525c07c15d93": "Dossier personnel Ubuntu", "88f626cdec11791d": "Parcourir {folder}", "79432ea87bc668b0": "Le stockage du téléphone ne conserve ni les permissions de fichiers ni les liens symboliques ; gardez donc les dépôts git dans le dossier personnel Ubuntu.", - "a20b495b9e6f82b9": "Démarrage…", "b036bc4620e2cf33": "Démarrage impossible", "d3d0ea2b27711c0f": "Arrêté", "23065363f7148aa2": "{environment}, {state}", @@ -2540,7 +2574,6 @@ "8f7728969800e806": "Démarrer à l’ouverture de T3 Code", "7b65d74bfc265bce": "Démarre le serveur sur ce téléphone s’il ne tourne pas.", "7161c775bd96511c": "Arrêt…", - "37d872a5b3197a9c": "Arrêter le serveur", "cb1738ace0e210bc": "Désactive aussi le démarrage à l’ouverture de T3 Code.", "9ec835322a87debf": "Impossible d’arrêter le serveur.", "e570c6dd0d4da7a6": "Démarrer le serveur", @@ -4311,7 +4344,6 @@ "7e072f3b5535dc99": "Quitter le plein écran", "d3a4862f72c90c1e": "Cette app ne peut pas être affichée.", "ced684880c2e1961": "Autoriser {server} à exécuter {tool} ?", - "908efcecc448d693": "Autoriser", "6fe313bc90c0e6bc": "Ouvrir un lien depuis {server} ?", "f9a66fb70d32aa76": "Ouvrir", "b66fa23b5647b62d": "Envoyer ce message depuis {server} ?", diff --git a/apps/mobile/src/i18n/translations/ja.json b/apps/mobile/src/i18n/translations/ja.json index 678d4f860d372..521cb52f931c6 100644 --- a/apps/mobile/src/i18n/translations/ja.json +++ b/apps/mobile/src/i18n/translations/ja.json @@ -2043,6 +2043,41 @@ "442c27456faccba6": "まだログはありません。", "9283ee3217bd5d1c": "T3 Code はもうこのスマートフォンにインストールされていません。", "09d24e558527565f": "セットアップまたはアップデートがまだ実行中です。", + "a20b495b9e6f82b9": "開始しています…", + "6e511dcc5ed962bd": "{step}(ステップ {number}/{count})…", + "30ae6650acb0dd90": "完了しています…", + "54e2d7d3bf126c73": "ステップ「{step}」に失敗しました(終了コード {code})。", + "298863d82706d076": "キャンセルしました。", + "9a4ae113ecdcd0b3": "セットアップまたはアップデートがすでに実行中です。", + "56d279713ee08c83": "先にセットアップが終わるまでお待ちください。", + "08665a2cadb6587a": "デバイス上のランタイムがインストールされていません。", + "34636513f5199a08": "このスマートフォンの Ubuntu が見つからないか破損しています。もう一度インストールしてください。", + "cac2fe887623a958": "このスマートフォンでサーバーが実行中です。", + "37d872a5b3197a9c": "サーバーを停止", + "b61fe9317746cf27": "サーバーが {seconds} 秒以内に停止しませんでした。", + "9e73b459ff8bf4be": "T3 Code からペアリングリンクが返されませんでした。", + "b301007de518cf02": "Claude にサインインしています…", + "3f0597c5c9903240": "サインインはステータス {code} で終了しました。", + "cd79c8e07f060d56": "Claude のサーバーに接続できません({reason})。接続を確認してから、もう一度サインインしてください。", + "64132f8127c75283": "このスマートフォンの T3 Code", + "c3a53a2b86ac1757": "T3 Code がこのスマートフォンでインストール、サインイン、またはサーバーの実行をしている間に表示されます。", + "9558a82a33e2681f": "{access}を許可しますか?", + "908efcecc448d693": "許可", + "a5120a92dce4546a": "許可しない", + "c9f284609e63581b": "エージェント、またはこのスマートフォンのサーバーを使う別のデバイスからのリクエストです。", + "c2689cec1d9130dd": "エージェントが {command} を実行しようとしています。タップして応答してください。", + "f7941eca2093cee0": "このスマートフォンのエージェントが{access}へのアクセスを求めています。タップして Android の確認に応答してください。", + "24cc8c1e11dd55ad": "通知へのアクセスを許可", + "760ccd844fc9a71b": "このスマートフォンのエージェントが通知を読み取ろうとしています。ここで T3 Code をオンにしてください。", + "018ed74bc3dc5f82": "エージェントが共有を求めています", + "d9a5d4e4793372b0": "エージェントが発信を求めています", + "cdbb31bca3749474": "エージェントがアプリを開こうとしています", + "8d90e6b229b88ff4": "エージェントがリンクを開こうとしています", + "99129cbcdfed683c": "エージェントが開こうとしています", + "98e60862b9093324": "エージェントの通知", + "a7bb8793da0d4f73": "このスマートフォンのエージェントが投稿する通知です。", + "0d6635629a9c59c7": "エージェントからのリクエスト", + "6d8e43345cf3a34b": "T3 Code が画面に表示されていない間に、エージェントが求めるリンク、共有、権限です。", "0cf35ae8d7452516": "デバイスをシャットダウンできませんでした", "94f8e4fd2497326d": "デバイスツールのバージョン", "84718257bae3bc62": "{host} を再試行", @@ -2522,7 +2557,6 @@ "a90b525c07c15d93": "Ubuntu ホーム", "88f626cdec11791d": "{folder} を参照", "79432ea87bc668b0": "スマートフォンのストレージはファイルのパーミッションやシンボリックリンクを保持しないため、git リポジトリは Ubuntu ホームに置いてください。", - "a20b495b9e6f82b9": "開始しています…", "b036bc4620e2cf33": "起動できません", "d3d0ea2b27711c0f": "停止", "23065363f7148aa2": "{environment}、{state}", @@ -2537,7 +2571,6 @@ "8f7728969800e806": "T3 Code を開いたときに起動", "7b65d74bfc265bce": "実行されていない場合、このスマートフォンでサーバーを起動します。", "7161c775bd96511c": "停止しています…", - "37d872a5b3197a9c": "サーバーを停止", "cb1738ace0e210bc": "T3 Code を開いたときの起動もオフになります。", "9ec835322a87debf": "サーバーを停止できませんでした。", "e570c6dd0d4da7a6": "サーバーを起動", @@ -4307,7 +4340,6 @@ "7e072f3b5535dc99": "全画面表示を終了", "d3a4862f72c90c1e": "このアプリは表示できません。", "ced684880c2e1961": "{server} に {tool} の実行を許可しますか?", - "908efcecc448d693": "許可", "6fe313bc90c0e6bc": "{server} からのリンクを開きますか?", "f9a66fb70d32aa76": "開く", "b66fa23b5647b62d": "{server} からこのメッセージを送信しますか?", diff --git a/apps/mobile/src/i18n/translations/ko.json b/apps/mobile/src/i18n/translations/ko.json index ae9a5d337ee3b..28183741a90c8 100644 --- a/apps/mobile/src/i18n/translations/ko.json +++ b/apps/mobile/src/i18n/translations/ko.json @@ -2044,6 +2044,41 @@ "442c27456faccba6": "아직 기록된 로그가 없습니다.", "9283ee3217bd5d1c": "이 휴대폰에 더 이상 T3 Code가 설치되어 있지 않습니다.", "09d24e558527565f": "설정 또는 업데이트가 아직 실행 중입니다.", + "a20b495b9e6f82b9": "시작하는 중…", + "6e511dcc5ed962bd": "{step} ({count}단계 중 {number}단계)…", + "30ae6650acb0dd90": "마무리하는 중…", + "54e2d7d3bf126c73": "‘{step}’ 단계가 실패했습니다(종료 코드 {code}).", + "298863d82706d076": "취소했습니다.", + "9a4ae113ecdcd0b3": "설정 또는 업데이트가 이미 실행 중입니다.", + "56d279713ee08c83": "먼저 설정이 끝날 때까지 기다리세요.", + "08665a2cadb6587a": "기기 내 런타임이 설치되어 있지 않습니다.", + "34636513f5199a08": "이 휴대폰의 Ubuntu가 없거나 손상되었습니다. 다시 설치하세요.", + "cac2fe887623a958": "이 휴대폰에서 서버가 실행 중입니다.", + "37d872a5b3197a9c": "서버 중지", + "b61fe9317746cf27": "서버가 {seconds}초 안에 중지되지 않았습니다.", + "9e73b459ff8bf4be": "T3 Code가 페어링 링크를 주지 않았습니다.", + "b301007de518cf02": "Claude에 로그인하는 중…", + "3f0597c5c9903240": "로그인이 상태 {code}(으)로 종료되었습니다.", + "cd79c8e07f060d56": "Claude 서버에 연결할 수 없습니다({reason}). 연결을 확인한 다음 다시 로그인하세요.", + "64132f8127c75283": "이 휴대폰의 T3 Code", + "c3a53a2b86ac1757": "T3 Code가 이 휴대폰에서 설치, 로그인 또는 서버 실행을 하는 동안 표시됩니다.", + "9558a82a33e2681f": "{access} 권한을 허용할까요?", + "908efcecc448d693": "허용", + "a5120a92dce4546a": "허용 안함", + "c9f284609e63581b": "에이전트 또는 이 휴대폰의 서버를 사용하는 다른 기기가 요청했습니다.", + "c2689cec1d9130dd": "에이전트가 {command}을(를) 실행하려고 합니다. 탭하여 응답하세요.", + "f7941eca2093cee0": "이 휴대폰의 에이전트가 {access} 권한을 요청합니다. 탭하여 Android의 요청에 응답하세요.", + "24cc8c1e11dd55ad": "알림 접근 허용", + "760ccd844fc9a71b": "이 휴대폰의 에이전트가 알림을 읽으려고 합니다. 여기에서 T3 Code를 켜세요.", + "018ed74bc3dc5f82": "에이전트의 공유 요청", + "d9a5d4e4793372b0": "에이전트의 전화 요청", + "cdbb31bca3749474": "에이전트의 앱 열기 요청", + "8d90e6b229b88ff4": "에이전트의 링크 열기 요청", + "99129cbcdfed683c": "에이전트의 열기 요청", + "98e60862b9093324": "에이전트 알림", + "a7bb8793da0d4f73": "이 휴대폰의 에이전트가 게시하는 알림입니다.", + "0d6635629a9c59c7": "에이전트 요청", + "6d8e43345cf3a34b": "T3 Code가 화면에 없을 때 에이전트가 요청하는 링크, 공유, 권한입니다.", "0cf35ae8d7452516": "기기를 종료할 수 없습니다", "94f8e4fd2497326d": "기기 도구 버전", "84718257bae3bc62": "{host} 다시 시도", @@ -2526,7 +2561,6 @@ "a90b525c07c15d93": "Ubuntu 홈", "88f626cdec11791d": "{folder} 탐색", "79432ea87bc668b0": "휴대폰 저장공간은 파일 권한이나 심볼릭 링크를 유지하지 않으므로 git 저장소는 Ubuntu 홈에 두세요.", - "a20b495b9e6f82b9": "시작하는 중…", "b036bc4620e2cf33": "시작할 수 없음", "d3d0ea2b27711c0f": "중지됨", "23065363f7148aa2": "{environment}, {state}", @@ -2541,7 +2575,6 @@ "8f7728969800e806": "T3 Code를 열 때 시작", "7b65d74bfc265bce": "서버가 실행 중이 아니면 이 휴대폰에서 시작합니다.", "7161c775bd96511c": "중지하는 중…", - "37d872a5b3197a9c": "서버 중지", "cb1738ace0e210bc": "T3 Code를 열 때 시작하는 옵션도 꺼집니다.", "9ec835322a87debf": "서버를 중지하지 못했습니다.", "e570c6dd0d4da7a6": "서버 시작", @@ -4311,7 +4344,6 @@ "7e072f3b5535dc99": "전체 화면 종료", "d3a4862f72c90c1e": "이 앱을 표시할 수 없습니다.", "ced684880c2e1961": "{server}이(가) {tool}을(를) 실행하도록 허용할까요?", - "908efcecc448d693": "허용", "6fe313bc90c0e6bc": "{server}의 링크를 열까요?", "f9a66fb70d32aa76": "열기", "b66fa23b5647b62d": "{server}에서 이 메시지를 보낼까요?", diff --git a/apps/mobile/src/i18n/translations/pt-BR.json b/apps/mobile/src/i18n/translations/pt-BR.json index d0b1e81787029..0d77099621ca9 100644 --- a/apps/mobile/src/i18n/translations/pt-BR.json +++ b/apps/mobile/src/i18n/translations/pt-BR.json @@ -2044,6 +2044,41 @@ "442c27456faccba6": "Nada registrado ainda.", "9283ee3217bd5d1c": "O T3 Code não está mais instalado neste telefone.", "09d24e558527565f": "A configuração ou uma atualização ainda está em execução.", + "a20b495b9e6f82b9": "Iniciando…", + "6e511dcc5ed962bd": "{step} (etapa {number} de {count})…", + "30ae6650acb0dd90": "Finalizando…", + "54e2d7d3bf126c73": "A etapa “{step}” falhou (código de saída {code}).", + "298863d82706d076": "Cancelado.", + "9a4ae113ecdcd0b3": "A configuração ou uma atualização já está em execução.", + "56d279713ee08c83": "Espere a configuração terminar primeiro.", + "08665a2cadb6587a": "O ambiente de execução no aparelho não está instalado.", + "34636513f5199a08": "O Ubuntu deste telefone está ausente ou danificado. Instale-o novamente.", + "cac2fe887623a958": "O servidor está rodando neste telefone.", + "37d872a5b3197a9c": "Parar servidor", + "b61fe9317746cf27": "O servidor não parou em {seconds} segundos.", + "9e73b459ff8bf4be": "O T3 Code não forneceu um link de pareamento.", + "b301007de518cf02": "Entrando no Claude…", + "3f0597c5c9903240": "O login terminou com o status {code}.", + "cd79c8e07f060d56": "Não foi possível acessar os servidores do Claude ({reason}). Verifique a conexão e entre novamente.", + "64132f8127c75283": "T3 Code neste telefone", + "c3a53a2b86ac1757": "Aparece enquanto o T3 Code instala, faz login ou roda o servidor neste telefone.", + "9558a82a33e2681f": "Permitir {access}?", + "908efcecc448d693": "Permitir", + "a5120a92dce4546a": "Não permitir", + "c9f284609e63581b": "Um agente ou outro dispositivo que usa o servidor deste telefone pediu isso.", + "c2689cec1d9130dd": "Um agente quer executar {command}. Toque para responder.", + "f7941eca2093cee0": "Um agente neste telefone quer acesso a {access}. Toque para responder ao aviso do Android.", + "24cc8c1e11dd55ad": "Permitir acesso às notificações", + "760ccd844fc9a71b": "Um agente neste telefone quer ler as notificações. Ative o T3 Code aqui.", + "018ed74bc3dc5f82": "Compartilhar a pedido de um agente", + "d9a5d4e4793372b0": "Ligar a pedido de um agente", + "cdbb31bca3749474": "Abrir um app a pedido de um agente", + "8d90e6b229b88ff4": "Abrir um link a pedido de um agente", + "99129cbcdfed683c": "Abrir a pedido de um agente", + "98e60862b9093324": "Notificações de agentes", + "a7bb8793da0d4f73": "Notificações publicadas pelos agentes deste telefone.", + "0d6635629a9c59c7": "Pedidos de agentes", + "6d8e43345cf3a34b": "Links, compartilhamentos e permissões que os agentes pedem enquanto o T3 Code não está na tela.", "0cf35ae8d7452516": "Não foi possível desligar o dispositivo", "94f8e4fd2497326d": "Versões das ferramentas de dispositivo", "84718257bae3bc62": "Tentar {host} novamente", @@ -2525,7 +2560,6 @@ "a90b525c07c15d93": "Pasta pessoal do Ubuntu", "88f626cdec11791d": "Navegar em {folder}", "79432ea87bc668b0": "O armazenamento do telefone não guarda permissões de arquivo nem links simbólicos, então mantenha os repositórios git na pasta pessoal do Ubuntu.", - "a20b495b9e6f82b9": "Iniciando…", "b036bc4620e2cf33": "Não inicia", "d3d0ea2b27711c0f": "Parado", "23065363f7148aa2": "{environment}, {state}", @@ -2540,7 +2574,6 @@ "8f7728969800e806": "Iniciar quando o T3 Code abrir", "7b65d74bfc265bce": "Inicia o servidor neste telefone se ele não estiver em execução.", "7161c775bd96511c": "Parando…", - "37d872a5b3197a9c": "Parar servidor", "cb1738ace0e210bc": "Também desativa o início quando o T3 Code abre.", "9ec835322a87debf": "Não foi possível parar o servidor.", "e570c6dd0d4da7a6": "Iniciar servidor", @@ -4311,7 +4344,6 @@ "7e072f3b5535dc99": "Sair da tela cheia", "d3a4862f72c90c1e": "Este app não pode ser exibido.", "ced684880c2e1961": "Permitir que {server} execute {tool}?", - "908efcecc448d693": "Permitir", "6fe313bc90c0e6bc": "Abrir um link de {server}?", "f9a66fb70d32aa76": "Abrir", "b66fa23b5647b62d": "Enviar esta mensagem de {server}?", diff --git a/apps/mobile/src/i18n/translations/ru.json b/apps/mobile/src/i18n/translations/ru.json index b28fc379935e6..3e650aed83193 100644 --- a/apps/mobile/src/i18n/translations/ru.json +++ b/apps/mobile/src/i18n/translations/ru.json @@ -2068,6 +2068,41 @@ "442c27456faccba6": "Журнал пока пуст.", "9283ee3217bd5d1c": "T3 Code больше не установлен на этом телефоне.", "09d24e558527565f": "Настройка или обновление ещё выполняется.", + "a20b495b9e6f82b9": "Запуск…", + "6e511dcc5ed962bd": "{step} (шаг {number} из {count})…", + "30ae6650acb0dd90": "Завершение…", + "54e2d7d3bf126c73": "Шаг «{step}» не выполнен (код выхода {code}).", + "298863d82706d076": "Отменено.", + "9a4ae113ecdcd0b3": "Настройка или обновление уже выполняется.", + "56d279713ee08c83": "Сначала дождитесь окончания настройки.", + "08665a2cadb6587a": "Среда выполнения на устройстве не установлена.", + "34636513f5199a08": "Ubuntu на этом телефоне отсутствует или повреждена. Установите её заново.", + "cac2fe887623a958": "Сервер работает на этом телефоне.", + "37d872a5b3197a9c": "Остановить сервер", + "b61fe9317746cf27": "Сервер не остановился за {seconds} с.", + "9e73b459ff8bf4be": "T3 Code не выдал ссылку для связывания.", + "b301007de518cf02": "Вход в Claude…", + "3f0597c5c9903240": "Вход завершился с кодом {code}.", + "cd79c8e07f060d56": "Не удалось связаться с серверами Claude ({reason}). Проверьте подключение и войдите снова.", + "64132f8127c75283": "T3 Code на этом телефоне", + "c3a53a2b86ac1757": "Показывается, пока T3 Code устанавливается, выполняет вход или запускает свой сервер на этом телефоне.", + "9558a82a33e2681f": "Разрешить «{access}»?", + "908efcecc448d693": "Разрешить", + "a5120a92dce4546a": "Запретить", + "c9f284609e63581b": "Запрос пришёл от агента или другого устройства, использующего сервер этого телефона.", + "c2689cec1d9130dd": "Агент хочет запустить {command}. Нажмите, чтобы ответить.", + "f7941eca2093cee0": "Агенту на этом телефоне нужен доступ: «{access}». Нажмите, чтобы ответить на запрос Android.", + "24cc8c1e11dd55ad": "Разрешить доступ к уведомлениям", + "760ccd844fc9a71b": "Агент на этом телефоне хочет читать уведомления. Включите здесь T3 Code.", + "018ed74bc3dc5f82": "Отправка от агента", + "d9a5d4e4793372b0": "Звонок от агента", + "cdbb31bca3749474": "Открытие приложения агентом", + "8d90e6b229b88ff4": "Открытие ссылки агентом", + "99129cbcdfed683c": "Открытие агентом", + "98e60862b9093324": "Уведомления агентов", + "a7bb8793da0d4f73": "Уведомления, которые публикуют агенты на этом телефоне.", + "0d6635629a9c59c7": "Запросы агентов", + "6d8e43345cf3a34b": "Ссылки, отправка и разрешения, которые запрашивают агенты, пока T3 Code не на экране.", "0cf35ae8d7452516": "Не удалось выключить устройство", "94f8e4fd2497326d": "Версии инструментов устройств", "84718257bae3bc62": "Повторить {host}", @@ -2577,7 +2612,6 @@ "a90b525c07c15d93": "Домашняя папка Ubuntu", "88f626cdec11791d": "Обзор: {folder}", "79432ea87bc668b0": "Память телефона не сохраняет права доступа к файлам и символические ссылки, поэтому храните git-репозитории в домашней папке Ubuntu.", - "a20b495b9e6f82b9": "Запуск…", "b036bc4620e2cf33": "Не запускается", "d3d0ea2b27711c0f": "Остановлен", "23065363f7148aa2": "{environment}, {state}", @@ -2592,7 +2626,6 @@ "8f7728969800e806": "Запускать при открытии T3 Code", "7b65d74bfc265bce": "Запускает сервер на этом телефоне, если он не работает.", "7161c775bd96511c": "Остановка…", - "37d872a5b3197a9c": "Остановить сервер", "cb1738ace0e210bc": "Также отключает запуск при открытии T3 Code.", "9ec835322a87debf": "Не удалось остановить сервер.", "e570c6dd0d4da7a6": "Запустить сервер", @@ -4365,7 +4398,6 @@ "7e072f3b5535dc99": "Выйти из полноэкранного режима", "d3a4862f72c90c1e": "Это приложение нельзя показать.", "ced684880c2e1961": "Разрешить {server} запустить {tool}?", - "908efcecc448d693": "Разрешить", "6fe313bc90c0e6bc": "Открыть ссылку из {server}?", "f9a66fb70d32aa76": "Открыть", "b66fa23b5647b62d": "Отправить это сообщение от {server}?", diff --git a/apps/mobile/src/i18n/translations/sv.json b/apps/mobile/src/i18n/translations/sv.json index 6d1c8f8630473..2c49a7f4ee38b 100644 --- a/apps/mobile/src/i18n/translations/sv.json +++ b/apps/mobile/src/i18n/translations/sv.json @@ -2044,6 +2044,41 @@ "442c27456faccba6": "Inget loggat än.", "9283ee3217bd5d1c": "T3 Code är inte längre installerat på den här telefonen.", "09d24e558527565f": "Konfigurationen eller en uppdatering körs fortfarande.", + "a20b495b9e6f82b9": "Startar…", + "6e511dcc5ed962bd": "{step} (steg {number} av {count})…", + "30ae6650acb0dd90": "Slutför…", + "54e2d7d3bf126c73": "Steget ”{step}” misslyckades (slutkod {code}).", + "298863d82706d076": "Avbrutet.", + "9a4ae113ecdcd0b3": "Konfigurationen eller en uppdatering körs redan.", + "56d279713ee08c83": "Vänta tills konfigurationen är klar först.", + "08665a2cadb6587a": "Körmiljön på enheten är inte installerad.", + "34636513f5199a08": "Ubuntu saknas eller är skadat på telefonen. Installera det igen.", + "cac2fe887623a958": "Servern körs på telefonen.", + "37d872a5b3197a9c": "Stoppa servern", + "b61fe9317746cf27": "Servern stoppades inte inom {seconds} sekunder.", + "9e73b459ff8bf4be": "T3 Code gav ingen parkopplingslänk.", + "b301007de518cf02": "Loggar in på Claude…", + "3f0597c5c9903240": "Inloggningen avslutades med status {code}.", + "cd79c8e07f060d56": "Det gick inte att nå Claudes servrar ({reason}). Kontrollera anslutningen och logga sedan in igen.", + "64132f8127c75283": "T3 Code på telefonen", + "c3a53a2b86ac1757": "Visas medan T3 Code installeras, loggar in eller kör sin server på telefonen.", + "9558a82a33e2681f": "Tillåta {access}?", + "908efcecc448d693": "Tillåt", + "a5120a92dce4546a": "Tillåt inte", + "c9f284609e63581b": "En agent eller en annan enhet som använder telefonens server bad om det här.", + "c2689cec1d9130dd": "En agent vill köra {command}. Tryck för att svara.", + "f7941eca2093cee0": "En agent på telefonen vill ha åtkomst till {access}. Tryck för att svara på Androids fråga.", + "24cc8c1e11dd55ad": "Tillåt aviseringsåtkomst", + "760ccd844fc9a71b": "En agent på telefonen vill läsa dess aviseringar. Aktivera T3 Code här.", + "018ed74bc3dc5f82": "Delning från en agent", + "d9a5d4e4793372b0": "Samtal från en agent", + "cdbb31bca3749474": "Öppna en app åt en agent", + "8d90e6b229b88ff4": "Öppna en länk åt en agent", + "99129cbcdfed683c": "Öppna åt en agent", + "98e60862b9093324": "Agentaviseringar", + "a7bb8793da0d4f73": "Aviseringar som agenter på telefonen publicerar.", + "0d6635629a9c59c7": "Förfrågningar från agenter", + "6d8e43345cf3a34b": "Länkar, delningar och behörigheter som agenter ber om medan T3 Code inte visas på skärmen.", "0cf35ae8d7452516": "Kunde inte stänga av enheten", "94f8e4fd2497326d": "Versioner av enhetsverktyg", "84718257bae3bc62": "Försök igen med {host}", @@ -2529,7 +2564,6 @@ "a90b525c07c15d93": "Ubuntu-hemkatalog", "88f626cdec11791d": "Bläddra i {folder}", "79432ea87bc668b0": "Telefonens lagring sparar inga filbehörigheter eller symboliska länkar, så lägg git-repon i Ubuntu-hemkatalogen.", - "a20b495b9e6f82b9": "Startar…", "b036bc4620e2cf33": "Kan inte starta", "d3d0ea2b27711c0f": "Stoppad", "23065363f7148aa2": "{environment}, {state}", @@ -2544,7 +2578,6 @@ "8f7728969800e806": "Starta när T3 Code öppnas", "7b65d74bfc265bce": "Startar servern på den här telefonen om den inte körs.", "7161c775bd96511c": "Stoppar…", - "37d872a5b3197a9c": "Stoppa servern", "cb1738ace0e210bc": "Stänger också av start när T3 Code öppnas.", "9ec835322a87debf": "Kunde inte stoppa servern.", "e570c6dd0d4da7a6": "Starta servern", @@ -4317,7 +4350,6 @@ "7e072f3b5535dc99": "Avsluta helskärm", "d3a4862f72c90c1e": "Appen kan inte visas.", "ced684880c2e1961": "Tillåta {server} att köra {tool}?", - "908efcecc448d693": "Tillåt", "6fe313bc90c0e6bc": "Öppna en länk från {server}?", "f9a66fb70d32aa76": "Öppna", "b66fa23b5647b62d": "Skicka det här meddelandet från {server}?", diff --git a/apps/mobile/src/i18n/translations/zh.json b/apps/mobile/src/i18n/translations/zh.json index 268f503c11552..23da8d2f40962 100644 --- a/apps/mobile/src/i18n/translations/zh.json +++ b/apps/mobile/src/i18n/translations/zh.json @@ -2046,6 +2046,41 @@ "442c27456faccba6": "尚无日志。", "9283ee3217bd5d1c": "这台手机上已不再安装 T3 Code。", "09d24e558527565f": "配置或更新仍在运行。", + "a20b495b9e6f82b9": "正在启动…", + "6e511dcc5ed962bd": "{step}(第 {number} 步,共 {count} 步)…", + "30ae6650acb0dd90": "正在完成…", + "54e2d7d3bf126c73": "步骤“{step}”失败(退出代码 {code})。", + "298863d82706d076": "已取消。", + "9a4ae113ecdcd0b3": "配置或更新已在运行。", + "56d279713ee08c83": "请先等待配置完成。", + "08665a2cadb6587a": "设备上的运行环境尚未安装。", + "34636513f5199a08": "这台手机上的 Ubuntu 缺失或已损坏。请重新安装。", + "cac2fe887623a958": "服务器正在这台手机上运行。", + "37d872a5b3197a9c": "停止服务器", + "b61fe9317746cf27": "服务器未能在 {seconds} 秒内停止。", + "9e73b459ff8bf4be": "T3 Code 没有给出配对链接。", + "b301007de518cf02": "正在登录 Claude…", + "3f0597c5c9903240": "登录已退出,状态码为 {code}。", + "cd79c8e07f060d56": "无法连接 Claude 的服务器({reason})。请检查网络连接,然后重新登录。", + "64132f8127c75283": "这台手机上的 T3 Code", + "c3a53a2b86ac1757": "T3 Code 在这台手机上安装、登录或运行服务器时显示。", + "9558a82a33e2681f": "允许{access}?", + "908efcecc448d693": "允许", + "a5120a92dce4546a": "不允许", + "c9f284609e63581b": "由智能体或使用这台手机服务器的其他设备发起。", + "c2689cec1d9130dd": "智能体想要运行 {command}。点按以回应。", + "f7941eca2093cee0": "这台手机上的智能体想要使用{access}。点按以回应 Android 的提示。", + "24cc8c1e11dd55ad": "允许访问通知", + "760ccd844fc9a71b": "这台手机上的智能体想要读取通知。请在此处开启 T3 Code。", + "018ed74bc3dc5f82": "智能体请求分享", + "d9a5d4e4793372b0": "智能体请求拨打电话", + "cdbb31bca3749474": "智能体请求打开应用", + "8d90e6b229b88ff4": "智能体请求打开链接", + "99129cbcdfed683c": "智能体请求打开", + "98e60862b9093324": "智能体通知", + "a7bb8793da0d4f73": "这台手机上的智能体发布的通知。", + "0d6635629a9c59c7": "来自智能体的请求", + "6d8e43345cf3a34b": "T3 Code 不在屏幕上时,智能体请求的链接、分享和权限。", "0cf35ae8d7452516": "无法关闭设备", "94f8e4fd2497326d": "设备工具版本", "84718257bae3bc62": "重试 {host}", @@ -2526,7 +2561,6 @@ "a90b525c07c15d93": "Ubuntu 主目录", "88f626cdec11791d": "浏览 {folder}", "79432ea87bc668b0": "手机存储不保留文件权限或符号链接,因此请将 git 仓库放在 Ubuntu 主目录中。", - "a20b495b9e6f82b9": "正在启动…", "b036bc4620e2cf33": "无法启动", "d3d0ea2b27711c0f": "已停止", "23065363f7148aa2": "{environment},{state}", @@ -2541,7 +2575,6 @@ "8f7728969800e806": "打开 T3 Code 时启动", "7b65d74bfc265bce": "如果服务器未运行,则在这台手机上启动它。", "7161c775bd96511c": "正在停止…", - "37d872a5b3197a9c": "停止服务器", "cb1738ace0e210bc": "同时关闭“打开 T3 Code 时启动”。", "9ec835322a87debf": "无法停止服务器。", "e570c6dd0d4da7a6": "启动服务器", @@ -4314,7 +4347,6 @@ "7e072f3b5535dc99": "退出全屏", "d3a4862f72c90c1e": "无法显示此应用。", "ced684880c2e1961": "允许 {server} 运行 {tool} 吗?", - "908efcecc448d693": "允许", "6fe313bc90c0e6bc": "打开来自 {server} 的链接?", "f9a66fb70d32aa76": "打开", "b66fa23b5647b62d": "要发送这条来自 {server} 的消息吗?", From da9fa97c9684e7f06c99352382a066b09ac0b782 Mon Sep 17 00:00:00 2001 From: Tim Biggs Date: Thu, 19 Nov 2026 09:41:01 +0000 Subject: [PATCH 2/2] fix(mobile): render native text when shown and keep agent errors English The foreground notification and approval dialog render their text when shown, and the notification redraws when the app sends new text, so a cold start or a language switch no longer leaves English or mixed text. Bridge errors name channels and targets in English. Co-Authored-By: Claude Opus 5.5 --- .../modules/t3deviceruntime/AccessApproval.kt | 29 +++++++++++-------- .../modules/t3deviceruntime/AndroidBridge.kt | 15 +++++++--- .../modules/t3deviceruntime/AppIntents.kt | 4 +-- .../t3deviceruntime/DeviceRuntimeService.kt | 13 ++++++--- .../t3deviceruntime/T3DeviceRuntimeModule.kt | 15 +++++++--- .../features/device-runtime/native-text.ts | 2 ++ apps/mobile/src/i18n/translations/de.json | 1 + apps/mobile/src/i18n/translations/en.json | 1 + apps/mobile/src/i18n/translations/es.json | 5 ++-- apps/mobile/src/i18n/translations/fr.json | 5 ++-- apps/mobile/src/i18n/translations/ja.json | 1 + apps/mobile/src/i18n/translations/ko.json | 1 + apps/mobile/src/i18n/translations/pt-BR.json | 5 ++-- apps/mobile/src/i18n/translations/ru.json | 1 + apps/mobile/src/i18n/translations/sv.json | 5 ++-- apps/mobile/src/i18n/translations/zh.json | 1 + 16 files changed, 70 insertions(+), 34 deletions(-) diff --git a/apps/mobile/modules/t3-device-runtime/android/src/main/java/expo/modules/t3deviceruntime/AccessApproval.kt b/apps/mobile/modules/t3-device-runtime/android/src/main/java/expo/modules/t3deviceruntime/AccessApproval.kt index dba462d041c83..1073868fc585b 100644 --- a/apps/mobile/modules/t3-device-runtime/android/src/main/java/expo/modules/t3deviceruntime/AccessApproval.kt +++ b/apps/mobile/modules/t3-device-runtime/android/src/main/java/expo/modules/t3deviceruntime/AccessApproval.kt @@ -39,7 +39,21 @@ internal fun approvalDetails(body: JSONObject): String { return details } -private class WaitingApproval(val title: String, val message: String, val answer: CompletableFuture) +private class WaitingApproval( + val category: AccessCategory, + val command: String, + val details: String, + val answer: CompletableFuture, +) { + // Rendered when the dialog opens, so it's in the language the buttons are. + fun title() = localized("Allow {access}?", "access" to localized(category.label)) + + fun message() = buildString { + append(AgentAccess.commandName(command)) + if (details.isNotEmpty()) append("\n\n$details") + append("\n\n" + localized("An agent or another device using this phone's server asked for this.")) + } +} /** * One prompt per request, so an answer can't also cover a command the user never saw. What the @@ -77,7 +91,7 @@ internal object AccessApproval { dismiss: () -> Unit, ): Boolean { val id = UUID.randomUUID().toString() - val waiting = waitingFor(category, command, details) + val waiting = WaitingApproval(category, command, details, CompletableFuture()) pending[id] = waiting try { show( @@ -98,16 +112,7 @@ internal object AccessApproval { } } - private fun waitingFor(category: AccessCategory, command: String, details: String): WaitingApproval { - val message = buildString { - append(AgentAccess.commandName(command)) - if (details.isNotEmpty()) append("\n\n$details") - append("\n\n" + localized("An agent or another device using this phone's server asked for this.")) - } - return WaitingApproval(localized("Allow {access}?", "access" to localized(category.label)), message, CompletableFuture()) - } - - fun prompt(id: String): Pair? = pending[id]?.let { it.title to it.message } + fun prompt(id: String): Pair? = pending[id]?.let { it.title() to it.message() } fun answer(id: String, allowed: Boolean) { pending[id]?.answer?.complete(allowed) diff --git a/apps/mobile/modules/t3-device-runtime/android/src/main/java/expo/modules/t3deviceruntime/AndroidBridge.kt b/apps/mobile/modules/t3-device-runtime/android/src/main/java/expo/modules/t3deviceruntime/AndroidBridge.kt index a2327fddb71b4..ea9c5e6a84f4a 100644 --- a/apps/mobile/modules/t3-device-runtime/android/src/main/java/expo/modules/t3deviceruntime/AndroidBridge.kt +++ b/apps/mobile/modules/t3-device-runtime/android/src/main/java/expo/modules/t3deviceruntime/AndroidBridge.kt @@ -318,7 +318,9 @@ class AndroidBridge private constructor(context: Context, private val rootfs: Fi private fun am(body: JSONObject): Any? { val intent = appIntent(context, body) return when (val mode = body.getString("mode")) { - "start" -> launchIntent(context, intent).let { startOrNotify(it, localized("Open an app from an agent"), describeIntent(it)) } + "start" -> launchIntent(context, intent).let { + startOrNotify(it, localized("Open an app from an agent"), describeIntent(it, localized("this intent")), describeIntent(it)) + } "broadcast" -> { requireTarget(intent) context.sendBroadcast(intent) @@ -474,6 +476,7 @@ class AndroidBridge private constructor(context: Context, private val rootfs: Fi AgentAccess.notificationAccessIntent(context), localized("Allow notification access"), localized("An agent on this phone wants to read its notifications. Turn on T3 Code here."), + "the notification access settings", ) throw BridgeError( "Android hasn't given T3 Code notification access. The user can turn it on in the settings page " + @@ -508,13 +511,14 @@ class AndroidBridge private constructor(context: Context, private val rootfs: Fi } /** Android blocks activity starts from the background, but a notification's tap can start one. */ - private fun startOrNotify(intent: Intent, title: String, text: String): Any? { + /** [subject] names the target in English for the agent's error; [text] is the notification body. */ + private fun startOrNotify(intent: Intent, title: String, text: String, subject: String = text): Any? { intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK) if (onScreen()) { try { context.startActivity(intent) } catch (error: ActivityNotFoundException) { - throw BridgeError("No app on this phone opens $text") + throw BridgeError("No app on this phone opens $subject") } return null } @@ -608,7 +612,10 @@ class AndroidBridge private constructor(context: Context, private val rootfs: Fi ) val blocked = manager.getNotificationChannel(channel) ?.takeIf { it.importance == NotificationManager.IMPORTANCE_NONE } - if (blocked != null) throw BridgeError("T3 Code's \"${blocked.name}\" notifications are turned off.") + if (blocked != null) { + val name = if (channel == REQUEST_CHANNEL) "Requests from agents" else "Agent notifications" + throw BridgeError("T3 Code's \"$name\" notifications are turned off.") + } val icon = context.resources.getIdentifier("notification_icon", "drawable", context.packageName) .takeIf { it != 0 } ?: context.applicationInfo.icon val notification = NotificationCompat.Builder(context, channel) diff --git a/apps/mobile/modules/t3-device-runtime/android/src/main/java/expo/modules/t3deviceruntime/AppIntents.kt b/apps/mobile/modules/t3-device-runtime/android/src/main/java/expo/modules/t3deviceruntime/AppIntents.kt index becb1551ef733..daee481bfb8de 100644 --- a/apps/mobile/modules/t3-device-runtime/android/src/main/java/expo/modules/t3deviceruntime/AppIntents.kt +++ b/apps/mobile/modules/t3-device-runtime/android/src/main/java/expo/modules/t3deviceruntime/AppIntents.kt @@ -58,8 +58,8 @@ internal fun launchIntent(context: Context, intent: Intent): Intent { } /** What a notification or error names the intent by. */ -internal fun describeIntent(intent: Intent): String = - intent.component?.flattenToShortString() ?: intent.`package` ?: intent.dataString ?: intent.action ?: "this intent" +internal fun describeIntent(intent: Intent, fallback: String = "this intent"): String = + intent.component?.flattenToShortString() ?: intent.`package` ?: intent.dataString ?: intent.action ?: fallback /** A broadcast names its app, so one can't reach every app that listens for its action. */ internal fun requireTarget(intent: Intent) { diff --git a/apps/mobile/modules/t3-device-runtime/android/src/main/java/expo/modules/t3deviceruntime/DeviceRuntimeService.kt b/apps/mobile/modules/t3-device-runtime/android/src/main/java/expo/modules/t3deviceruntime/DeviceRuntimeService.kt index 9012464898b6f..3242a0491dbfe 100644 --- a/apps/mobile/modules/t3-device-runtime/android/src/main/java/expo/modules/t3deviceruntime/DeviceRuntimeService.kt +++ b/apps/mobile/modules/t3-device-runtime/android/src/main/java/expo/modules/t3deviceruntime/DeviceRuntimeService.kt @@ -37,10 +37,11 @@ enum class Hold { Job, Login, Server } * waits on the browser, or the server would stall as soon as the user switched apps. */ object RuntimeForeground { - private val holds = sortedMapOf() + private val holds = sortedMapOf String>() @Volatile internal var service: DeviceRuntimeService? = null - fun hold(context: Context, hold: Hold, text: String) { + /** [text] renders each time the notification is shown, in the app's language then. */ + fun hold(context: Context, hold: Hold, text: () -> String) { val running = synchronized(this) { holds[hold] = text service @@ -57,8 +58,12 @@ object RuntimeForeground { running?.refresh() } + fun refresh() { + service?.refresh() + } + @Synchronized - internal fun current(): Pair? = holds.entries.firstOrNull()?.toPair() + internal fun current(): Pair? = holds.entries.firstOrNull()?.let { it.key to it.value() } } /** The T3 server inside the on-device runtime, kept alive by the foreground service. */ @@ -80,7 +85,7 @@ object DeviceServer { @Synchronized private fun launch(context: Context, port: Int, retry: Boolean) { if (running) return - RuntimeForeground.hold(context, Hold.Server, localized("The server is running on this phone.")) + RuntimeForeground.hold(context, Hold.Server) { localized("The server is running on this phone.") } val log = logFile(context) val bridge = AndroidBridge.start(context) val started = try { diff --git a/apps/mobile/modules/t3-device-runtime/android/src/main/java/expo/modules/t3deviceruntime/T3DeviceRuntimeModule.kt b/apps/mobile/modules/t3-device-runtime/android/src/main/java/expo/modules/t3deviceruntime/T3DeviceRuntimeModule.kt index 6e0861404f787..5e5d20dba325f 100644 --- a/apps/mobile/modules/t3-device-runtime/android/src/main/java/expo/modules/t3deviceruntime/T3DeviceRuntimeModule.kt +++ b/apps/mobile/modules/t3-device-runtime/android/src/main/java/expo/modules/t3deviceruntime/T3DeviceRuntimeModule.kt @@ -51,7 +51,10 @@ class T3DeviceRuntimeModule : Module() { Name("T3DeviceRuntime") Events("onJob", "onLogin") - Function("setText") { translations: Map -> nativeTranslations = translations } + Function("setText") { translations: Map -> + nativeTranslations = translations + RuntimeForeground.refresh() + } Function("getStatus") { val runtime = DeviceRuntime(requireContext()) {} @@ -201,7 +204,7 @@ class T3DeviceRuntimeModule : Module() { } login = created // The browser takes the screen while the user signs in; Claude has to keep running. - RuntimeForeground.hold(context, Hold.Login, localized("Signing in to Claude…")) + RuntimeForeground.hold(context, Hold.Login) { localized("Signing in to Claude…") } try { created.start() } catch (error: Throwable) { @@ -267,7 +270,7 @@ class T3DeviceRuntimeModule : Module() { } synchronized(jobLog) { jobLog.clear() } // Held from here, while T3 Code is on screen: Android won't start it from the background. - RuntimeForeground.hold(context, Hold.Job, localized("Starting…")) + RuntimeForeground.hold(context, Hold.Job) { localized("Starting…") } jobs.execute { var failure: String? = null try { @@ -301,7 +304,11 @@ class T3DeviceRuntimeModule : Module() { private fun setJobState(kind: String, running: Boolean, step: JobStep?, index: Int, count: Int, error: String?) { if (running && step != null) { val context = appContext.reactContext - if (context != null) RuntimeForeground.hold(context, Hold.Job, localized("{step} (step {number} of {count})…", "step" to localized(step.title), "number" to index + 1, "count" to count)) + if (context != null) { + RuntimeForeground.hold(context, Hold.Job) { + localized("{step} (step {number} of {count})…", "step" to localized(step.title), "number" to index + 1, "count" to count) + } + } } val state = mapOf( "kind" to kind, diff --git a/apps/mobile/src/features/device-runtime/native-text.ts b/apps/mobile/src/features/device-runtime/native-text.ts index 1810d6e8f6c77..a66094884bcee 100644 --- a/apps/mobile/src/features/device-runtime/native-text.ts +++ b/apps/mobile/src/features/device-runtime/native-text.ts @@ -57,6 +57,8 @@ const NATIVE_TEXT: ReadonlyArray = [ msg("Open an app from an agent"), msg("Open a link from an agent"), msg("Open from an agent"), + // The notification body for an `am start` that names no app, link or action. + msg("this intent"), msg("Agent notifications"), msg("Notifications that agents on this phone post."), msg("Requests from agents"), diff --git a/apps/mobile/src/i18n/translations/de.json b/apps/mobile/src/i18n/translations/de.json index da1d0485575dc..23e3b05aa81d5 100644 --- a/apps/mobile/src/i18n/translations/de.json +++ b/apps/mobile/src/i18n/translations/de.json @@ -2075,6 +2075,7 @@ "cdbb31bca3749474": "Agent möchte eine App öffnen", "8d90e6b229b88ff4": "Agent möchte einen Link öffnen", "99129cbcdfed683c": "Agent möchte etwas öffnen", + "c5f5a8c95fc52245": "dieser Intent", "98e60862b9093324": "Agent-Benachrichtigungen", "a7bb8793da0d4f73": "Benachrichtigungen, die Agenten auf diesem Telefon senden.", "0d6635629a9c59c7": "Anfragen von Agenten", diff --git a/apps/mobile/src/i18n/translations/en.json b/apps/mobile/src/i18n/translations/en.json index 64e920d6d6b67..c5675ccdaff7e 100644 --- a/apps/mobile/src/i18n/translations/en.json +++ b/apps/mobile/src/i18n/translations/en.json @@ -2075,6 +2075,7 @@ "cdbb31bca3749474": "Open an app from an agent", "8d90e6b229b88ff4": "Open a link from an agent", "99129cbcdfed683c": "Open from an agent", + "c5f5a8c95fc52245": "this intent", "98e60862b9093324": "Agent notifications", "a7bb8793da0d4f73": "Notifications that agents on this phone post.", "0d6635629a9c59c7": "Requests from agents", diff --git a/apps/mobile/src/i18n/translations/es.json b/apps/mobile/src/i18n/translations/es.json index 6ddf851d8e204..51a106766ecb9 100644 --- a/apps/mobile/src/i18n/translations/es.json +++ b/apps/mobile/src/i18n/translations/es.json @@ -2062,12 +2062,12 @@ "cd79c8e07f060d56": "No se pudo contactar con los servidores de Claude ({reason}). Comprueba la conexión y vuelve a iniciar sesión.", "64132f8127c75283": "T3 Code en este teléfono", "c3a53a2b86ac1757": "Se muestra mientras T3 Code se instala, inicia sesión o ejecuta su servidor en este teléfono.", - "9558a82a33e2681f": "¿Permitir {access}?", + "9558a82a33e2681f": "¿Permitir «{access}»?", "908efcecc448d693": "Permitir", "a5120a92dce4546a": "No permitir", "c9f284609e63581b": "Lo pidió un agente u otro dispositivo que usa el servidor de este teléfono.", "c2689cec1d9130dd": "Un agente quiere ejecutar {command}. Toca para responder.", - "f7941eca2093cee0": "Un agente de este teléfono quiere acceso a {access}. Toca para responder al aviso de Android.", + "f7941eca2093cee0": "Un agente de este teléfono quiere acceso a «{access}». Toca para responder al aviso de Android.", "24cc8c1e11dd55ad": "Permitir acceso a notificaciones", "760ccd844fc9a71b": "Un agente de este teléfono quiere leer sus notificaciones. Activa T3 Code aquí.", "018ed74bc3dc5f82": "Compartir desde un agente", @@ -2075,6 +2075,7 @@ "cdbb31bca3749474": "Abrir una app desde un agente", "8d90e6b229b88ff4": "Abrir un enlace desde un agente", "99129cbcdfed683c": "Abrir desde un agente", + "c5f5a8c95fc52245": "este intent", "98e60862b9093324": "Notificaciones de agentes", "a7bb8793da0d4f73": "Notificaciones que publican los agentes de este teléfono.", "0d6635629a9c59c7": "Solicitudes de agentes", diff --git a/apps/mobile/src/i18n/translations/fr.json b/apps/mobile/src/i18n/translations/fr.json index 520b070db6a68..cf22e5544dc6e 100644 --- a/apps/mobile/src/i18n/translations/fr.json +++ b/apps/mobile/src/i18n/translations/fr.json @@ -2062,12 +2062,12 @@ "cd79c8e07f060d56": "Impossible de joindre les serveurs de Claude ({reason}). Vérifiez la connexion, puis reconnectez-vous.", "64132f8127c75283": "T3 Code sur ce téléphone", "c3a53a2b86ac1757": "Affichée pendant que T3 Code s’installe, se connecte ou fait tourner son serveur sur ce téléphone.", - "9558a82a33e2681f": "Autoriser {access} ?", + "9558a82a33e2681f": "Autoriser « {access} » ?", "908efcecc448d693": "Autoriser", "a5120a92dce4546a": "Ne pas autoriser", "c9f284609e63581b": "Un agent ou un autre appareil utilisant le serveur de ce téléphone l’a demandé.", "c2689cec1d9130dd": "Un agent veut exécuter {command}. Touchez pour répondre.", - "f7941eca2093cee0": "Un agent sur ce téléphone demande l’accès à {access}. Touchez pour répondre à la demande d’Android.", + "f7941eca2093cee0": "Un agent sur ce téléphone demande l’accès à la catégorie « {access} ». Touchez pour répondre à la demande d’Android.", "24cc8c1e11dd55ad": "Autoriser l’accès aux notifications", "760ccd844fc9a71b": "Un agent sur ce téléphone veut lire ses notifications. Activez T3 Code ici.", "018ed74bc3dc5f82": "Partage par un agent", @@ -2075,6 +2075,7 @@ "cdbb31bca3749474": "Ouverture d’une app par un agent", "8d90e6b229b88ff4": "Ouverture d’un lien par un agent", "99129cbcdfed683c": "Ouverture par un agent", + "c5f5a8c95fc52245": "cet intent", "98e60862b9093324": "Notifications des agents", "a7bb8793da0d4f73": "Notifications publiées par les agents de ce téléphone.", "0d6635629a9c59c7": "Demandes des agents", diff --git a/apps/mobile/src/i18n/translations/ja.json b/apps/mobile/src/i18n/translations/ja.json index 521cb52f931c6..b69d53f34a48a 100644 --- a/apps/mobile/src/i18n/translations/ja.json +++ b/apps/mobile/src/i18n/translations/ja.json @@ -2074,6 +2074,7 @@ "cdbb31bca3749474": "エージェントがアプリを開こうとしています", "8d90e6b229b88ff4": "エージェントがリンクを開こうとしています", "99129cbcdfed683c": "エージェントが開こうとしています", + "c5f5a8c95fc52245": "このインテント", "98e60862b9093324": "エージェントの通知", "a7bb8793da0d4f73": "このスマートフォンのエージェントが投稿する通知です。", "0d6635629a9c59c7": "エージェントからのリクエスト", diff --git a/apps/mobile/src/i18n/translations/ko.json b/apps/mobile/src/i18n/translations/ko.json index 28183741a90c8..8f1c713556c88 100644 --- a/apps/mobile/src/i18n/translations/ko.json +++ b/apps/mobile/src/i18n/translations/ko.json @@ -2075,6 +2075,7 @@ "cdbb31bca3749474": "에이전트의 앱 열기 요청", "8d90e6b229b88ff4": "에이전트의 링크 열기 요청", "99129cbcdfed683c": "에이전트의 열기 요청", + "c5f5a8c95fc52245": "이 인텐트", "98e60862b9093324": "에이전트 알림", "a7bb8793da0d4f73": "이 휴대폰의 에이전트가 게시하는 알림입니다.", "0d6635629a9c59c7": "에이전트 요청", diff --git a/apps/mobile/src/i18n/translations/pt-BR.json b/apps/mobile/src/i18n/translations/pt-BR.json index 0d77099621ca9..d922760f06a36 100644 --- a/apps/mobile/src/i18n/translations/pt-BR.json +++ b/apps/mobile/src/i18n/translations/pt-BR.json @@ -2062,12 +2062,12 @@ "cd79c8e07f060d56": "Não foi possível acessar os servidores do Claude ({reason}). Verifique a conexão e entre novamente.", "64132f8127c75283": "T3 Code neste telefone", "c3a53a2b86ac1757": "Aparece enquanto o T3 Code instala, faz login ou roda o servidor neste telefone.", - "9558a82a33e2681f": "Permitir {access}?", + "9558a82a33e2681f": "Permitir “{access}”?", "908efcecc448d693": "Permitir", "a5120a92dce4546a": "Não permitir", "c9f284609e63581b": "Um agente ou outro dispositivo que usa o servidor deste telefone pediu isso.", "c2689cec1d9130dd": "Um agente quer executar {command}. Toque para responder.", - "f7941eca2093cee0": "Um agente neste telefone quer acesso a {access}. Toque para responder ao aviso do Android.", + "f7941eca2093cee0": "Um agente neste telefone quer acesso a “{access}”. Toque para responder ao aviso do Android.", "24cc8c1e11dd55ad": "Permitir acesso às notificações", "760ccd844fc9a71b": "Um agente neste telefone quer ler as notificações. Ative o T3 Code aqui.", "018ed74bc3dc5f82": "Compartilhar a pedido de um agente", @@ -2075,6 +2075,7 @@ "cdbb31bca3749474": "Abrir um app a pedido de um agente", "8d90e6b229b88ff4": "Abrir um link a pedido de um agente", "99129cbcdfed683c": "Abrir a pedido de um agente", + "c5f5a8c95fc52245": "este intent", "98e60862b9093324": "Notificações de agentes", "a7bb8793da0d4f73": "Notificações publicadas pelos agentes deste telefone.", "0d6635629a9c59c7": "Pedidos de agentes", diff --git a/apps/mobile/src/i18n/translations/ru.json b/apps/mobile/src/i18n/translations/ru.json index 3e650aed83193..d73da762aa491 100644 --- a/apps/mobile/src/i18n/translations/ru.json +++ b/apps/mobile/src/i18n/translations/ru.json @@ -2099,6 +2099,7 @@ "cdbb31bca3749474": "Открытие приложения агентом", "8d90e6b229b88ff4": "Открытие ссылки агентом", "99129cbcdfed683c": "Открытие агентом", + "c5f5a8c95fc52245": "этот интент", "98e60862b9093324": "Уведомления агентов", "a7bb8793da0d4f73": "Уведомления, которые публикуют агенты на этом телефоне.", "0d6635629a9c59c7": "Запросы агентов", diff --git a/apps/mobile/src/i18n/translations/sv.json b/apps/mobile/src/i18n/translations/sv.json index 2c49a7f4ee38b..37520e0c80224 100644 --- a/apps/mobile/src/i18n/translations/sv.json +++ b/apps/mobile/src/i18n/translations/sv.json @@ -2062,12 +2062,12 @@ "cd79c8e07f060d56": "Det gick inte att nå Claudes servrar ({reason}). Kontrollera anslutningen och logga sedan in igen.", "64132f8127c75283": "T3 Code på telefonen", "c3a53a2b86ac1757": "Visas medan T3 Code installeras, loggar in eller kör sin server på telefonen.", - "9558a82a33e2681f": "Tillåta {access}?", + "9558a82a33e2681f": "Tillåta ”{access}”?", "908efcecc448d693": "Tillåt", "a5120a92dce4546a": "Tillåt inte", "c9f284609e63581b": "En agent eller en annan enhet som använder telefonens server bad om det här.", "c2689cec1d9130dd": "En agent vill köra {command}. Tryck för att svara.", - "f7941eca2093cee0": "En agent på telefonen vill ha åtkomst till {access}. Tryck för att svara på Androids fråga.", + "f7941eca2093cee0": "En agent på telefonen vill ha åtkomst till ”{access}”. Tryck för att svara på Androids fråga.", "24cc8c1e11dd55ad": "Tillåt aviseringsåtkomst", "760ccd844fc9a71b": "En agent på telefonen vill läsa dess aviseringar. Aktivera T3 Code här.", "018ed74bc3dc5f82": "Delning från en agent", @@ -2075,6 +2075,7 @@ "cdbb31bca3749474": "Öppna en app åt en agent", "8d90e6b229b88ff4": "Öppna en länk åt en agent", "99129cbcdfed683c": "Öppna åt en agent", + "c5f5a8c95fc52245": "denna intent", "98e60862b9093324": "Agentaviseringar", "a7bb8793da0d4f73": "Aviseringar som agenter på telefonen publicerar.", "0d6635629a9c59c7": "Förfrågningar från agenter", diff --git a/apps/mobile/src/i18n/translations/zh.json b/apps/mobile/src/i18n/translations/zh.json index 23da8d2f40962..55a2fc3fcb32f 100644 --- a/apps/mobile/src/i18n/translations/zh.json +++ b/apps/mobile/src/i18n/translations/zh.json @@ -2077,6 +2077,7 @@ "cdbb31bca3749474": "智能体请求打开应用", "8d90e6b229b88ff4": "智能体请求打开链接", "99129cbcdfed683c": "智能体请求打开", + "c5f5a8c95fc52245": "此 Intent", "98e60862b9093324": "智能体通知", "a7bb8793da0d4f73": "这台手机上的智能体发布的通知。", "0d6635629a9c59c7": "来自智能体的请求",