Skip to content

Commit

Permalink
refactor: replace generate modal with i18n string
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesgeorge007 committed Jun 4, 2024
1 parent 29614eb commit 39d0631
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
3 changes: 2 additions & 1 deletion packages/hoppscotch-common/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -1055,6 +1055,7 @@
"invalid_label": "Please provide a label for the token",
"no_expiration_verbose": "This token will never expire!",
"token_expires_on": "This token will expire on",
"generate_new_token": "Generate new token"
"generate_new_token": "Generate new token",
"generate_modal_title": "New Personal Access Token"
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
<template>
<HoppSmartModal dialog title="New Personal Access Token" @close="hideModal">
<HoppSmartModal
dialog
:title="t('access_tokens.generate_modal_title')"
@close="hideModal"
>
<template #body>
<template v-if="accessToken">
<p class="p-4 mb-4 border rounded-md text-amber-500 border-amber-600">
Expand Down

0 comments on commit 39d0631

Please sign in to comment.