17

I am comfortable with localizing strings and images within the app. But I am having a lot of difficulty trying to localize the app icon for my supported languages (english and german).

Is this even possible? According to the Apple documentation, you can:

An iOS application should be internationalized and have a language.lproj folder for each language it supports. In addition to providing localized versions of your application’s custom resources, you can also localize your application icons and launch images by placing files with the same name in your language-specific project directories. Even if you provide localized versions, however, you should always include a default version of these files at the top-level of your application bundle. The default version is used in situations where a specific localization is not available. For more information about localized resources, see “Localized Resources in Bundles.”

I have tried to do this with no luck. There doesn't seem to be any helpful resources?

Other things I've tried:

Localized App Icons with Retina Display for iOS

https://iphonedevsdk.vanillaforums.com/forum/iphone-sdk-development/77660-i-have-problem-localizing-application-icon.html

Has anyone successfully achieved a localized app icon?

Community
  • 1
  • 1
Andrew Davis
  • 2,310
  • 1
  • 24
  • 43
  • 1
    How did you test this? This has always been working flawlessly for me. – Mundi Jun 24 '13 at 15:03
  • 1
    Did you completely delete you app from the device when doing this? Adding localization will sometimes not work when just updating the app from Xcode. – Krumelur Jun 24 '13 at 15:06
  • i thought it was as simple as tossing the icon in your folder, if your having trouble delete the app and try a new clean and build – rezand Jun 24 '13 at 15:13
  • I am testing on the simulator. I have reset content and settings and also cleaned the build to ensure I start a fresh. – Andrew Davis Jun 25 '13 at 09:57
  • I know it is not a real solution but have you tried [that](http://www.badrit.com/blog/2011/6/14/localization-of-your-ios-application-s-icon-png) ? – Gomino Jul 03 '13 at 01:54

2 Answers2

24

Since iOS 4.0, this simply doesn't seem to be possible anymore. As of 2015, the documentation has been updated and now only states that Launch Images can be localized (but does not mention App Icons anymore).

The fact that this isn't working has been confirmed by an an Apple employee on the devforums (login required) in 2010: https://devforums.apple.com/message/330960

Bugreports have been submitted for several years, but nothing has changed. I suppose Apple wants you to use the same icon for your app all over the world – or create separate apps for specific markets.

Andreas Ley
  • 9,109
  • 1
  • 47
  • 57
1

Actually, there is a way to localize the AppIcon. By using the alternative App Icon. You can change the app icon at the run time.

        if Locale.current.language.languageCode?.identifier == "en" {
            UIApplication.shared.setAlternateIconName("AppIcon-en") { (error) in
                print(error)
            }
        }
Ji Fang
  • 3,288
  • 1
  • 21
  • 18
  • Here is some [additional detail](https://www.hackingwithswift.com/example-code/uikit/how-to-change-your-app-icon-dynamically-with-setalternateiconname) on how to set up the possible icons. Also note that this solution doesn't let you change the icon in the store before you download the app. – Patrick Fay Feb 28 '23 at 01:09