Get the current site language code by converting underscore (db-friendly) to dash (URL-friendly)
Parameters | |||
---|---|---|---|
string
|
$lang = null |
The language code (optional - if not provided, the current language code will be used) |
# |
Returns | |
---|---|
string
|
The language code |