Skip to content

Commit

Permalink
Merge pull request #924 from DeluxeAlonso/feature/code-cleanup
Browse files Browse the repository at this point in the history
Feature/code cleanup
  • Loading branch information
DeluxeAlonso authored Jul 5, 2024
2 parents 741bc58 + 597a53b commit ee0d518
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,4 +84,8 @@ enum LocalizedStrings: String, Localizable {
case customListDetailSectionRuntimeTitle
case customListDetailSectionRevenueTitle

case errorPlaceHolderViewTitleText
case errorPlaceHolderViewDetailText
case errorPlaceHolderViewRetryButtonTitle

}
Original file line number Diff line number Diff line change
Expand Up @@ -89,11 +89,10 @@ final class ErrorPlaceholderView: UIView, NibLoadable, RetryPlaceHolderable {

extension ErrorPlaceholderView {

// TODO: - Localize this
struct Constants {
static let errorTitle = "¡Ups!"
static let errorDetail = "Something went wrong."
static let retryButtonTitle = "Retry"
static let errorTitle = LocalizedStrings.errorPlaceHolderViewTitleText()
static let errorDetail = LocalizedStrings.errorPlaceHolderViewDetailText()
static let retryButtonTitle = LocalizedStrings.errorPlaceHolderViewRetryButtonTitle()
}

}
4 changes: 4 additions & 0 deletions UpcomingMovies/en.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -87,3 +87,7 @@
"customListDetailSectionRatingTitle" = "Rating";
"customListDetailSectionRuntimeTitle" = "Runtime";
"customListDetailSectionRevenueTitle" = "Revenue";

"errorPlaceHolderViewTitleText" = "¡Ups!";
"errorPlaceHolderViewDetailText" = "Something went wrong.";
"errorPlaceHolderViewRetryButtonTitle" = "Retry";
4 changes: 4 additions & 0 deletions UpcomingMovies/es-419.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -87,3 +87,7 @@
"customListDetailSectionRatingTitle" = "Rating";
"customListDetailSectionRuntimeTitle" = "Duración";
"customListDetailSectionRevenueTitle" = "Ganancias";

"errorPlaceHolderViewTitleText" = "¡Ups!";
"errorPlaceHolderViewDetailText" = "Ocurrió un error.";
"errorPlaceHolderViewRetryButtonTitle" = "Reintentar";

0 comments on commit ee0d518

Please sign in to comment.