diff --git a/openpilot/starpilot/galaxy/web/js/starport.js b/openpilot/starpilot/galaxy/web/js/starport.js index 956573e2af..0afbac9db6 100644 --- a/openpilot/starpilot/galaxy/web/js/starport.js +++ b/openpilot/starpilot/galaxy/web/js/starport.js @@ -108,8 +108,8 @@ const PAIR_UI = `

{{ selected.name }}Used for Android Auto

-

Pairing canceled. Start again when your car is ready.

-

The pairing window ended without choosing a car. Try again when your car’s pairing screen is open.

+

Pairing canceled. Start again when your {{ deviceWord }} is ready.

+

The pairing window ended without choosing a {{ deviceWord }}. Try again when your {{ adapterSetup ? 'adapter is in pairing mode' : 'car’s pairing screen is open' }}.

  1. @@ -118,14 +118,14 @@ const PAIR_UI = ` {{ step.label }}
-

{{ pairing.discovering ? "Searching for nearby cars and adapters…" : "Choose your car or wireless adapter below." }}

+

{{ pairing.discovering ? "Searching for your " + deviceWord + "…" : "Choose your " + deviceWord + " below." }}

Approved {{ pairing.receiver?.name }}. Finishing Bluetooth pairing…

Pairing with {{ pairing.receiver?.name || 'the selected device' }}…

Connecting to {{ pairing.receiver?.name || 'the selected device' }}…

{{ pairing.receiver?.name || 'Device' }} {{ pairing.state === 'connected' ? 'connected' : 'paired' }}.

{{ pairing.error }}
{{ pairing.receiver.name }} -

{{ pairing.prompt.kind === 'confirmation' ? 'Check that this code matches your car, then confirm.' : - pairing.prompt.kind === 'pin' ? 'Enter the PIN shown by your car.' : - pairing.prompt.kind === 'passkey' ? 'Enter your car’s passkey.' : - pairing.prompt.kind === 'authorization' ? 'Allow this car to pair?' : 'Enter this code in your car.' }}

+

{{ pairing.prompt.kind === 'confirmation' ? 'Check that this code matches your ' + deviceWord + ', then confirm.' : + pairing.prompt.kind === 'pin' ? 'Enter the PIN shown by your ' + deviceWord + '.' : + pairing.prompt.kind === 'passkey' ? 'Enter your ' + deviceWord + '’s passkey.' : + pairing.prompt.kind === 'authorization' ? 'Allow this ' + deviceWord + ' to pair?' : 'Enter this code in your ' + deviceWord + '.' }}

{{ pairing.prompt.value }} + :inputmode="pairing.prompt.kind === 'passkey' ? 'numeric' : 'text'" :aria-label="pairing.prompt.kind === 'pin' ? (adapterSetup ? 'Adapter' : 'Car') + ' PIN' : (adapterSetup ? 'Adapter' : 'Car') + ' passkey'" v-model="pairValue" />
@@ -653,6 +653,7 @@ export const StarPortPage = { }, carType() { return this.runtime?.car_type || (this.wired ? "usb" : this.app ? "app" : "builtin") }, adapterSetup() { return this.carType === "adapter" }, + deviceWord() { return this.adapterSetup ? "adapter" : "car" }, pairsHere() { return this.carType === "builtin" || this.carType === "adapter" }, findLabel() { return this.adapterSetup ? "adapter" : "car" }, carTypeLabels() { return { ...CAR_TYPES, app: this.app ? `App (${this.app})` : CAR_TYPES.app } }, @@ -752,9 +753,9 @@ export const StarPortPage = { const steps = [ `Start the search${this.starting ? "…" : ""}`, `Put your ${what} in pairing mode, then pick it from the list`, - this.pairing?.prompt ? "Confirm the code on both screens" : "Pair with your device", + this.pairing?.prompt ? "Confirm the code on both screens" : `Pair with your ${what}`, "Finish Bluetooth pairing", - "Finish connecting to your device" + `Finish connecting to your ${what}` ] return steps.map((label, index) => ({ label, status: index < rank ? "done" : index === rank ? (failed ? "failed" : "active") : "pending" })) },