feat(app): 客户端展示多语言并支持筛选分页

This commit is contained in:
Zhou Weidong committed 2026-10-24 17:20:24 +08:00
1 parent 8481611372
commit 8b50b5bd06
68 files changed
+2742 -1120

No files matched your search

+12 -5
View File
@@ -402,7 +402,11 @@ class _HistoryList extends StatelessWidget {
return FollowingHistoryCard(
dramaId: record.dramaId,
title: _historyTitle(l10n, record),
title: _historyTitle(
l10n,
record,
Localizations.localeOf(context).languageCode,
),
posterUrl: record.displayCover,
viewCount:
record.progress.viewCount ??
@@ -433,10 +437,13 @@ class _HistoryList extends StatelessWidget {
}
}
String _historyTitle(AppLocalizations l10n, WatchRecord record) {
return record.displayTitle.isEmpty
? l10n.episodeLabel(record.episodeNumber)
: record.displayTitle;
String _historyTitle(
AppLocalizations l10n,
WatchRecord record,
String languageCode,
) {
final title = record.localizedDisplayTitle(languageCode);
return title.isEmpty ? l10n.episodeLabel(record.episodeNumber) : title;
}
String _historySubtitle(AppLocalizations l10n, WatchRecord record) {