fix: finalize UI localization and fix typo in en.json

This commit is contained in:
dyzulk
2026-01-06 16:40:20 +07:00
parent e3536dde78
commit c7261e0a09
3 changed files with 9 additions and 3 deletions

View File

@@ -109,7 +109,7 @@ function CliSnippet({ label, command, t }: { label: string, command: string, t:
<div className="relative group"> <div className="relative group">
<div className="font-mono text-[11px] bg-gray-950 text-brand-400 p-4 rounded-2xl border border-gray-800 break-all pr-12 shadow-inner"> <div className="font-mono text-[11px] bg-gray-950 text-brand-400 p-4 rounded-2xl border border-gray-800 break-all pr-12 shadow-inner">
<span className="text-gray-600 mr-2 select-none">$</span> <span className="text-gray-600 mr-2 select-none">$</span>
{command || 'No script available.'} {command || t('no_script')}
</div> </div>
<button <button
onClick={copyCli} onClick={copyCli}
@@ -118,7 +118,7 @@ function CliSnippet({ label, command, t }: { label: string, command: string, t:
? 'bg-green-500 text-white border-green-500 shadow-lg shadow-green-500/20' ? 'bg-green-500 text-white border-green-500 shadow-lg shadow-green-500/20'
: 'bg-gray-900 text-gray-400 hover:text-white border-gray-800 hover:bg-gray-800' : 'bg-gray-900 text-gray-400 hover:text-white border-gray-800 hover:bg-gray-800'
}`} }`}
title="Copy Command" title={t('copy_command')}
> >
{copied ? <CheckIcon className="w-3.5 h-3.5" /> : <CopyIcon className="w-3.5 h-3.5" />} {copied ? <CheckIcon className="w-3.5 h-3.5" /> : <CopyIcon className="w-3.5 h-3.5" />}
</button> </button>
@@ -161,7 +161,7 @@ function OsGuideContent({ title, steps, selectedOs, certificates, t }: { title:
<div className="flex-1"> <div className="flex-1">
<h5 className="font-bold text-gray-900 dark:text-white flex items-center gap-2 mb-1"> <h5 className="font-bold text-gray-900 dark:text-white flex items-center gap-2 mb-1">
{t('bundle_guide_title')} {t('bundle_guide_title')}
<Badge variant="brand">Recommended</Badge> <Badge variant="brand">{t('recommended')}</Badge>
</h5> </h5>
<p className="text-xs text-gray-500 dark:text-gray-400 leading-relaxed mb-4"> <p className="text-xs text-gray-500 dark:text-gray-400 leading-relaxed mb-4">
{t('bundle_guide_desc')} {t('bundle_guide_desc')}

View File

@@ -190,7 +190,10 @@
"download_macos_title": "Download macOS Profile (.mobileconfig)", "download_macos_title": "Download macOS Profile (.mobileconfig)",
"download_linux_title": "Download Linux Installer (.sh)", "download_linux_title": "Download Linux Installer (.sh)",
"copy_cli": "Copy CLI", "copy_cli": "Copy CLI",
"copy_command": "Copy Command",
"no_script": "No script available.",
"copied": "Copied!", "copied": "Copied!",
"recommended": "Recommended",
"root_ca": "Root CA", "root_ca": "Root CA",
"intermediate_ca": "Intermediate CA", "intermediate_ca": "Intermediate CA",
"root_ca_hierarchy": "Root Trust Foundation", "root_ca_hierarchy": "Root Trust Foundation",

View File

@@ -190,7 +190,10 @@
"download_macos_title": "Unduh Profil macOS (.mobileconfig)", "download_macos_title": "Unduh Profil macOS (.mobileconfig)",
"download_linux_title": "Unduh Penginstal Linux (.sh)", "download_linux_title": "Unduh Penginstal Linux (.sh)",
"copy_cli": "Salin CLI", "copy_cli": "Salin CLI",
"copy_command": "Salin Perintah",
"no_script": "Skrip tidak tersedia.",
"copied": "Tersalin!", "copied": "Tersalin!",
"recommended": "Rekomendasi",
"root_ca": "Root CA", "root_ca": "Root CA",
"intermediate_ca": "Intermediate CA", "intermediate_ca": "Intermediate CA",
"root_ca_hierarchy": "Fondasi Kepercayaan Akar", "root_ca_hierarchy": "Fondasi Kepercayaan Akar",