.mo). WordPress // prefers a language pack from translate.wordpress.org and falls back to the folder registered here, so a language the // packs do not cover yet (or a copy installed from the developer portal's zip) is still translated. On `init`: // WordPress 6.7 warns about a text domain loaded earlier. add_action( 'init', static function () { // phpcs:ignore PluginCheck.CodeAnalysis.DiscouragedFunctions.load_plugin_textdomainFound -- registers the bundled languages/ folder as the fallback behind the language packs (see above). load_plugin_textdomain( 'vimine', false, dirname( plugin_basename( __FILE__ ) ) . '/languages' ); } ); add_action( 'plugins_loaded', static function () { Vimine_Settings::init(); Vimine_Auth::init(); Vimine_Shortcodes::init(); Vimine_Blocks::init(); } );