{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":[]},"type":"markdown"},"seo":{"title":"Locales","description":"Developer documentation for the WHMCS API — the","llmstxt":{"hide":false,"sections":[{"title":"Table of contents","includeFiles":["**/*"],"excludeFiles":[]}],"excludeFiles":[]}},"dynamicMarkdocComponents":[],"compilationErrors":[],"ast":{"$$mdtype":"Tag","name":"article","attributes":{},"children":[{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"locales","__idx":0},"children":["Locales"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Locales define the language and region for a language file."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Each language file in WHMCS requires a locale to be defined in the following format:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"$_LANG['locale'] = \"en_GB\";\n"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The above defines that the language is English (en), and the region is Great Britain (GB)."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The locale information is used by WHMCS to localise and display the language name localised to the native language within the WHMCS client area."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Failure to provide a valid locale will prevent the language file from showing up as available for use within WHMCS."]}]},"headings":[{"value":"Locales","id":"locales","depth":1}],"frontmatter":{"title":"Locales","seo":{"title":"Locales"}},"lastModified":"2026-08-03T17:00:42.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/languages/locales","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}