46 echo json_encode(
$translations, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES);
foreach(array_keys($combine_languages) as $language) $translations
$language
Build a JSON array of the combined language keys to be used in javascript elgg/i18n.
elgg_get_config(string $name, $default=null)
Get an Elgg configuration value.
elgg_extract($key, $array, $default=null, bool $strict=true)
Checks for $array[$key] and returns its value if it exists, else returns $default.
_elgg_services()
Get the global service provider.