1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2026-04-23 22:25:56 -04:00

Add Translations to Settings Pages

This commit is contained in:
Stevie Robinson
2023-07-22 21:14:33 +02:00
committed by Mark McDowall
parent 8008610d47
commit f2c31e92ce
102 changed files with 1697 additions and 802 deletions
+5 -4
View File
@@ -8,6 +8,7 @@ import ModalContent from 'Components/Modal/ModalContent';
import ModalFooter from 'Components/Modal/ModalFooter';
import ModalHeader from 'Components/Modal/ModalHeader';
import { kinds } from 'Helpers/Props';
import translate from 'Utilities/String/translate';
function PendingChangesModal(props) {
const {
@@ -27,10 +28,10 @@ function PendingChangesModal(props) {
onModalClose={onCancel}
>
<ModalContent onModalClose={onCancel}>
<ModalHeader>Unsaved Changes</ModalHeader>
<ModalHeader>{translate('UnsavedChanges')}</ModalHeader>
<ModalBody>
You have unsaved changes, are you sure you want to leave this page?
{translate('PendingChangesMessage')}
</ModalBody>
<ModalFooter>
@@ -38,7 +39,7 @@ function PendingChangesModal(props) {
kind={kinds.DEFAULT}
onPress={onCancel}
>
Stay and review changes
{translate('PendingChangesStayReview')}
</Button>
<Button
@@ -46,7 +47,7 @@ function PendingChangesModal(props) {
kind={kinds.DANGER}
onPress={onConfirm}
>
Discard changes and leave
{translate('PendingChangesDiscardChanges')}
</Button>
</ModalFooter>
</ModalContent>