AmrJyniat
03/27/2023, 9:27 AMLocalizedStringKey(MR.strings().welcome_back.resourceId)
it returns the string id instead of the real value, although it works fine on Android side and I have the string value in the used language, what would be the problem?Vidmantas Kerbelis
03/27/2023, 9:42 AMresourceId
. This would just return the bundle identifier. You should be using MR.strings().welcome_back.desc().localized()
AmrJyniat
03/27/2023, 9:47 AMresourceId
within SwiftUi code as described here, am I misunderstood something?Vidmantas Kerbelis
03/27/2023, 9:50 AMalex009
03/27/2023, 12:53 PMbundle
that contained in StringResource
.
string with resourceId
contained in custom bundle inside framework, not in main app bundleAmrJyniat
03/27/2023, 12:58 PMalex009
03/27/2023, 1:16 PMMR.strings().welcome_back.desc().localized()
🙂 i try to describe ios specific details with https://developer.apple.com/documentation/foundation/bundle and https://developer.apple.com/documentation/foundation/nsbundle/1417694-localizedstringforkey?language=objc
but for usage you should just call localized
AmrJyniat
03/27/2023, 1:23 PMalex009
03/27/2023, 1:27 PMlet resource = MR.strings().email
Text(
LocalizedStringKey(resource.resourceId),
bundle: resource.bundle
)
with swiftui