$language->locale()

Returns the locale string

  • return (string)

Example

<?= $site->language('en')->locale() ?>