Skip to content

Create Locale ​

Request Body ​

FieldTypeNotes
codestringRequired, unique, regex ^[a-z0-9_-]+$.
namestringRequired.
directionenumRequired, ltr or rtl.
logo_pathstringOptional storage path (binary upload deferred — see warning).

Image upload deferred (v1) ​

logo_path is accepted only as a path string. Multipart binary upload for locale logos is not yet supported via the API — use the admin panel for now. Fires core.locale.create.before/after.

Permission: settings.locales.create.

Released under the MIT License.