Skip to content

Commit

Permalink
Add translations
Browse files Browse the repository at this point in the history
  • Loading branch information
Initsogar committed Sep 28, 2024
1 parent 3a6e4dc commit 2894133
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions client/components/jetpack/backup-schedule-setting/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { Card } from '@automattic/components';
import { SelectControl } from '@wordpress/components';
import { useTranslate } from 'i18n-calypso';
import type { FunctionComponent } from 'react';

// Helper function to generate all time slots
Expand All @@ -17,19 +18,21 @@ const generateTimeSlots = (): { label: string; value: string }[] => {
};

const BackupScheduleSetting: FunctionComponent = () => {
const translate = useTranslate();
const options = generateTimeSlots();

return (
<div className="backup-schedule-setting">
<Card compact className="setting-title">
<h3>Backup schedule</h3>
<h3>{ translate( 'Backup schedule' ) }</h3>
</Card>
<Card className="setting-content">
<p>
Pick a timeframe for your backup to run. Some site owners prefer scheduling backups at
specific times for better control.
{ translate(
'Pick a timeframe for your backup to run. Some site owners prefer scheduling backups at specific times for better control'
) }
</p>
<SelectControl options={ options } help="Default time" />
<SelectControl options={ options } help={ translate( 'Default time' ) } />
</Card>
</div>
);
Expand Down

0 comments on commit 2894133

Please sign in to comment.