1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 14:00:31 +02:00

[ticket/17191] Add language helper function to get composer.json content

PHPBB3-17191
This commit is contained in:
Christian Schnegelberger
2023-09-21 16:32:59 +02:00
committed by Marc Alexander
parent 1cc6a479a1
commit 06f38a5646
2 changed files with 17 additions and 6 deletions

View File

@@ -67,6 +67,18 @@ class language_file_helper
return $available_languages;
}
/**
* Return by given lang key its composer.json value
*
* @return string
*
*/
public function get_lang_key_value($lang_key) : string
{
$available_languages = $this->get_available_languages();
return $available_languages[0][$lang_key];
}
/**
* Collect some data from the composer.json file
*