🎓intermediate⏱15 min.Ios Sdk For SAP BTPIntermediateIosMobileOdataSAP Business Technology PlatformSAP Mobile Services
You will learn
โHow to enable SAP Translation Hub in your SAP BTP trial account
โHow to add your SAP Translation Hub account into the SAP BTP SDK Assistant for iOS
โHow to create multilingual capabilities to your Xcode project using the SAP BTP SDK Assistant for iOS
โHow to modify and correct the generated translations In this tutorial, you will use the SAP BTP’s integration with SAP Translation Hub to add multilingual features to your iOS app generated with the SAP BTP SDK Assistant for iOS. This way, you can run your app in many languages, depending on your device’s preferred language. [ACCORDION-BEGIN [Step 1: ](Enable SAP Translation Hub)] Log on to your SAP BTP account at https://account.hanatrial.ondemand.com/cockpit/, log in and choose Neo Trial as landscape. In the navigation on the left select Services. Locate the SAP Translation Hub tile (search for translation):Enable SAP Translation HubIf it is not yet enabled, click the tile. In the next page, click the Enable button:Enable SAP Translation HubOnce the SAP Translation Hub service is enabled, click the Go to UI for Translation Workflow link at the bottom.Enable SAP Translation HubThe SAP Translation Hub web interface will open in a new tab:Enable SAP Translation HubLeave the SAP Translation Hub web interface open for now, as we will need it later. [DONE] [ACCORDION-END] [ACCORDION-BEGIN [Step 2: ](Enable SAP Translation Hub in the SAP BTP SDK Assistant for iOS)] Open the SAP BTP SDK Assistant for iOS. Click the Manage Accounts option in the lower-left corner:Enable SAP Translation HubClick the Add new… button to add a new account.Enable SAP Translation HubFrom the Type dropdown list, select SAP BTP Translation Hub:Enable SAP Translation HubEnter the following values to your new account configuration: | Field | Value | |—-|—-| | Name | A descriptive name for the configuration, for instance SAP Translation Hub | | Base URL | https://saptranslation-<your_trial_account_user>trial.hanatrial.ondemand.com/ | | User | Your trial account user | | Password | Password for your trial account user |Enable SAP Translation HubClick Save when done. The account is now added to the SAP BTP SDK Assistant for iOS:Enable SAP Translation HubGo back to the main screen by clicking Back. [DONE] [ACCORDION-END] [ACCORDION-BEGIN [Step 3: ](Add translations)] If you don’t have an application for the translation you can simple create one by adding a sample app in the SAP BTP SDK Assistant for iOS. For that simply click on the Create new button on the initial screen.Add Sample AppNext select the Sample App tile to go to the creation process.Add Sample AppMake sure your Mobile Services account is selected and click on Next.Add Sample AppNow the assistant will ask you to add an SAP Mobile Services application. You can fill out the fields as you wish.Add Sample AppThe last step is to create the Xcode project. Fill out the fields as you wish.Add Sample AppThe project you just created is a fully functional iOS app connected against one of our sample services. After the creation you will see the project in the Recent Projects list on the initial screen. If you click on All Projects you will get an overview of all your projects.Add Sample AppOn the Manage Screen click on Translate under the Add Translation part on the right side.Add translations[DONE] [ACCORDION-END] [ACCORDION-BEGIN [Step 4: ](Add translation to your project)] Now we will go through the translation flow to add localization to our app. First select the previously added Translation Hub account and click on Next.Add translationsThe Translation Hub doesn’t have a project yet so click on Add new to create one.Add translationsFor the Translation Hub Project Details enter a Project Name and select the languages you want to translate to. Click on Save.Add translationsYou will see now the created Translation Hub project. Select it and click on Finish.Add translations[DONE] [ACCORDION-END] [ACCORDION-BEGIN [Step 5: ](Examine the updated Xcode project)] Open the Xcode project for your app. Notice the added InfoPlist.strings and Localizable.strings files for the languages you have selected for translation:Add translationsIf you run the app now, and change the simulators language to one of the languages you translated to, you will see the strings have changed. It can happen that some of the translations are not 100% correct. You can fix that relatively easy by changing the values in the Localizable.strings file or you can do it in the SAP Translation Hub.Add translations[DONE] [ACCORDION-END] [ACCORDION-BEGIN [Step 6: ](Modify the generated translations)] Go back to your cloud account and make sure you’re on the Neo landscape. Navigate to Services > SAP Translation Hub in your SAP BTP trial account and click the Go to UI for Translation Workflow link. The SAP Translation Hub web interface will open in a new tab. you will now see the just added MySampleApp project:Add translationsClick on the Translations tab. On this page, an overview of the original texts and the translated texts for the selected languages are shown:Add translationsHere you can correct any translations that may be incorrect, and click the Save Project button once done. [DONE] [ACCORDION-END] [ACCORDION-BEGIN [Step 7: ](Re-import the modified translations)] If you changed some of the translations in the SAP Translation Hub you have to run the translation out of the SAP BTP SDK Assistant for iOS again. To do so go back to the All Projects, select the project for localization and click on Translate. After finishing up the process the service should have updated the localized Strings in your Xcode project. [DONE] [ACCORDION-END] [ACCORDION-BEGIN [Step 8: ](Localize the app name)] If you go back to Xcode you will see "CFBundleName" = "$(PRODUCT_NAME)"; in the InfoPlist.strings file. This will help choose the correct translation of your app’s name. It is necessary to translate the app’s name manually, so we need to add translations for that. Each of the InfoPlist.strings files represent one of the languages. Go in each of them and change the "$(PRODUCT_NAME)" to a proper bundle name also add the following line of code right below it: swift "CFBundleDisplayName" = "Your translated application name";Add translationsIf you run the app now you should see the value you entered:Add translations[VALIDATE_8] [ACCORDION-END]
How to enable SAP Translation Hub in your SAP BTP trial account
How to add your SAP Translation Hub account into the SAP BTP SDK Assistant for iOS
How to create multilingual capabilities to your Xcode project using the SAP BTP SDK Assistant for iOS
How to modify and correct the generated translations
In this tutorial, you will use the SAP BTP’s integration with SAP Translation Hub to add multilingual features to your iOS app generated with the SAP BTP SDK Assistant for iOS. This way, you can run your app in many languages, depending on your device’s preferred language.
Click Save when done. The account is now added to the SAP BTP SDK Assistant for iOS:
Enable SAP Translation Hub
Go back to the main screen by clicking Back.
Step 3Add translations
+
If you don’t have an application for the translation you can simple create one by adding a sample app in the SAP BTP SDK Assistant for iOS.
For that simply click on the Create new button on the initial screen.
Add Sample App
Next select the Sample App tile to go to the creation process.
Add Sample App
Make sure your Mobile Services account is selected and click on Next.
Add Sample App
Now the assistant will ask you to add an SAP Mobile Services application. You can fill out the fields as you wish.
Add Sample App
The last step is to create the Xcode project. Fill out the fields as you wish.
Add Sample App
The project you just created is a fully functional iOS app connected against one of our sample services. After the creation you will see the project in the Recent Projects list on the initial screen. If you click on All Projects you will get an overview of all your projects.
Add Sample App
On the Manage Screen click on Translate under the Add Translation part on the right side.
Add translations
Step 4Add translation to your project
+
Now we will go through the translation flow to add localization to our app.
First select the previously added Translation Hub account and click on Next.
Add translations
The Translation Hub doesn’t have a project yet so click on Add new to create one.
Add translations
For the Translation Hub Project Details enter a Project Name and select the languages you want to translate to. Click on Save.
Add translations
You will see now the created Translation Hub project. Select it and click on Finish.
Add translations
Step 5Examine the updated Xcode project
+
Open the Xcode project for your app. Notice the added InfoPlist.strings and Localizable.strings files for the languages you have selected for translation:
Add translations
If you run the app now, and change the simulators language to one of the languages you translated to, you will see the strings have changed. It can happen that some of the translations are not 100% correct. You can fix that relatively easy by changing the values in the Localizable.strings file or you can do it in the SAP Translation Hub.
Add translations
Step 6Modify the generated translations
+
Go back to your cloud account and make sure you’re on the Neo landscape.
Navigate to Services > SAP Translation Hub in your SAP BTP trial account and click the Go to UI for Translation Workflow link. The SAP Translation Hub web interface will open in a new tab. you will now see the just added MySampleApp project:
Add translations
Click on the Translations tab. On this page, an overview of the original texts and the translated texts for the selected languages are shown:
Add translations
Here you can correct any translations that may be incorrect, and click the Save Project button once done.
Step 7Re-import the modified translations
+
If you changed some of the translations in the SAP Translation Hub you have to run the translation out of the SAP BTP SDK Assistant for iOS again.
To do so go back to the All Projects, select the project for localization and click on Translate.
After finishing up the process the service should have updated the localized Strings in your Xcode project.
Step 8Localize the app name
+
If you go back to Xcode you will see "CFBundleName" = "$(PRODUCT_NAME)"; in the InfoPlist.strings file. This will help choose the correct translation of your app’s name. It is necessary to translate the app’s name manually, so we need to add translations for that.
Each of the InfoPlist.strings files represent one of the languages. Go in each of them and change the "$(PRODUCT_NAME)" to a proper bundle name also add the following line of code right below it:
Share feedback on this tutorial or join the conversation in SAP Community.
Submit detailed feedbackDiscuss in Community
Steps
Step 1 of 8
1. Enable SAP Translation Hub2. Enable SAP Translation Hub in the SAP BTP SDK Assistant for iOS3. Add translations4. Add translation to your project5. Examine the updated Xcode project6. Modify the generated translations7. Re-import the modified translations8. Localize the app name
Joule
AI Notice
Joule is an AI assistant. Generative AI may produce inaccurate, incomplete, or biased information. Always verify important details before acting on them.
Conversations are sent to SAP-hosted large language models for processing. Do not include personal data, credentials, or confidential information in your messages.
Joule's responses are based on the SAP tutorial catalog and may not reflect the latest product changes. For authoritative guidance, consult the linked tutorials and official SAP documentation.