Regula SDK supports localization using standard iOS System Settings. If any language is required by your application, but is not supported by Regula SDK, or you want to change our localized strings, you can add localized strings to additional resource files and allow the Regula SDK to be presented to the users in their desired system locale. To get started, include the string resource file named
RegulaSDK.strings, which is provided with the latest SDK release version to your project's
Resources folder. This file name is required and customization will only work if it is set as specified. Next, navigate to
Project Settings → Info and in the
Localizations section add desired languages.
Now you can redefine every string in Regula SDK with the appropriate translated values. Thus, when the user set its device's System Language to a language supported by your application, Regula SDK will utilize the appropriate string resources.
RegulaSDK.strings file with all available strings can be found here:
Project-name/Pods/DocumentReader/DocumentReader.framework/en.lproj/RegulaSDK.strings or can be downloaded right here.
❗ If the Document Reader SDK is added inside another SDK where strings are modified, don't forget to add the following line of code, otherwise, strings won't be changed:
DocReader.shared.localizationClassName = self.classForCoder
[RGLDocReader shared].localizationClassName = self.classForCoder;