The "Advanced" core search has this built in. If you prefer to do this from a theme - you could do it with form_alter. This basically hides the advanced search settings and sets current language as the only language to get results from, in the search block and search page.
Alternately you can just allow users to control which language they want to get results from and simply allow them to use advanced search.
Code for theme:
/**
* Implements hook_form_FORM_ID_alter().
*/
function hook_form_search_form_alter(&$form, &$form_state) {
$form['help_link']['#access'] = FALSE;
$form['advanced']['#access'] = FALSE;
$form['basic']['keys']['#title'] = '';
$manager = \Drupal::languageManager();
$form['advanced']['lang-fieldset']['language']['#default_value'] = [$manager->getCurrentLanguage()->getId()];
}
/**
* Implements hook_form_FORM_ID_alter().
*/
function hook_form_search_block_form_alter(&$form, &$form_state) {
$manager = \Drupal::languageManager();
$form['advanced-form'] = [
'#type' => 'hidden',
'#value' => 1,
];
$form['f[0]'] = [
'#type' => 'hidden',
'#value' => 'language:' . $manager->getCurrentLanguage()->getId(),
];
}