Comments (5)
Hi @luiszambon
There are a few ways to change the strings in the SDK.
As mentioned in the documentation, you can change the localisation file with the language
property.
To change the language to be French, you would need to place "fr":
MBCMicroblinkApp.shared().language = "fr"
The localisation files are .strings
files located in the BlinkCard.xcframework
.
So, for instance, if you wanted to change a string in the English localisation file, you would need to go to:
BlinkCard.xcframework > ios-arm64_armv7 (os simulator/maccatalyst) > Resources > en.strings
Once you open the file, there you can see all of the strings which can be displayed in the English language.
Also, you could create your own localisation file, where you need to add all of the keys (a key is, for instance: "blinkcard_overlay_camera_too_high_message", which can be found in all of the .strings files) and add your own strings and name the file, for instance, myLocalisationFile.strings
However, you would need to place this file before you are initialising the SDK.
For instance, you could place it in the AppDelegate
, or in the viewDidLoad()
So, the line of code would look like:
MBCMicroblinkApp.shared().language = "myLocalisationFile"
A second way of changing the strings are via the MBCBlinkCardOverlaySettings:
let blinkCardOverlaySettings = MBCBlinkCardOverlaySettings()
blinkCardOverlaySettings.frontSideMessage = "Your front side message"
blinkCardOverlaySettings.backSideMessage = "your backside message"
Let me know if this helped.
from blinkcard-ios.
Thank you for the fast response, we will try again.
from blinkcard-ios.
Hi, we found a way to do it. Thanks for you support.
from blinkcard-ios.
Of course, let me know if you have any additional questions.
from blinkcard-ios.
Hello, We still having problems, because we are not using this class MBCMicroblinkApp
, we use MBCMicroblinkSDK
, so we don't have access to the method you said.
And also we don't have access to the files inside .xcframework
from blinkcard-ios.
Related Issues (14)
- Unable to find a specification for `MBBlinkCard (~> 1.0.1)` HOT 3
- cardholder name is always return out to be nil HOT 3
- License has expired for Sample Project HOT 1
- Crash with MBRecognizerRunnerViewController HOT 3
- Getting recognizer's results after scanning only the first side of the card HOT 3
- Test plans fail to build HOT 3
- Unable to install the SDK via SPM HOT 3
- Direct processing API always returns empty HOT 6
- Crash: Thread 1: "Your license key is invalid! Please check if you have all wanted rights." HOT 1
- Support for iOS 12 HOT 1
- MBCscanningRegionForFrameInBounds HOT 1
- Credit card scanning
- Cannot use version 2.9.0 as SMP - No exact Version HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from blinkcard-ios.