Skip to content

Commit

Permalink
feat(nostr): i18n #1727
Browse files Browse the repository at this point in the history
  • Loading branch information
escapedcat committed Nov 29, 2022
1 parent 3ceacf4 commit 4188426
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
5 changes: 2 additions & 3 deletions src/app/screens/Nostr/ConfirmSignMessage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ function ConfirmSignMessage() {
const navState = useNavigationState();
const { t: tCommon } = useTranslation("common");
const { t } = useTranslation("translation", {
keyPrefix: "confirm_sign_message",
keyPrefix: "nostr",
});
const navigate = useNavigate();

Expand Down Expand Up @@ -99,8 +99,7 @@ function ConfirmSignMessage() {
htmlFor="remember_permission"
className="cursor-pointer ml-2 block text-sm text-gray-900 font-medium dark:text-white"
>
{/* {t("remember.label")} */}
Remember this decission
{t("confirm_sign_message.remember.label")}
</label>
</div>
</div>
Expand Down
7 changes: 6 additions & 1 deletion src/i18n/locales/en/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -637,7 +637,12 @@
"title": "Nostr",
"allow": "Allow {{host}} to:",
"read_public_key": "Read your public key",
"block_and_ignore": "Block and ignore {{host}}"
"block_and_ignore": "Block and ignore {{host}}",
"confirm_sign_message": {
"remember": {
"label": "Remember this decission"
}
}
}
},
"common": {
Expand Down

0 comments on commit 4188426

Please sign in to comment.