Files
medicalalert-web-reloaded/wp/wp-content/plugins/divi-builder/includes/builder/frontend-builder/i18n.php
Rachit Bhargava 5d0f0734d8 first commit
2023-07-21 17:12:10 -04:00

13 lines
369 B
PHP

<?php
// Add strings from i18n directory. Note: We don't handle subdirectories, but we should in the future.
$i18n_files = glob( __DIR__ . '/i18n/*.php' );
$strings = array();
foreach ( $i18n_files as $file ) {
$filename = basename( $file, '.php' );
$key = et_()->camel_case( $filename );
$strings[ $key ] = require $file;
}
return $strings;