-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
010c5f4
commit 59ab83b
Showing
57 changed files
with
446 additions
and
480 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@treasure-dev/tdk-react": minor | ||
--- | ||
|
||
Removed `react-i18n` dependency for ~20Kb savings in gzipped package |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
import type { ReactNode } from "react"; | ||
|
||
const translation = { | ||
connect: { | ||
action: "Connect", | ||
header: ({ appName }: { appName: ReactNode }) => <>Connect to {appName}</>, | ||
footer: ({ thirdweb }: { thirdweb: ReactNode }) => ( | ||
<>Powered by {thirdweb}</> | ||
), | ||
option: { | ||
email: "Email address", | ||
or: "or", | ||
apple: "Apple", | ||
discord: "Discord", | ||
google: "Google", | ||
passkey: "Passkey", | ||
wallet: "Wallet", | ||
x: "X", | ||
}, | ||
verify: { | ||
header: "Verify code", | ||
description: ({ recipient }: { recipient: ReactNode }) => ( | ||
<> | ||
We have sent a verification code to {recipient}. You will be | ||
automatically logged in after entering your code. | ||
</> | ||
), | ||
inputLabel: "Enter verification code:", | ||
action: "Confirm", | ||
resend: { | ||
prompt: "Didn't get a code?", | ||
action: "Resend", | ||
countdown: ({ seconds }: { seconds: number }) => | ||
`Resend available in ${seconds}s...`, | ||
}, | ||
}, | ||
migrate: { | ||
header: "Migrate existing account", | ||
description: | ||
"It looks like you have several existing Treasure profiles. Please choose one you would like to use moving forward as your identity across the Treasure ecosystem.", | ||
approve: "Use this account", | ||
reject: "Start fresh", | ||
disclaimer: "NOTE: This is irreversible, so please choose carefully.", | ||
}, | ||
}, | ||
}; | ||
|
||
export type Translation = typeof translation; | ||
|
||
export default translation; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
import type { Translation } from "./en"; | ||
|
||
const translation: Translation = { | ||
connect: { | ||
action: "Conectar", | ||
header: ({ appName }) => <>Conectarse a {appName}</>, | ||
footer: ({ thirdweb }) => <>Con tecnología de {thirdweb}</>, | ||
option: { | ||
email: "Correo electrónico", | ||
or: "o", | ||
apple: "Apple", | ||
discord: "Discord", | ||
google: "Google", | ||
passkey: "Clave de paso", | ||
wallet: "Cartera", | ||
x: "X", | ||
}, | ||
verify: { | ||
header: "Verificar código", | ||
description: ({ recipient }) => ( | ||
<> | ||
Se envió un código de verificación a {recipient}. Iniciará sesión | ||
automáticamente después de ingresar su código. | ||
</> | ||
), | ||
inputLabel: "Ingresar código de verificación:", | ||
action: "Confirmar", | ||
resend: { | ||
prompt: "¿No recibió un código?", | ||
action: "Reenviar", | ||
countdown: ({ seconds }: { seconds: number }) => | ||
`Reenvío disponsible en ${seconds}s...`, | ||
}, | ||
}, | ||
migrate: { | ||
header: "Migrate existing account", | ||
description: | ||
"It looks like you have several existing Treasure profiles. Please choose one you would like to use moving forward as your identity across the Treasure ecosystem.", | ||
approve: "Use this account", | ||
reject: "Start fresh", | ||
disclaimer: "NOTE: This is irreversible, so please choose carefully.", | ||
}, | ||
}, | ||
}; | ||
|
||
export default translation; |
Oops, something went wrong.