3
0
Fork 0
mirror of https://github.com/farmOS/farmOS.git synced 2024-02-23 11:37:38 +01:00
farmOS/modules/core/l10n/farm_l10n.install

22 lines
564 B
PHP
Raw Normal View History

<?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', [
2023-02-07 23:09:07 +01:00
'language-user' => 0,
'language-selected' => 50,
])->save();
// Configure automatic monthly language updates.
\Drupal::configFactory()->getEditable('locale.settings')->set('translation.update_interval_days', 30)->save();
}