🐛 Add missing translations for save affix

This commit is contained in:
Meier Lukas
2023-08-06 17:10:38 +02:00
parent 6efa12b5f0
commit f8907b97ae
2 changed files with 7 additions and 5 deletions

View File

@@ -8,7 +8,10 @@
"secondaryColor": "Secondary color"
}
},
"save": "Save changes",
"save": {
"button": "Save changes",
"note": "Careful, you have unsaved changes!"
},
"notifications": {
"pending": {
"title": "Saving customization",

View File

@@ -148,7 +148,7 @@ export default function CustomizationPage() {
withBorder
>
<Group position="apart" noWrap>
<Text weight="bold">Careful, you have unsaved changes!</Text>
<Text weight="bold">{t('save.note')}</Text>
<Group spacing="md">
<Button
onClick={() => {
@@ -157,7 +157,7 @@ export default function CustomizationPage() {
variant="subtle"
type="button"
>
Cancel
{t('common:cancel')}
</Button>
<Button
onClick={() => {
@@ -169,10 +169,9 @@ export default function CustomizationPage() {
}}
disabled={!form.isValid()}
loading={isLoading}
type="submit"
color="green"
>
{t('save')}
{t('save.button')}
</Button>
</Group>
</Group>