Skip to content

Commit

Permalink
chore: fix comments
Browse files Browse the repository at this point in the history
  • Loading branch information
khanti42 committed Jan 27, 2025
1 parent e7d8825 commit aaf950e
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 15 deletions.
3 changes: 2 additions & 1 deletion packages/starknet-snap/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -150,11 +150,12 @@ export const onRpcRequest: OnRpcRequestHandler = async ({
};

switch (request.method) {
case RpcMethod.GetPreferences:
case RpcMethod.GetPreferences: {
const { locale } = await snap.request({
method: 'snap_getPreferences',
});
return { locale };
}

case RpcMethod.CreateAccount:
apiParams.keyDeriver = await getAddressKeyDeriver(snap);
Expand Down
6 changes: 0 additions & 6 deletions packages/wallet-ui/src/assets/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,6 @@
"addToken": {
"message": "Add Token"
},
"addTokenCapital": {
"message": "ADD TOKEN"
},
"amount": {
"message": "Amount"
},
Expand Down Expand Up @@ -295,9 +292,6 @@
"viewOnExplorer": {
"message": "View on explorer"
},
"viewOnExplorerCapital": {
"message": "VIEW ON EXPLORER"
},
"waitingForTransaction": {
"message": "Waiting for transaction to be complete."
},
Expand Down
6 changes: 0 additions & 6 deletions packages/wallet-ui/src/assets/locales/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,6 @@
"addToken": {
"message": "Ajouter un jeton"
},
"addTokenCapital": {
"message": "AJOUTER UN JETON"
},
"amount": {
"message": "Montant"
},
Expand Down Expand Up @@ -289,9 +286,6 @@
"viewOnExplorer": {
"message": "Voir sur l'explorateur"
},
"viewOnExplorerCapital": {
"message": "VOIR SUR L'EXPLORATEUR"
},
"waitingForTransaction": {
"message": "En attente de la transaction pour se terminer."
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export const AccountDetailsModalView = ({ address }: Props) => {
borderVisible
onClick={() => openExplorerTab(address, 'contract', chainId)}
>
{translate('viewOnExplorerCapital')}
{translate('viewOnExplorer').toUpperCase()}
</ButtonStyled>
<ButtonStyled
backgroundTransparent
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ export const SideBarView = ({ address }: Props) => {
shadowVisible={listOverflow}
onClick={() => setAddTokenOpen(true)}
>
{translate('addTokenCapital')}
{translate('addToken').toUpperCase()}
</AddTokenButton>
<PopIn isOpen={addTokenOpen} setIsOpen={setAddTokenOpen}>
<AddTokenModal closeModal={() => setAddTokenOpen(false)} />
Expand Down

0 comments on commit aaf950e

Please sign in to comment.