fix(suite-common): language change based on suite during on-boarding

This commit is contained in:
karliatto
2025-10-30 16:21:57 +01:00
parent a1f83fec7e
commit 94de17f99c

View File

@@ -98,10 +98,15 @@ export const firmwareUpdate = createThunk<
btcOnly: toBitcoinOnlyFirmware,
binary,
baseUrl,
// Firmware language should only be set during the initial firmware installation.
language: device.firmware === 'none' ? targetTranslationLanguage : undefined,
});
// Firmware language should only be set during the initial firmware installation.
if (device.firmware === 'none' && targetTranslationLanguage) {
await TrezorConnect.changeLanguage({
language: targetTranslationLanguage,
});
}
const targetProperties = binary
? {}
: {