App shows incorrect lang string from Localizable.xcstrings of embedded framework

  Kiến thức lập trình

I added Localizable.xcstrings to the both application and embedded framework.
The framework has UIViewController with its own strings.
$(DEVELOPMENT_LANGUAGE) is English for the both.
The both Localizable.xcstrings have english and translations for 4 languages.

Problem is some users reported screenshot that shows app shows English text, but UI of framework shows German or French localized texts.

String(localized: “Command Key”, comment: “Label of the option”) was used in my app and
String(localized: “Additional Features”, bundle: Bundle(identifier: Framework Bundle Identifier)) in my framework

During development I got expected results: depending on device language or settings of Language for my app in iOS application settings, the app shows correct texts in UI of the both app and framework.

Adding “CFBundleAllowMixedLocalizations = YES” to App’s Info.plist doesn’t help.

1

Theme wordpress giá rẻ Theme wordpress giá rẻ Thiết kế website

LEAVE A COMMENT