mirror of
https://github.com/Rain-kl/OpenFlare.git
synced 2026-11-16 23:04:24 +08:00
feat(i18n): add Russian UI and harden localization
This commit is contained in:
@@ -130,6 +130,8 @@ function statusVariant(status: TaskExecutionStatus) {
|
||||
}
|
||||
|
||||
export function SyncTasksPanel() {
|
||||
const uiText = useTranslations('runtime');
|
||||
|
||||
const t = useTranslations('cloudflare.tasks');
|
||||
const queryClient = useQueryClient();
|
||||
const [page, setPage] = useState(1);
|
||||
@@ -469,7 +471,9 @@ export function SyncTasksPanel() {
|
||||
) : null}
|
||||
|
||||
<div className='space-y-1'>
|
||||
<div className='text-xs text-muted-foreground'>Payload</div>
|
||||
<div className='text-xs text-muted-foreground'>
|
||||
{uiText('ui_payload')}
|
||||
</div>
|
||||
<pre className='max-h-36 overflow-auto rounded-md border bg-muted/40 p-3 text-xs leading-relaxed'>
|
||||
{selected.payload || '{}'}
|
||||
</pre>
|
||||
|
||||
@@ -67,6 +67,8 @@ function getGroupIdFromPathname(pathname: string | null): number {
|
||||
}
|
||||
|
||||
export function CloudflareGroupDetailPageClient() {
|
||||
const uiText = useTranslations('runtime');
|
||||
|
||||
const t = useTranslations('cloudflare');
|
||||
const tCommon = useTranslations('common');
|
||||
const [mounted, setMounted] = useState(false);
|
||||
@@ -449,7 +451,7 @@ export function CloudflareGroupDetailPageClient() {
|
||||
setSelectedMemberIDs(new Set());
|
||||
}
|
||||
}}
|
||||
aria-label='Select all'
|
||||
aria-label={uiText('ui_selectAll')}
|
||||
/>
|
||||
</TableHead>
|
||||
<TableHead>{t('columns.domain')}</TableHead>
|
||||
|
||||
Reference in New Issue
Block a user