$language->locale()

Returns the locale string

  • return (string)

Example

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