Bundle was the problem. Default bundle is Bundle.main which is App's bundle not the framework bundle. Passing the frameworks bundle fixed the issue.
I used Bundle(identifier:) to get the framework's bundle. So the method will look like below.
NSLocalizedString("string_key", bundle: Bundle(identifier: "com.framework.bundle") ?? Bundle.main, comment: "Actual String")
Topic:
Programming Languages
SubTopic:
Swift
Tags: