Skip to content
Snippets Groups Projects

feat: remove compilation command

Open Bartek Jaskulski requested to merge v0.10 into main
1 file
+ 1
5
Compare changes
  • Side-by-side
  • Inline
@@ -7,8 +7,7 @@ use WPDesk\Init\Plugin\Plugin;
class I18n implements Hookable {
/** @var Plugin */
private $plugin;
private Plugin $plugin;
public function __construct( Plugin $plugin ) {
$this->plugin = $plugin;
@@ -23,10 +22,18 @@ class I18n implements Hookable {
}
public function __invoke(): void {
$relative_path = str_replace(
WP_PLUGIN_DIR . '/',
'',
$this->plugin->get_path(
$this->plugin->header()->get( 'DomainPath' )
)
);
\load_plugin_textdomain(
$this->plugin->get_slug(),
false,
$this->plugin->header()->get( 'DomainPath' )
$relative_path
);
}
}
Loading