FIX - stabilize VaultX wallet key actions

Keep copy and share labels contained inside the profile card and cover partial locale payloads with a regression test.
This commit is contained in:
smx.pusha
2026-08-18 12:16:57 +02:00
parent efa1ae523c
commit d4e5526d16
2 changed files with 25 additions and 2 deletions
+12
View File
@@ -70,6 +70,18 @@ describe('phone locale fallback', () => {
expect(phone.t('Apps.messages.seekAudio')).toBe('Seek Audio')
})
it('keeps VaultX wallet key actions translated with a partial server locale', () => {
const phone = usePhoneStore()
phone.open({ locales: { Apps: { crypto: { name: 'VaultX' } } } })
expect(phone.t('Apps.crypto.profile.walletKey')).toBe('Public crypto key')
expect(phone.t('Apps.crypto.profile.walletKeyBody')).toBe(
'Share this key to receive crypto. It cannot access your account.',
)
expect(phone.t('Apps.crypto.profile.copyKey')).toBe('Copy')
expect(phone.t('Apps.crypto.profile.shareKey')).toBe('Share')
})
it('uses the English Lua payload before the bundled emergency fallback', () => {
const phone = usePhoneStore()
phone.open({