mirror of
https://ghproxy.net/https://github.com/fairpm/fair-plugin.git
synced 2025-09-04 10:32:01 +08:00
Fix loading translations (#96)
Signed-off-by: Teemu Suoranta <teemu.suoranta@evermade.fi>
This commit is contained in:
parent
96daf2b956
commit
1469385277
1 changed files with 6 additions and 0 deletions
|
@ -36,4 +36,10 @@ require_once __DIR__ . '/inc/version-check/namespace.php';
|
|||
// External dependencies.
|
||||
require_once __DIR__ . '/inc/updater/class-lite.php';
|
||||
|
||||
// Load translations.
|
||||
function load_textdomain() {
|
||||
load_plugin_textdomain( 'fair', false, dirname( plugin_basename( PLUGIN_FILE ) ) . '/languages' );
|
||||
}
|
||||
add_action( 'init', __NAMESPACE__ . '\load_textdomain' );
|
||||
|
||||
bootstrap();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue