Skip to content

Commit

Permalink
fix(ui): use translations for style preset strings
Browse files Browse the repository at this point in the history
  • Loading branch information
psychedelicious committed Aug 17, 2024
1 parent f787e9a commit 0723b31
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,8 @@ export const StylePresetForm = ({
</FormControl>
</Flex>

<StylePresetPromptField label="Positive Prompt" control={control} name="positivePrompt" />
<StylePresetPromptField label="Negative Prompt" control={control} name="negativePrompt" />
<StylePresetPromptField label={t('stylePresets.positivePrompt')} control={control} name="positivePrompt" />
<StylePresetPromptField label={t('stylePresets.negativePrompt')} control={control} name="negativePrompt" />
<Box>
<Text variant="subtext">{t('stylePresets.promptTemplatesDesc1')}</Text>
<Text variant="subtext">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,8 @@ export const StylePresetListItem = ({ preset }: { preset: StylePresetRecordWithI
onClose={onClose}
title={t('stylePresets.deleteTemplate')}
acceptCallback={handleDeletePreset}
acceptButtonText="Delete"
acceptButtonText={t('common.delete')}
cancelButtonText={t('common.cancel')}
>
<p>{t('stylePresets.deleteTemplate2')}</p>
</ConfirmationAlertDialog>
Expand Down

0 comments on commit 0723b31

Please sign in to comment.