-
|
Throughout my project, I have strings that need to be localized. On iOS, it works fine, but on Android, every string that's localized inside a module which is not the main module isn't being localized. I'm using My resources folder contains all xcstrings files, but they are organized in subfolders. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
|
Localized strings per bundle should work in general, but If your module is surfacing SwiftUI components, we also support the bundle-specific constructors, like |
Beta Was this translation helpful? Give feedback.
-
Workaround:Create an internal dummy struct in your Module which localizes a Here is an example of the file I added to each of my modules. internal struct MyModuleLocalizator {
static let module: String = String(localized: "MyModule", bundle: Bundle.module)
} |
Beta Was this translation helpful? Give feedback.

Workaround:
Create an internal dummy struct in your Module which localizes a
String. Translate that value for each language in yourLocalizable.xcstringsfile.This way each of your other
.xcstringsfiles get translated too.Here is an example of the file I added to each of my modules.