new Language()
Creates a new language object
Parameters
Name | Type | Default |
---|---|---|
$props * | array |
– |
For the $props
parameter, you pass an array with the following data, which will be used to set up the Kirby\Cms\Language
object:
Name | Type |
---|---|
code * | string |
default | bool |
direction | string |
locale | string |array |
name | string |
slugs | array |
smartypants | array |
translations | array |
url | string |