1212use Illuminate \Support \Facades \App ;
1313use Illuminate \Support \Facades \Cache ;
1414use Illuminate \Support \Facades \Gate ;
15+ use Illuminate \Support \Arr ;
1516use Illuminate \Support \Str ;
1617use Symfony \Component \Finder \Finder ;
1718use Vsch \TranslationManager \Classes \PathTemplateResolver ;
@@ -1265,7 +1266,7 @@ function importTranslations($replace, $groups = null)
12651266 // just update the locale with translations, keys are already LTM keys here
12661267 $ translations = $ jsonTranslations [$ locale ];
12671268 } else {
1268- $ translations = array_dot (include ($ langFile ));
1269+ $ translations = Arr:: dot (include ($ langFile ));
12691270 }
12701271 $ this ->importTranslationFile ($ locale , $ db_group , $ translations , $ replace );
12711272 }
@@ -1652,7 +1653,7 @@ function makeTree($translations)
16521653 {
16531654 $ array = array ();
16541655 foreach ($ translations as $ translation ) {
1655- array_set ($ array [$ translation ->locale ][$ translation ->group ], $ translation ->key , $ translation ->value );
1656+ Arr:: set ($ array [$ translation ->locale ][$ translation ->group ], $ translation ->key , $ translation ->value );
16561657 }
16571658 return $ array ;
16581659 }
@@ -1666,7 +1667,7 @@ function getLostDotTranslation($translations, $tree)
16661667 $ group = $ translation ->group ;
16671668 $ key = $ translation ->key ;
16681669 if (!array_key_exists ($ key , $ nonArrays )) {
1669- $ value = array_get ($ tree [$ translation ->locale ][$ translation ->group ], $ translation ->key );
1670+ $ value = Arr:: get ($ tree [$ translation ->locale ][$ translation ->group ], $ translation ->key );
16701671
16711672 if (is_array ($ value )) {
16721673 // this one is an array while it is a translation in the source
0 commit comments