diff --git a/MiniScanner/Modules/Documents/Customs/CustomViews/AllFolderTableView/AllFolderTableViewCell.swift b/MiniScanner/Modules/Documents/Customs/CustomViews/AllFolderTableView/AllFolderTableViewCell.swift index 77388e4baa4ed689096aedd97b679369fc70c671..9b33751441a527df887e29e929f4d6961a9ab562 100644 --- a/MiniScanner/Modules/Documents/Customs/CustomViews/AllFolderTableView/AllFolderTableViewCell.swift +++ b/MiniScanner/Modules/Documents/Customs/CustomViews/AllFolderTableView/AllFolderTableViewCell.swift @@ -44,6 +44,12 @@ final class AllFolderTableViewCell: UIView { foldersLabel.set(localized: .folders) } + func reloadLocalization() { + addFolderButton.set(localized: .addFolder) + + foldersLabel.set(localized: .folders) + } + private func setupNib() { Bundle.main.loadNibNamed("AllFolderTableViewCell", owner: self, options: nil) diff --git a/MiniScanner/Modules/Documents/DocumentsTableViewController.swift b/MiniScanner/Modules/Documents/DocumentsTableViewController.swift index 39b93ae164ed6b12d4743ebea974cb10bd77814c..df7b6840d50dfddc510a07fdede94aae95354de9 100644 --- a/MiniScanner/Modules/Documents/DocumentsTableViewController.swift +++ b/MiniScanner/Modules/Documents/DocumentsTableViewController.swift @@ -109,7 +109,7 @@ final class DocumentsTableViewController: UIViewController, UITableViewDelegate, fixedTableSheet.layer.shadowRadius = 4.0 fixedTableSheet.backgroundColor = .white // or any non-clear color fixedTableSheet.clipsToBounds = false - noFilesLabel.set(text: .noFilesToShow.localized, color: .mainText, font: .medium(22)) + noFilesLabel.isHidden = true fetchViewModels() @@ -123,6 +123,9 @@ final class DocumentsTableViewController: UIViewController, UITableViewDelegate, fetchViewModels() handleBackIcon() + noFilesLabel.set(text: .noFilesToShow.localized, color: .mainText, font: .medium(22)) + + AllFolderView.reloadLocalization() } deinit {