Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Swift - How to use localisation from Shared Extension

How can I use container apps localized strings from shared extension in Swift. I have already added containers strings files into extension -> build phase -> compile sources but its still not working. Should I set anything in configuration? From main container app strings are translated but from shared extension it shows only the string keys/ids for texts.

like image 248
Sazzad Hissain Khan Avatar asked Sep 06 '16 06:09

Sazzad Hissain Khan


1 Answers

You need to change target membership of the Localizable.strings file. Select Localizable.strings in the Project Navigator on the left, then open File Inspector on the right and add checkmark next to your extension target in the "Target Membership" field.

enter image description here

like image 72
ovejka Avatar answered Oct 24 '22 18:10

ovejka