在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):franzdumfart/laravel-nova-localizations开源软件地址(OpenSource Url):https://github.com/franzdumfart/laravel-nova-localizations开源编程语言(OpenSource Language):PHP 100.0%开源软件介绍(OpenSource Introduction):Laravel Nova LocalizationsThis repository is like Babbel for your Laravel Nova app, without the learning part. It's a curated list of thirty language files for your favorite admin panel. Big thanks to all the great worldwide contributors. Available languages (30 languages)
UsageManualNavigate to the AutomaticYou can make sure that you are always up to date with the latest translations by adding two commands on the {
"scripts": {
"pre-update-cmd": [
"@php -r \"mkdir('./resources/lang/vendor/nova', 0776, true);\"",
"@php -r \"copy('https://raw.githubusercontent.com/franzdumfart/laravel-nova-localizations/master/lang/fr.json', './resources/lang/vendor/nova/fr.json') || exit (1);\"",
"@php -r \"mkdir('./resources/lang/vendor/nova/fr', 0776, true);\"",
"@php -r \"copy('https://raw.githubusercontent.com/franzdumfart/laravel-nova-localizations/master/lang/fr/validation.php', './resources/lang/vendor/nova/fr/validation.php') || exit (1);\""
]
}
} Don't forget to customize for your needs. Force Nova localizationIf you need to force the localization of Nova, you can add the following lines to Nova::serving(function () {
App::setLocale('fr');
}); HelpFeel free to submit a pull request, add your desired language or updates. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论