Skip to content

vyskoczilova/Simple-Admin-Language-Change

Repository files navigation

Simple Admin Language Change

plugin repository

The lightweight plugin extends the default functionality and pulls out the language selection to the admin bar so you can easily switch between them.

Plugin preview

Customization

Use the salc_languages filter to control which languages appear in the dropdown:

add_filter( 'salc_languages', function ( $languages ) {
    $allowed = array( 'en_US', 'cs_CZ', 'de_DE' );
    $languages['available'] = array_filter(
        $languages['available'],
        function ( $lang ) use ( $allowed ) {
            return in_array( $lang['value'], $allowed, true );
        }
    );
    return $languages;
} );

About

WP plugin that lets you change your dashboard language quickly and easily from the admin bar as often as you need.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors