Skip to content

Commit ce8a2af

Browse files
authored
Fixed : error with module missing languages
1 parent dd21a53 commit ce8a2af

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

app/Providers/LocalizationServiceProvider.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ protected function loadModuleLocale()
4040
foreach( $active as $module ) {
4141
if (
4242
isset( $module[ 'langFiles' ] ) &&
43+
isset( $module[ 'langFiles' ][ app()->getLocale() ] ) &&
4344
Storage::disk( 'ns-modules' )->exists( $module[ 'langFiles' ][ app()->getLocale() ] )
4445
) {
4546
$locales = json_decode( file_get_contents( base_path( 'modules' . DIRECTORY_SEPARATOR . $module[ 'langFiles' ][ app()->getLocale() ] ) ), true );

0 commit comments

Comments
 (0)