diff --git a/app/Providers/LocalizationServiceProvider.php b/app/Providers/LocalizationServiceProvider.php index e42e59d8c..a1958b291 100644 --- a/app/Providers/LocalizationServiceProvider.php +++ b/app/Providers/LocalizationServiceProvider.php @@ -40,6 +40,7 @@ protected function loadModuleLocale() foreach( $active as $module ) { if ( isset( $module[ 'langFiles' ] ) && + isset( $module[ 'langFiles' ][ app()->getLocale() ] ) && Storage::disk( 'ns-modules' )->exists( $module[ 'langFiles' ][ app()->getLocale() ] ) ) { $locales = json_decode( file_get_contents( base_path( 'modules' . DIRECTORY_SEPARATOR . $module[ 'langFiles' ][ app()->getLocale() ] ) ), true );