Languages

White-Label Languages

Mansar white-label UI components are highly customizable. You can customize the texts presented by the components to align with the language of your app and brand. You can create multiple language settings, and even multiple language settings for the same local (for example - use different wording based on user type).

I

Create Language

Creates language for white-label components.

Verb

POST

Url

https://api.s.usemansar.xyz/white-label/language

Data Type

whiteLabelLanguage

Timeout (Seconds)

5

Attributes

Name
Type
Description

name

string

Language Name.

local

string

Language Local.

global

object

Global language setup.

elementsCard

object

Card element language setup.

elementsAccount

object

Account element language setup.

elementsBookPayment

object

Book payment element language setup.

elementsMobilepaymentCredit

object

Mobile Payment Credit element language setup.

elementsMobilepaymentDebit

object

Mobile PaymentDebit element language setup.

elementsActivity

object

Activity element language setup.

Example Request:

Response

Response is a JSON:API document.

201 Created

Field
Type
Description

data

object

The requested resource after the operation was completed.

links

object

Related Link object with url to be used in component.

Related

Field
Type
Description

type

String

Type of the resource in link.

href

object

URL to be set in language property of component.

Example Response:

Update Language

Updates language for white-label components.

NOTE

You need to send the full language object in the request body, not only the fields that were changed.

Verb

PUT

Url

https://api.s.usemansar.xyz/white-label/language/{id}

Data Type

whiteLabelLanguage

Timeout (Seconds)

5

Get Language

Get white label language by id.

Verb

GET

Url

https://api.s.usemansar.xyz/white-label/language/{id}

Data Type

whiteLabelLanguage

Timeout (Seconds)

5

Example Request:

Last updated