Skip to main content

White-Label Languages

Unit 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).

info

More information about languages and customizations can be found here

Create Language

Creates language for white label components.

VerbPOST
Urlhttps://api.s.unit.sh/white-label/language
Data TypewhiteLabelLanguage
Timeout (Seconds)5

Attributes

NameTypeDescription
namestringLanguage Name.
localstringLanguage Local.
globalobjectGlobal language setup.
elementsCardobjectCard element language setup.
elementsAccountobjectAccount element language setup.
elementsBookPaymentobjectBook payment element language setup.
elementsAchCreditobjectACH Credit element language setup.
elementsAchDebitobjectACH Debit element language setup.
elementsCheckDepositobjectCheck deposit element language setup.
elementsActivityobjectActivity element language setup.
Example Request:
curl -X POST 'https://api.s.unit.sh/white-label/language'
-H 'Content-Type: application/vnd.api+json'
-H 'Authorization: Bearer ${TOKEN}'
--data-raw '{
"data": {
"type": "whiteLabelLanguage",
"attributes": {
"name": "Default English Localization",
"local": "en",
"global": {
"months": {
"january": "January",
"february": "February",
"march": "March",
"april": "April",
"may": "May",
"june": "June",
"july": "July",
"august": "August",
"september": "September",
"october": "October",
"november": "November",
"december": "December"
}
},
"elementsAccount": {
"title": "Account {{maskedAccountNumber}}",
"availableBalance": "Available Balance",
"accountActions": {
"title": "Account Actions",
"accountDetails": "Account Details",
"accountStatements": "Account Statements",
"bankVerificationLetter": "Bank Verification Letter"
},
"accountDetails": {
"title": "Account {{maskedAccountNumber}}",
"subtitle": "{{accountName}}",
"accountOwner": "Account owner",
"accountNumber": "Account number",
"accountRoutingNumber": "Routing number",
"accountPurpose": "Account Purpose",
"bank": "Bank"
},
"accountStatements": {
"title": "Account Statements",
"subtitle": "Download account statement for account ending with #{{accountNumberLast4Digits}}",
"downloadStatementButton": "Save Statement"
},
"accountList": {
"title": "Switch Account",
"accountTitle": "{{accountPurposeWords}} {{maskedAccountNumber}}",
"accountSubtitle": "{{accountName}}"
}
}
}
}
}'

Response

Response is a JSON:API document.

201 Created

FieldTypeDescription
dataobjectThe requested resource after the operation was completed.
linksobjectRelated Link object with url to be used in component.
FieldTypeDescription
typeStringType of the resource in link.
hrefobjectURL to be set in language property of component.
Example Response:
{
"data": {
"type": "whiteLabelLanguage",
"id": "10008",
"attributes": {
"...": "..."
},
"links": {
"related": {
"type": "application/json",
"href": "https://ui.s.unit.sh/resources/982/languages/605676c1-b00b-4748-9fa4-258d1a28c3fb.json"
}
}
}
}

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.

VerbPUT
Urlhttps://api.s.unit.sh/white-label/language/{id}
Data TypewhiteLabelLanguage
Timeout (Seconds)5

Get Language

Get white label language by id.
VerbGET
Urlhttps://api.s.unit.sh/white-label/language/{id}
Data TypewhiteLabelLanguage
Timeout (Seconds)5
Example Request:
curl -X GET 'https://api.s.unit.sh/white-label/language/{id}' \
-H "Authorization: Bearer ${TOKEN}"