Create translations

Integrate own system with SimpleLocalize.

post
Create translation keys and 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ż"
},
]
}