Skip to content

Added HTML language functionality

Choose a tag to compare

@crumb1e crumb1e released this 13 Nov 10:55
· 37 commits to master since this release

You are able to change what html lang type the page will be on creation. You can enable this functionality by setting the enableLanguageSelection config value to true.

To implement this into your markup, we suggest adding this to your layouts.default view:

<html lang="{{ array_get($page ?? [], 'language', app()->getLocale()) }}">

There is a defaultLanguage config variable that you are free to customise to suit your application. This package comes with en-GB set as the default language.