Plugin localization

Trying to localize @MWDelaney plugin for CPT and set up its language directory:

* Text Domain: sj-CPT
* Domain Path: /languages

namespace MWD\ExampleCPT;

function sj_load_textdomain() {
  load_plugin_textdomain( 'sj-CPT', false, dirname( plugin_basename( __FILE__ ) ) . '/languages' );
add_action( 'init', __NAMESPACE__ . '\\sj_load_textdomain' );

The file is loaded only from web/app/languages/plugins but not from languages directory inside plugin. Is there something Bedrock or Sage related Iā€™m missing?

1 Like