version 4.13.0
This commit is contained in:
12
includes/builder/frontend-builder/i18n.php
Normal file
12
includes/builder/frontend-builder/i18n.php
Normal file
@ -0,0 +1,12 @@
|
||||
<?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;
|
Reference in New Issue
Block a user