diff --git a/Package.swift b/Package.swift index 68d629d..0e20e6d 100644 --- a/Package.swift +++ b/Package.swift @@ -5,6 +5,7 @@ import PackageDescription let package = Package( name: "InfomaniakCoreUI", + defaultLocalization: "en", platforms: [ .iOS(.v13) ], diff --git a/Sources/InfomaniakCoreSwiftUI/Components/FloatingPanelCloseButton.swift b/Sources/InfomaniakCoreSwiftUI/Components/FloatingPanelCloseButton.swift index c717b4f..12f213a 100644 --- a/Sources/InfomaniakCoreSwiftUI/Components/FloatingPanelCloseButton.swift +++ b/Sources/InfomaniakCoreSwiftUI/Components/FloatingPanelCloseButton.swift @@ -25,8 +25,7 @@ public struct FloatingPanelCloseButton: View { public var body: some View { Button(action: dismissHandler) { Label { - // TODO: - TRANSLATE THIS - Text("Close" /* MailResourcesStrings.Localizable.buttonClose */ ) + Text("Close", bundle: .module) } icon: { Image(systemName: "xmark") .resizable() diff --git a/Sources/InfomaniakCoreSwiftUI/Resources/de.lproj/Localizable.strings b/Sources/InfomaniakCoreSwiftUI/Resources/de.lproj/Localizable.strings new file mode 100644 index 0000000..d043726 --- /dev/null +++ b/Sources/InfomaniakCoreSwiftUI/Resources/de.lproj/Localizable.strings @@ -0,0 +1,10 @@ +/* + Localizable.strings + InfomaniakCoreUI + + Created by Ambroise Decouttere on 15/10/2024. + +*/ + +/* Close button */ +"Close" = "Schliessen"; diff --git a/Sources/InfomaniakCoreSwiftUI/Resources/en.lproj/Localizable.strings b/Sources/InfomaniakCoreSwiftUI/Resources/en.lproj/Localizable.strings new file mode 100644 index 0000000..2fa1903 --- /dev/null +++ b/Sources/InfomaniakCoreSwiftUI/Resources/en.lproj/Localizable.strings @@ -0,0 +1,10 @@ +/* + Localizable.strings + InfomaniakCoreUI + + Created by Ambroise Decouttere on 15/10/2024. + +*/ + +/* Close button */ +"Close" = "Close"; diff --git a/Sources/InfomaniakCoreSwiftUI/Resources/es.lproj/Localizable.strings b/Sources/InfomaniakCoreSwiftUI/Resources/es.lproj/Localizable.strings new file mode 100644 index 0000000..a744558 --- /dev/null +++ b/Sources/InfomaniakCoreSwiftUI/Resources/es.lproj/Localizable.strings @@ -0,0 +1,10 @@ +/* + Localizable.strings + InfomaniakCoreUI + + Created by Ambroise Decouttere on 15/10/2024. + +*/ + +/* Close button */ +"Close" = "Cerrar"; diff --git a/Sources/InfomaniakCoreSwiftUI/Resources/fr.lproj/Localizable.strings b/Sources/InfomaniakCoreSwiftUI/Resources/fr.lproj/Localizable.strings new file mode 100644 index 0000000..ed19146 --- /dev/null +++ b/Sources/InfomaniakCoreSwiftUI/Resources/fr.lproj/Localizable.strings @@ -0,0 +1,10 @@ +/* + Localizable.strings + InfomaniakCoreUI + + Created by Ambroise Decouttere on 15/10/2024. + +*/ + +/* Close button */ +"Close" = "Fermer"; diff --git a/Sources/InfomaniakCoreSwiftUI/Resources/it.lproj/Localizable.strings b/Sources/InfomaniakCoreSwiftUI/Resources/it.lproj/Localizable.strings new file mode 100644 index 0000000..df7ad53 --- /dev/null +++ b/Sources/InfomaniakCoreSwiftUI/Resources/it.lproj/Localizable.strings @@ -0,0 +1,10 @@ +/* + Localizable.strings + InfomaniakCoreUI + + Created by Ambroise Decouttere on 15/10/2024. + +*/ + +/* Close button */ +"Close" = "Chiudere";