-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add active wallet integration (#42)
* tech(active-wallet): initial wallet layout * tech(active-wallet): add query and mutations * tech(active-wallet): add connect wallet example * tech(active-wallet): use appkit for wallet example * tech(active-wallet): use correct label when active * chore: format * tech(active-wallet): add spinner and error state * tech(active-wallet): use scss vars * tech(active-wallet): use signature and message * chore: update version * feat(active-wallet): add error message for already existing wallet * chore: format * feat(active-wallet): add toast * chore: add mantine hooks and core to peer dependecies * feat(active-wallet): add missing component * chore: add i18n translations * chore: prettier * chore: update i18n keys * chore: update i18n keys
- Loading branch information
1 parent
440af60
commit 3461db9
Showing
12 changed files
with
1,556 additions
and
56 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
import i18n from 'i18next' | ||
import { initReactI18next } from 'react-i18next' | ||
|
||
// the translations | ||
// (tip move them in a JSON file and import them, | ||
// or even better, manage them separated from your code: https://react.i18next.com/guides/multiple-translation-files) | ||
const resources = { | ||
en: { | ||
translation: { | ||
gameplayWallet: { | ||
info: { | ||
title: 'What is a Gameplay Wallet?', | ||
description: | ||
'Your progress for each Quest is based on the Gameplay wallet you use to start the game.<br/><br/> This allows game studios to properly sync and issue Rewards, regardless if they are in-game or off-chain.<br/><br/>Switching wallets? No problem. Your progress will be saved to each Gameplay wallet address separately.' | ||
} | ||
} | ||
} | ||
} | ||
} | ||
|
||
i18n | ||
.use(initReactI18next) // passes i18n down to react-i18next | ||
.init({ | ||
resources, | ||
lng: 'en', // language to use, more information here: https://www.i18next.com/overview/configuration-options#languages-namespaces-resources | ||
interpolation: { | ||
escapeValue: false // react already safes from xss | ||
} | ||
}) | ||
|
||
export default i18n |
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
Oops, something went wrong.