Code Monkey home page Code Monkey logo

Comments (5)

mparadina avatar mparadina commented on July 18, 2024 2

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.

luiszambon avatar luiszambon commented on July 18, 2024 1

Thank you for the fast response, we will try again.

from blinkcard-ios.

luiszambon avatar luiszambon commented on July 18, 2024 1

Hi, we found a way to do it. Thanks for you support.

from blinkcard-ios.

mparadina avatar mparadina commented on July 18, 2024

Of course, let me know if you have any additional questions.

from blinkcard-ios.

luiszambon avatar luiszambon commented on July 18, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.