Documentation

LanguageApi extends AbstractApi
in package

Crowdin supports more than 300 world languages and custom languages created in the system.

Use API to get the list of all supported languages and retrieve additional details (e.g. text direction, internal code) on specific language.

Table of Contents

Methods

create()  : Language|null
Add Custom Language
delete()  : mixed
Delete Custom Language
get()  : Language|null
Get Language Info
list()  : ModelCollection
List Supported Languages
update()  : Language|mixed
Edit Custom Language

Methods

create()

Add Custom Language

public create(array<string|int, mixed> $data) : Language|null
Parameters
$data : array<string|int, mixed>

string $data[name] required
string $data[code] required
string $data[localeCode] required
string $data[textDirection] required
string[] $data[pluralCategoryNames] required
string $data[threeLettersCode] required
string $data[twoLettersCode]
string $data[dialectOf]

Tags
link

API Documentation

link

API Documentation Enterprise

Return values
Language|null

        
On this page

Search results