geweald / flutter_onfido

Flutter Onfido Plugin
MIT License
8 stars 20 forks source link

Custom localisation #18

Open maniveltvl opened 2 years ago

maniveltvl commented 2 years ago

Hi, Team

Where do we need to add localisation files for Android and iOS? Please add new localisation files in Android and iOS platform of example app.

Thanks Manivel

geweald commented 2 years ago

Hi @maniveltvl based on the #15 :

Added an optional parameter "locale" to the class "OnfidoConfig" to support custom localization. If the parameter "locale" is passed, the custom translations of the locale can be loaded. Custom translations can be maintained by following the guides of the official SDK documentation:

Android: https://documentation.onfido.com/sdk/android/#localization iOS: https://documentation.onfido.com/sdk/ios/#language-customization

Can you try?

filofan1 commented 2 years ago

Hello Did someone managed to link external localization file for iOS ? Im struggling with this for 2 days already, I think i tried to put the file in all possible places, with no result. According to the official documentation, there is also way to add internal translation into the SDK, but i'd have to manually add the sdk to the plugin rather than from cocoapods, am I right? Without this I'm unable to open Onfido framework with xCode.

I'd be gratefull for any tips