![]() To do that we will use NSLocalizedString, String(localized:) or a custom shortcut method. Once the keys are set up, let’s learn how to get the translations for these. Localizable.strings (German): "welcome_screen_title" = "Willkommen" Key is a unique identifier that is used in the source code when the application is served to the user, keys are replaced with the corresponding translations for the language set by the user. ![]() As mentioned before, the localization process involves keys and values. So, our Localizable.strings files are ready, therefore let’s populate these. Now you can expand it and see Localizable.strings file for every language: Step 3: Working with translations ![]() Let’s find Localizable.strings using Navigator. In the Choose files and reference language… dialog select the Localizable.strings file for Localization (we are not covering. In this tutorial we’ll add German and Russian languages. Select only the Localizable.strings file for localization. Find the Localization section section, click the “plus” ( +) icon, and add the desired languages. Select your root project file, and then proceed to the project panel. Now you can search for apps and get the bundle ID. Set Restrict App Usage to Do not allow some apps and hit +. In Apple Configurator if you create a new profile and go into -> Restrictions -> Apps. Let’s add some languages to the application and create. I’ve built this list using Apple Configurator. In Utilities, you will see localization panel.Ĭlick Lokalize… and continue to next step. Now, let’s select Localizable.strings file in the Navigator. This solution has worked for me on iOS 9 through 13, both phone and tablet. When I spoke with a developer at Apple who works on Xcode they informed me that resource bundles were not supported by iOS, and they were surprised that this worked at all. Search for strings and you will see Strings File in Resource window:Ĭhoose Strings File and name the file Localizable: 18 Important Disclaimer: Apple does not endorse this solution. Select File → New → File… or just tap Ctrl+N or Cmd+N. Let’s create this file for the base language first. ![]() Localizable.strings stores application strings as key-value pairs for each language. Part I: Setting up your app Step 1: Create Localizable.strings file ![]()
0 Comments
Leave a Reply. |