You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
when no en.json file provided, the package will create en.php file translation which is not working.
the php language files not working until they are inside language folders.
the fix simply to create language json file if not exists.
// the place of the issueprotectedfunctiongetTargetLanguagePath(string$targetLanguage): string
{
$file = config('translator.language_folder') . "/{$targetLanguage}.json";
if (!file_exists($file)) {
$file = config('translator.language_folder') . "/{$targetLanguage}.php";
}
return$file;
}
Secondly, I hope the package be able to add php files from config like msg.php which we can use php files for translation using this package, because we can use language ui like https://github.com/MohmmedAshraf/laravel-translations package, and the flexibility of nesting keys, etc
The text was updated successfully, but these errors were encountered:
I definitely think just adding the en.php is wrong. I didn't realize it did that. I will look into it.
I shorty looked into making the package work with other file structures the main problem with it was the freedom to basically do anything, meaning I had to figure out the file structure / php structure.
when no
en.json
file provided, the package will createen.php
file translation which is not working.the php language files not working until they are inside language folders.
the fix simply to create language json file if not exists.
Secondly, I hope the package be able to add php files from config like
msg.php
which we can use php files for translation using this package, because we can use language ui likehttps://github.com/MohmmedAshraf/laravel-translations
package, and the flexibility of nesting keys, etcThe text was updated successfully, but these errors were encountered: