diff --git a/Modules/Sources/Browse/UI/Extensions/String+Constants.swift b/Modules/Sources/Browse/UI/Extensions/String+Constants.swift new file mode 100644 index 0000000..2dbb2f9 --- /dev/null +++ b/Modules/Sources/Browse/UI/Extensions/String+Constants.swift @@ -0,0 +1,11 @@ +// +// String+Constants.swift +// Browse +// +// Created by Javier Cicchelli on 16/12/2022. +// Copyright © 2022 Röck+Cöde. All rights reserved. +// + +extension String { + static let empty = "" +} diff --git a/Modules/Sources/Browse/UI/Extensions/String+Localisations.swift b/Modules/Sources/Browse/UI/Extensions/String+Localisations.swift new file mode 100644 index 0000000..2883ece --- /dev/null +++ b/Modules/Sources/Browse/UI/Extensions/String+Localisations.swift @@ -0,0 +1,19 @@ +// +// String+Localisations.swift +// Browse +// +// Created by Javier Cicchelli on 16/12/2022. +// Copyright © 2022 Röck+Cöde. All rights reserved. +// + +import Foundation + +extension String { + static func localise(key: String) -> Self { + NSLocalizedString( + key, + bundle: .module, + comment: .empty + ) + } +}