feat: 全面替换硬编码文本并修复编译错误
- 替换多个视图中的硬编码文本为本地化字符串,增强多语言支持。 - 修复编译错误,包括删除重复文件和修复作用域问题。 - 更新本地化文件,新增40+个本地化键值对,确保文本正确显示。 - 添加语言切换测试区域,验证文本实时更新功能。
This commit is contained in:
@@ -41,7 +41,7 @@ struct TopBarView: View {
|
||||
}
|
||||
|
||||
// MARK: - LoadingView
|
||||
private struct LoadingView: View {
|
||||
private struct FeedListLoadingView: View {
|
||||
var body: some View {
|
||||
ProgressView()
|
||||
.progressViewStyle(CircularProgressViewStyle(tint: .white))
|
||||
@@ -277,7 +277,10 @@ struct FeedListView: View {
|
||||
}
|
||||
// 新增:图片预览弹窗
|
||||
.fullScreenCover(item: $previewItem) { item in
|
||||
ImagePreviewPager(images: item.images, currentIndex: $previewCurrentIndex) {
|
||||
ImagePreviewPager(
|
||||
images: item.images as [String],
|
||||
currentIndex: $previewCurrentIndex
|
||||
) {
|
||||
previewItem = nil
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user