Skip to content

Commit 9f5bed8

Browse files
committed
WIP: Added translation support for tooltip info. Updated some translations and imports for consistency
1 parent 1518cdd commit 9f5bed8

File tree

105 files changed

+7693
-7678
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

105 files changed

+7693
-7678
lines changed

extras/backup/github/GitHubBackupModal.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// extras/backup/github/GitHubBackupModal.tsx
2-
import { t } from "@/i18n";
2+
import { t } from '@/i18n';
33
import type React from 'react';
44
import { useEffect, useState } from 'react';
55
import {

extras/backup/github/GitHubBackupService.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// extras/backup/github/GitHubBackupService.ts
2-
import { t } from "@/i18n";
2+
import { t } from '@/i18n';
33
import type { SecretsContextType } from '@/contexts/SecretsContext';
44
import { authService } from '@/services/AuthService';
55
import { UnifiedDataStructureService } from '@/services/DataStructureService';

extras/backup/github/GitHubBackupStatusIndicator.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// extras/backup/github/GitHubBackupStatusIndicator.tsx
2-
import { t } from "@/i18n";
2+
import { t } from '@/i18n';
33
import React, { useState } from 'react';
44
import GitHubBackupModal from './GitHubBackupModal';
55
import { gitHubBackupService } from './GitHubBackupService';
@@ -43,9 +43,9 @@ const GitHubBackupStatusIndicator: React.FC<
4343
if (status.status === 'syncing') return t('Syncing...');
4444
if (status.lastSync) {
4545
const lastSync = new Date(status.lastSync);
46-
return `Last sync: ${lastSync.toLocaleTimeString()}`;
46+
return t('Last sync: {time}', { time: lastSync.toLocaleTimeString() });
4747
}
48-
return `Connected to ${status.repository}`;
48+
return t('Connected to {repository}', { repository: status.repository });
4949
};
5050

5151
const hasUnreadActivities = activities.length > 0;

0 commit comments

Comments
 (0)