fix(ui): use translations for style preset strings

This commit is contained in:
psychedelicious 2024-08-17 10:31:21 +10:00
parent f787e9acf6
commit 584e07182b
2 changed files with 4 additions and 3 deletions

View File

@ -93,8 +93,8 @@ export const StylePresetForm = ({
</FormControl> </FormControl>
</Flex> </Flex>
<StylePresetPromptField label="Positive Prompt" control={control} name="positivePrompt" /> <StylePresetPromptField label={t('stylePresets.positivePrompt')} control={control} name="positivePrompt" />
<StylePresetPromptField label="Negative Prompt" control={control} name="negativePrompt" /> <StylePresetPromptField label={t('stylePresets.negativePrompt')} control={control} name="negativePrompt" />
<Box> <Box>
<Text variant="subtext">{t('stylePresets.promptTemplatesDesc1')}</Text> <Text variant="subtext">{t('stylePresets.promptTemplatesDesc1')}</Text>
<Text variant="subtext"> <Text variant="subtext">

View File

@ -174,7 +174,8 @@ export const StylePresetListItem = ({ preset }: { preset: StylePresetRecordWithI
onClose={onClose} onClose={onClose}
title={t('stylePresets.deleteTemplate')} title={t('stylePresets.deleteTemplate')}
acceptCallback={handleDeletePreset} acceptCallback={handleDeletePreset}
acceptButtonText="Delete" acceptButtonText={t('common.delete')}
cancelButtonText={t('common.cancel')}
> >
<p>{t('stylePresets.deleteTemplate2')}</p> <p>{t('stylePresets.deleteTemplate2')}</p>
</ConfirmationAlertDialog> </ConfirmationAlertDialog>