Skip to content
Vladas Drejeris edited this page Jun 4, 2021 · 2 revisions

Localizing SDK strings

Adform SDK allows publishers to localize texts used in ad views. These texts may be localized using two methods:

  1. By setting localized texts through AdformSDK shared instance. This method is convenient when an application uses custom localization and allows users to select the language in-app. In this case, you should set localized texts on application launch and every time when the user changes the app language.

Swift

AdformSDK.setLocalizedString("Skip", forKey: AFSkipLocalizationKey)
Objective-C
[AdformSDK setLocalizedString:@"Skip" forKey:AFSkipLocalizationKey];
  1. By using default app localization through Localizable.strings and NSLocalizedString macro. You can just add strings used by SDK to your localized strings files and SDK will use them automatically.

At the moment SDK provides these texts for translation:

"AFSkipLocalizationKey" = "Skip";
"AFSkipInLocalizationKey" = "Skip in";
Clone this wiki locally