mirror of
https://github.com/trezor/trezor-suite.git
synced 2026-03-23 07:37:10 +01:00
fix(suite-common): language change based on suite during on-boarding
This commit is contained in:
@@ -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
|
||||
? {}
|
||||
: {
|
||||
|
||||
Reference in New Issue
Block a user