diff --git a/.github/workflows/swift.yml b/.github/workflows/swift.yml index 945538a..f64746c 100644 --- a/.github/workflows/swift.yml +++ b/.github/workflows/swift.yml @@ -18,7 +18,7 @@ jobs: - uses: actions/checkout@v3 - name: Select Xcode Version - run: sudo xcode-select -switch /Applications/Xcode_14.3.1.app + run: sudo xcode-select -switch /Applications/Xcode_15.0.app - name: Build run: swift build -vv diff --git a/Package.swift b/Package.swift index 83f3342..0b7f6ac 100644 --- a/Package.swift +++ b/Package.swift @@ -1,4 +1,4 @@ -// swift-tools-version: 5.8 +// swift-tools-version: 5.9 import PackageDescription diff --git a/Sources/DynamicList/Presentation/DynamicListPresenter.swift b/Sources/DynamicList/Presentation/DynamicListPresenter.swift index c2ebe86..dafc44d 100644 --- a/Sources/DynamicList/Presentation/DynamicListPresenter.swift +++ b/Sources/DynamicList/Presentation/DynamicListPresenter.swift @@ -9,7 +9,7 @@ public class DynamicListPresenter { public static let dataNotAvailable = NSLocalizedString("data_not_available", bundle: Bundle.module, comment: "") public static let topics = NSLocalizedString("topics", bundle: Bundle.module, comment: "") public static let networkError = NSLocalizedString("network_error", bundle: Bundle.module, comment: "") - public static let loadingContent = NSLocalizedString("loading_content", bundle: Bundle.module, comment: "News Feed loading content text") + public static let loadingContent = NSLocalizedString("loading_content", bundle: Bundle.module, comment: "Items loading content text") public static let connectivityErrorRefresh = NSLocalizedString( "connectivity_error_refresh", bundle: Bundle.module, diff --git a/Sources/DynamicList/Presentation/Localizable.xcstrings b/Sources/DynamicList/Presentation/Localizable.xcstrings new file mode 100644 index 0000000..53ef9a6 --- /dev/null +++ b/Sources/DynamicList/Presentation/Localizable.xcstrings @@ -0,0 +1,151 @@ +{ + "sourceLanguage" : "en", + "strings" : { + "connectivity_error_refresh" : { + "comment" : "News Feed connectivity error text", + "localizations" : { + "en" : { + "stringUnit" : { + "state" : "translated", + "value" : "Unable to retrieve content.\nTry again by pulling to refresh." + } + }, + "es-419" : { + "stringUnit" : { + "state" : "translated", + "value" : "No se ha podido cargar el contenido.\nIntenta nuevamente deslizando hacia abajo." + } + } + } + }, + "data_not_available" : { + "localizations" : { + "en" : { + "stringUnit" : { + "state" : "translated", + "value" : "Oops, looks like there's no available data." + } + }, + "es-419" : { + "stringUnit" : { + "state" : "translated", + "value" : "Ups, parece que no hay datos disponibles." + } + } + } + }, + "Example list items" : { + "comment" : "Preview title", + "localizations" : { + "en" : { + "stringUnit" : { + "state" : "translated", + "value" : "Example list items" + } + }, + "es-419" : { + "stringUnit" : { + "state" : "translated", + "value" : "Lista de ejemplo" + } + } + } + }, + "Fruit image" : { + "localizations" : { + "es-419" : { + "stringUnit" : { + "state" : "translated", + "value" : "Imagen de la fruta" + } + } + } + }, + "loading_content" : { + "comment" : "Items loading content text", + "localizations" : { + "en" : { + "stringUnit" : { + "state" : "translated", + "value" : "Loading content..." + } + }, + "es-419" : { + "stringUnit" : { + "state" : "translated", + "value" : "Cargando contenido..." + } + } + } + }, + "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat." : { + "localizations" : { + "es-419" : { + "stringUnit" : { + "state" : "translated", + "value" : "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat." + } + } + } + }, + "network_error" : { + "localizations" : { + "en" : { + "stringUnit" : { + "state" : "translated", + "value" : "Oops, looks like there's a network error." + } + }, + "es-419" : { + "stringUnit" : { + "state" : "translated", + "value" : "Ups, parece que hubo un error en la conexión." + } + } + } + }, + "search" : { + "localizations" : { + "en" : { + "stringUnit" : { + "state" : "translated", + "value" : "Search" + } + }, + "es-419" : { + "stringUnit" : { + "state" : "translated", + "value" : "Buscar" + } + } + } + }, + "This is the end of the list ✅" : { + "localizations" : { + "es-419" : { + "stringUnit" : { + "state" : "translated", + "value" : "Este es el final de la lista ✅" + } + } + } + }, + "topics" : { + "localizations" : { + "en" : { + "stringUnit" : { + "state" : "translated", + "value" : "Topics" + } + }, + "es-419" : { + "stringUnit" : { + "state" : "translated", + "value" : "Temas" + } + } + } + } + }, + "version" : "1.0" +} \ No newline at end of file diff --git a/Sources/DynamicList/Presentation/en.lproj/Localizable.strings b/Sources/DynamicList/Presentation/en.lproj/Localizable.strings deleted file mode 100644 index cbd063a..0000000 --- a/Sources/DynamicList/Presentation/en.lproj/Localizable.strings +++ /dev/null @@ -1,6 +0,0 @@ -"search" = "Search"; -"data_not_available" = "Oops, looks like there's no available data."; -"topics" = "Topics"; -"network_error" = "Oops, looks like there's a network error."; -"loading_content" = "Loading content..."; -"connectivity_error_refresh" = "Unable to retrieve content.\nTry again by pulling to refresh."; diff --git a/Sources/DynamicList/Presentation/es-419.lproj/Localizable.strings b/Sources/DynamicList/Presentation/es-419.lproj/Localizable.strings deleted file mode 100644 index 59c7a53..0000000 --- a/Sources/DynamicList/Presentation/es-419.lproj/Localizable.strings +++ /dev/null @@ -1,6 +0,0 @@ -"search" = "Buscar"; -"data_not_available" = "Ups, parece que no hay datos disponibles."; -"topics" = "Temas"; -"network_error" = "Ups, parece que hubo un error en la conexión."; -"loading_content" = "Cargando contenido..."; -"connectivity_error_refresh" = "No se ha podido cargar el contenido.\nIntenta nuevamente deslizando hacia abajo."; diff --git a/Sources/DynamicList/Preview Helpers/DetailFruitItemView.swift b/Sources/DynamicList/Preview Helpers/DetailFruitItemView.swift index 446b5bc..0f1c227 100644 --- a/Sources/DynamicList/Preview Helpers/DetailFruitItemView.swift +++ b/Sources/DynamicList/Preview Helpers/DetailFruitItemView.swift @@ -15,7 +15,7 @@ struct DetailFruitItemView: View { "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat." ) VStack { - Text("FRUIT SYMBOL") + Text("Fruit image") .bold() Text(item.symbol) .font(.system(size: 256))