mirror of
https://github.com/Rain-kl/OpenFlare.git
synced 2026-11-16 14:54:23 +08:00
feat(i18n): add Russian UI and harden localization
This commit is contained in:
@@ -347,7 +347,7 @@ export function createApiSections(rt: RuntimeTranslator): PolicySection[] {
|
||||
</code>
|
||||
</p>
|
||||
<p>
|
||||
<strong>{rt('parameters_ba89685c')}</strong> JSON Body{' '}
|
||||
<strong>{rt('parameters_ba89685c')}</strong> {rt('ui_jsonBody')}{' '}
|
||||
<code className='bg-muted px-1.5 rounded text-xs font-mono'>
|
||||
{rt.raw('name_token_name_is_admin_false_4f3e4868')}
|
||||
</code>
|
||||
|
||||
@@ -262,7 +262,7 @@ X-Access-Token: at_628d022b7a95e26b...`}
|
||||
</p>
|
||||
<ul className='list-disc pl-4 md:pl-5 space-y-2'>
|
||||
<li>
|
||||
<strong>OpenTelemetry Tracing:</strong>{' '}
|
||||
<strong>{rt('ui_openTelemetryTracing')}</strong>{' '}
|
||||
{rt(
|
||||
'tracing_context_is_propagated_automatically_gin_requests_0f549cce',
|
||||
)}
|
||||
|
||||
@@ -13,11 +13,13 @@ import { locales, type AppLocale } from '@/i18n/config';
|
||||
import { switchLocale } from '@/i18n/client';
|
||||
import { cn } from '@/lib/utils';
|
||||
import enNames from '@/messages/fragments/languages.en.json';
|
||||
import ruNames from '@/messages/fragments/languages.ru.json';
|
||||
import zhCNNames from '@/messages/fragments/languages.zh-CN.json';
|
||||
|
||||
// Language names always use their own locale, regardless of the active UI.
|
||||
const nativeNames: Record<AppLocale, string> = {
|
||||
en: enNames.languageNames.en,
|
||||
ru: ruNames.languageNames.ru,
|
||||
'zh-CN': zhCNNames.languageNames['zh-CN'],
|
||||
};
|
||||
|
||||
|
||||
@@ -124,7 +124,7 @@ export function AuthSourceModal({
|
||||
/>
|
||||
</div>
|
||||
<div className='space-y-2'>
|
||||
<Label>Client ID</Label>
|
||||
<Label>{rt('ui_clientId')}</Label>
|
||||
<Input
|
||||
value={form.client_id}
|
||||
onChange={(e) =>
|
||||
@@ -133,7 +133,7 @@ export function AuthSourceModal({
|
||||
/>
|
||||
</div>
|
||||
<div className='space-y-2'>
|
||||
<Label>Client Secret</Label>
|
||||
<Label>{rt('ui_clientSecret')}</Label>
|
||||
<Input
|
||||
value={form.client_secret}
|
||||
onChange={(e) =>
|
||||
@@ -156,7 +156,7 @@ export function AuthSourceModal({
|
||||
/>
|
||||
</div>
|
||||
<div className='space-y-2'>
|
||||
<Label>Scopes</Label>
|
||||
<Label>{rt('ui_scopes')}</Label>
|
||||
<Input
|
||||
value={form.scopes}
|
||||
onChange={(e) =>
|
||||
|
||||
Reference in New Issue
Block a user