chore(reborn): MR3.1 semantic audit, i18n localization, and fail-closed cleanup

This commit is contained in:
Дмитрий committed 2026-10-22 22:18:28 +05:00
1 parent 351ace1c56
commit a48717340b
12 files changed
+140 -64

No files matched your search

+3 -3
View File
@@ -68,7 +68,7 @@ function SortHeader({ id, sort, order, onSort, children, className }: { id: Sort
}
function Drawer({ summary, catalog, onClose }: { summary: RealmSummary; catalog: Catalog; onClose: () => void }) {
const { t, locale } = useI18n();
const { t, tn, locale } = useI18n();
const { state, refresh: refreshPortable } = usePortable();
const [detail, setDetail] = useState<RealmDetail | null>(null);
const [error, setError] = useState<string | null>(null);
@@ -159,7 +159,7 @@ function Drawer({ summary, catalog, onClose }: { summary: RealmSummary; catalog:
<p className="text-muted">{t("browse.noCharacter")}</p>
{hiddenCount > 0 && (
<p className="text-xs text-muted">
{hiddenCount} {hiddenCount === 1 ? "character" : "characters"} from other game modes {hiddenCount === 1 ? "is" : "are"} hidden
{tn("browse.hidden_characters", hiddenCount)}
</p>
)}
</div>
@@ -171,7 +171,7 @@ function Drawer({ summary, catalog, onClose }: { summary: RealmSummary; catalog:
</select>
{hiddenCount > 0 && (
<p className="text-xs text-muted">
{hiddenCount} {hiddenCount === 1 ? "character" : "characters"} from other game modes {hiddenCount === 1 ? "is" : "are"} hidden
{tn("browse.hidden_characters", hiddenCount)}
</p>
)}
</div>
+2 -2
View File
@@ -318,7 +318,7 @@ export function PortablePage({ onOpenSettings }: { onOpenSettings?: () => void }
rulesetFilter === "" ? "bg-white/10 text-ink shadow-sm" : "text-muted hover:text-ink"
)}
>
{t("browse.any")}
{t("portable.filter.all")}
</button>
<button
type="button"
@@ -355,7 +355,7 @@ export function PortablePage({ onOpenSettings }: { onOpenSettings?: () => void }
{characters.length === 0 && <Card className="mt-3 p-5 text-sm text-muted">{t("portable.characters.none")}</Card>}
{characters.length > 0 && filteredCharacters.length === 0 && (
<Card className="mt-3 p-5 text-sm text-muted">
No characters match the selected ruleset filter.
{t("portable.filter.none")}
</Card>
)}
<div className="mt-3 space-y-4">