Glossary
Create glossary entry
Changed onCreates a glossary entry with translations of a term in one or more target languages.
- sourceLanguage and every targets[].targetLanguage must be existing language keys in the project
- if an entry with the same sourceText already exists, its translations are updated instead of duplicated
- caseSensitive makes quality checks match the term and its translations exactly as written, including capitalization; omit it to keep the current value
- targets[].forms lists alternative forms of a translation (plural, cases) accepted by quality checks; omit it to keep the current forms
- glossary is not available in the Community plan
post/api/v1/glossary
Request
- Base URLhttps://api.simplelocalize.io
- AuthAPI key in header X-SimpleLocalize-Token
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Headers
X-SimpleLocalize-Tokenstring required
Request body
Example request
{
"sourceText": "Sign in",
"sourceLanguage": "en",
"targets": [
{
"targetLanguage": "pl",
"targetText": "Zaloguj się",
"forms": [
"Zalogowanie się"
]
}
]
}Response
OK
Example response
{
"data": {
"sourceText": "Sign in",
"sourceLanguage": "en",
"targets": [
{
"targetLanguage": "pl",
"targetText": "Zaloguj się",
"forms": [
"Zalogowanie się"
]
}
]
}
}Changes
- info
endpoint added
- info