Create translations

Integrate own system with SimpleLocalize.

post
Create i18n keys & translations

https://api.simplelocalize.io/api/v2/keys
This endpoint allows you to create new internationalization keys & translations.
Request
Response
Request
Headers
X-SimpleLocalize-Token
required
string
Project Upload Token
Query Parameters
importOptions
optional
string
Check import options below
Body Parameters
content
required
object
Check example request body below
Response
200: OK
{
"uniqueKeysProcessed": 53,
"processedWithWarnings": false,
}
401: Unauthorized
{
"msg": "Wrong credentials"
}
402: Payment Required
{
"msg": //information about the plan
}
404: Not Found
{
"msg": "Project not found"
}

Example request body

{
"content": [
{
"key": "SALE",
"language": "en",
"text": "Sale"
},
{
"key": "SALE",
"language": "pl",
"text": "Sprzedaż"
},
]
}

post
Create i18n keys [deprecated]

https://api.simplelocalize.io/api/v1/keys
This endpoint allows you to create new internationaliztion keys.
Request
Response
Request
Headers
X-SimpleLocalize-Token
required
string
Project Upload Token
Body Parameters
content
required
object
Check example request body below
Response
200: OK
{
"uniqueKeysProcessed": 53,
"processedWithWarnings": false,
}
401: Unauthorized
{
"msg": "Wrong credentials"
}
402: Payment Required
{
"msg": //information about the plan
}
404: Not Found
{
"msg": "Project not found"
}

Example request body [deprecated]

{
"content": [
{
"key": "SALE"
},
{
"key": "ADDRESS"
}
]
}