v1
latestOpenAPI 3.0.0Proprietary2026-07-26316155742.7 KBLocales
Create a locale
Create a new locale.
post/projects/{project_id}/locales
Path parameters
project_idstring required
Project ID
Headers
X-PhraseApp-OTPstring
Two-Factor-Authentication token (optional)
Request body
Example request
{
"branch": "my-feature-branch",
"name": "de",
"code": "de-DE",
"source_locale_id": "abcd1234abcd1234abcd1234abcd1234",
"fallback_locale_id": "abcd1234abcd1234abcd1234abcd1234",
"language_ai_profile": "abcd1234abcd1234abcd1234abcd1234"
}Response
Created
Example response
{
"statistics": {
"keys_total_count": 2120,
"keys_untranslated_count": 100,
"words_total_count": 3102102,
"translations_completed_count": 1920,
"translations_unverified_count": 32,
"unverified_words_count": 129,
"missing_words_count": 3920
}
}