Skip to content
Discussion options

You must be logged in to vote

Workaround:

Create an internal dummy struct in your Module which localizes a String. Translate that value for each language in your Localizable.xcstrings file.
This way each of your other .xcstrings files get translated too.

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)
}

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
5 replies
@vdkdamian
Comment options

@vdkdamian
Comment options

@marcprux
Comment options

@vdkdamian
Comment options

@marcprux
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by vdkdamian
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants