This repository has been archived on 2022-06-23. You can view files and clone it, but cannot push or open issues or pull requests.
divi/includes/builder/frontend-builder/i18n.php
2021-12-07 11:08:05 +00: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;