Skip to content

Commit

Permalink
feat: update i18n strings
Browse files Browse the repository at this point in the history
  • Loading branch information
drewlyton committed Sep 26, 2024
1 parent ab9fdd0 commit 8547697
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export function RequestPermissionDialog({
const {t} = useTranslation(structureLocaleNamespace)
const dialogId = `request-permissions-${useId()}`
const projectId = useProjectId()
const client = useClient()
const client = useClient({apiVersion: '2024-09-26'})
const toast = useToast()

const [isSubmitting, setIsSubmitting] = useState(false)
Expand Down Expand Up @@ -149,7 +149,6 @@ export function RequestPermissionDialog({
<DialogBody>
<Stack space={4}>
<Text>{t('request-permission-dialog.description.text')}</Text>
<Text>{t('request-permission-dialog.note-input.description.text')}</Text>
{hasTooManyRequests || hasBeenDenied ? (
<Card tone={'caution'} padding={3} radius={2} shadow={1}>
<Text size={1}>
Expand Down
4 changes: 2 additions & 2 deletions packages/sanity/src/structure/i18n/resources.ts
Original file line number Diff line number Diff line change
Expand Up @@ -417,9 +417,9 @@ const structureLocaleStrings = defineLocalesResources('structure', {
'request-permission-dialog.confirm-button.text': 'Send request',
/** The description text for the request permission dialog used in the permissions banner */
'request-permission-dialog.description.text':
'A request will be made to administrators asking to grant you increased permission to this project.',
"Your request will be sent to the project administrator(s). If you'd like, you can also include a note",
/** The header/title for the request permission dialog used in the permissions banner */
'request-permission-dialog.header.text': 'Ask to edit',
'request-permission-dialog.header.text': 'Ask for edit access',
/** The text describing the note input for the request permission dialog used in the permissions banner */
'request-permission-dialog.note-input.description.text': "If you'd like, you can add a note",
/** The placeholder for the note input in the request permission dialog used in the permissions banner */
Expand Down

0 comments on commit 8547697

Please sign in to comment.