-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No localized strings detected when .strings files are in different module #299
Comments
@ffittschen Please share errors you see in logs. |
Hi @serhii-londar, when I tap the Capture screenshot button in the Crowdin debug menu, I get the following error:
I knew that my language is the source language, so I put some breakpoints in the CrowdinSDK and traced it back to the |
@ffittschen Crowding SDK does not detect localized strings based on any local localization. The detection is based on strings in Crowdin project. LocalLocalizationExtractor - just utility class which have no relation to Screenshots. |
Hi @serhii-londar, thanks for the details. We're not using xcstrings, we are using As far as I can see, the I'll contact support to clarify why the provider doesn't contain anything in our case and it needs to fall back to the extractor. But the reported issue with the hardcoded |
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 theBundle.main
.To Reproduce
Steps to reproduce the behavior:
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.The text was updated successfully, but these errors were encountered: