Skip to content

Verify multiple languages #256

@danielsaidi

Description

@danielsaidi

Hi,

Hope you're all doing well.

I love using SwiftGen, since it brings "type safety" to your localized strings. If you accidentally rename or remove a required key, your app won't build.

However, if your app is localized for multiple languages, you can only be sure that the keys you use in your app exist in the Localizable.strings file you are using when generating the enum file, right?. If they are not present in any of the other localizable files, your app will still compile.

Is there any way to account for this? I guess you could add a fastlane build step that iterates through all languages and generates the swift file for each language, tries to build the app and aborts if any key is missing in the file.

Would that be your recommended course of action, or is there some built-in feature that I missed?

All the best!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions