0

I found the following issue exists for a long time, And I also find there are many solutions available, But this thread is to get recommended way to do it.

Issue: We cannot able to localise the images directly from assets folder but we can able to localise the images which we place it in File inspector as shown in the image.

enter image description here

I need to know the answers for the following questions: - Why we don't have localisation for images in Assets folder ? - What is the Apple recommended way to localise images ?

Please answer the questions. And if you have any link recommended by Apple please add that with your answers.

Note: - Its not a duplicate question, am asking this since we know we cannot able to extract / reverse engineer to get the images used in the iOS application assets. But thats not the case with the images placed in the file inspector which can be extracted. So this question is all about Apple's recommended way to approach image localisation and not possible solution.

Bharath
  • 2,064
  • 1
  • 14
  • 39
  • Possible duplicate of [How to localize the images in Images.xcassets?](http://stackoverflow.com/questions/21310819/how-to-localize-the-images-in-images-xcassets) – HAS Sep 28 '16 at 05:47
  • @HAS : This question is all about Apple's recommended way for solving this and not to have possible solution as asked in questions. So I hope its not a duplication. – Bharath Sep 28 '16 at 06:00

1 Answers1

0

There is not any correct way to localise the xcassets file directly, but still you can localize the name of the asset to get using your localizable.strings file.

For example:- you want to put any main image at home screen for different different region so you can save that image to xcassets to using their localise name and you can fetch that image like this.

UIImage *img = [UIImage imageNamed:NSLocalizedString(@"Main_image", nil)];

and here is the link from apple that spacify how you can localize the image. LINK

Ravi Panchal
  • 1,285
  • 10
  • 22