• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

franzdumfart/laravel-nova-localizations:

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称(OpenSource Name):

franzdumfart/laravel-nova-localizations

开源软件地址(OpenSource Url):

https://github.com/franzdumfart/laravel-nova-localizations

开源编程语言(OpenSource Language):

PHP 100.0%

开源软件介绍(OpenSource Introduction):

Laravel Nova Localizations

Laravel Nova Localization Logo

This 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.

StyleCI Status


Available languages (30 languages)

Language Code LCID Thanks to
Albanian sq sallmin
Arabic ar ar-sy Danyel Alkeddah
Azeri az az-az Energon7
Bengali bn bn-bd iamazik
Bulgarian bg bg suncho26
Catalan ca es-ca lloople
Chinese (China) zh zh-cn jltxwesley, yangliulnn, nighon
Chinese (Traditional) zh zh-tw tinghom, yangliulnn, MilesWuCode
Danish da peterbrinck
Dutch nl Cannonb4ll, patrickbergman, DannyStreur, ovvessem, johanvanhelden
English en en-us Nova folks
Finnish fi joonas1234, SirMathays
French fr fr-fr xel1045, benjamincrozat, electronick86, bmichotte, Manoz
German de de-de franzdumfart, mrmonat, pajoda, dastiii, hofmannsven, renky
Greek gr Erth0
Hungarian hu milli05, drobee
Indonesian id mul14, zeroseed
Italian it it-it s3b4stian
Korean ko getsolaris, namolab
Lithuanian lt girvydas, Justas Maziliauskas
Norwegian nb nb-no LasseHaslev, Marcuzz
Persian (Farsi) fa mehranhadidi
Polish pl aurawindsurfing, JackShev
Portuguese (Brazil) pt pt-br dessimoni
Portuguese (Portugal) pt pt-pt sikrew
Russian ru ru SerhiiStarovoitov, mexoboy, darmen
Slovenian sl sl morpheus7CS, squierll
Spanish es es-es tinthenet, Zerquix18, driade, kennyhorna
Tagalog tl ambengers
Turkish tr emir, EnesCakir
Ukrainian uk ustych, igorbabko

Usage

Manual

Navigate to the lang folder, download your preferred language files, save them to /resources/lang/vendor/nova/. For further details about Nova Localization, please check out the docs.

Automatic

You can make sure that you are always up to date with the latest translations by adding two commands on the pre-update-cmd hook in your composer.json file. Of course, you can do that for as many languages as you want.

{
  "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 localization

If you need to force the localization of Nova, you can add the following lines to NovaServiceProvider.php in the boot method :

Nova::serving(function () {
    App::setLocale('fr');
});

Help

Feel free to submit a pull request, add your desired language or updates.




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap