Skip to content

No localized strings detected when .strings files are in different module #299

@ffittschen

Description

@ffittschen

Describe the bug
In a modular app, the Localizable.strings files are not necessarily in the main bundle, because other modules need to access the translations as well. In our case, we have a Localization target, which contains all .strings and .stringsdict resources. When using the Crowdin SDK with our app, some features do not work, as the LocalLocalizationExtractor assumes the files are part of the Bundle.main.

To Reproduce
Steps to reproduce the behavior:

  1. Move all localization resource files into a separate target
  2. Integrate the Crowdin SDK
  3. Use the features such as capturing screenshots via the SDK
  4. See error in the debug console

Expected behavior
I would expect to be able to pass a Bundle when setting up the Crowdin SDK so that the SDK knows where to look for the localizable resource files when trying to extract the strings.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions