On Your Site
Local Development
Site Code
Guides
Site Configuration
Content Management
Forms
Form API
Templates
Site Config
Languages
These Dijon Platform site configuration methods allow you to manage how Dijon Platform handles languages.
setDefaultLanguage
This sets the default language to be used on a page, if there are no more specific rules.
Example
$config->setDefaultLanguage('en');
setExpectedLanguages
Sets a list of languages which Dijon is expecting.
Example
$config->setExpectedLanguages(['en','fr','de']);
setLanguageCountryInfo
Sets which language should be shown to users from which countries.
Example
$config->setLanguageCountryInfo([
'de' => [
'DE'
],
'fr' => [
'FR',
'CH'
],
]);