Native iOS

šŸŒ Native iOS Internationalization for Ditto ID SDK

This guide provides steps to programmatically change the SDK language in a Native iOS app using the Ditto ID SDK, based on Section 11.5.2 of the integration guide.


🧾 Overview

Internationalization allows users to select their preferred language within the app. To reflect this change in all Ditto ID SDK components, you must store the selected locale in the app’s shared preferences so that the SDK can adapt accordingly.


šŸ”§ Implementation

Use the following code snippets to store the locale when the user changes the app language.


šŸ“± Swift



🧠 Notes

  • The locale string should be in the ISO 639-1 format (e.g., "en", "hi", "de").

By saving the selected locale this way, the Ditto ID SDK will dynamically adapt its UI and messages to the user’s language preference, enabling full internationalization support.