mirror of
https://github.com/farmOS/farmOS.git
synced 2024-02-23 11:37:38 +01:00
22 lines
564 B
PHP
22 lines
564 B
PHP
<?php
|
|
|
|
/**
|
|
* @file
|
|
* Install, update and uninstall functions for the farm_l10n module.
|
|
*/
|
|
|
|
/**
|
|
* Implements hook_install().
|
|
*/
|
|
function farm_l10n_install() {
|
|
|
|
// Configure the enabled language detection methods.
|
|
\Drupal::configFactory()->getEditable('language.types')->set('negotiation.language_interface.enabled', [
|
|
'language-user' => 0,
|
|
'language-selected' => 50,
|
|
])->save();
|
|
|
|
// Configure automatic monthly language updates.
|
|
\Drupal::configFactory()->getEditable('locale.settings')->set('translation.update_interval_days', 30)->save();
|
|
}
|