coderello/laravel-nova-lang
关于
🌌 Language files for Laravel Nova translated into 40+ languages. Feel free to submit your language or update an existing one!
网站与应用开发实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- -1
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文Laravel Nova Lang
Language files for Laravel Nova translated into 40+ languages.
This is not an official Laravel package, but is built from community contributions. If you are able to help by submitting a new language, reviewing an existing language, or adding missing keys, please read our contributing guidelines and raise a PR.
Installation
composer require coderello/laravel-nova-lang
Usage
Publish Command
Publish translations for one language:
php artisan nova-lang:publish de
Publish translations for multiple languages (comma-separated):
php artisan nova-lang:publish de,ru
Publish translations for all available languages:
php artisan nova-lang:publish --all
Publish translations and override existing files:
php artisan nova-lang:publish de,ru --force
Aliases
The language codes chosen for the files in this repository may not match the preferences for your project. You can use the ‑‑alias option to publish locales using a different filename.
Publish translations for one language with an alias, using the simple format {alias}:
php artisan nova-lang:publish de --alias=de-DE
This will publish the file de-DE.json.
Publish translations for multiple languages with multiple aliases, using the format {locale}:{alias} (comma-separated):
php artisan nova-lang:publish de,ru,fr --alias=de:de-DE,ru:ru-RU
This will publish the files de-DE.json, ru-RU.json and fr.json (no alias).
Aliases can also be used with the --all flag:
php artisan nova-lang:publish --all --alias=es:es-ES
You do not need to supply an alias for every locale that is to be published, only those that you wish to override.
Here are some example aliases for common use cases:
- Use Chinese with scripts instead of regions:
zh-CN:zh-Hans,zh-TW:zh-Hant - Default to Brazilian Portuguese over European:
pt:pt-PT,pt-BR:pt - Default to Serbian in Latin script over Cyrillic:
sr-Latn:sr,sr:sr-Cyrl
There is also an --underscore or -U switch to publish locales with an underscore separator instead of a hyphen. This can be used in combination with aliases.
Development Commands
Documentation of development commands for contributors and maintainers is available at Development Commands.
Available Languages
We welcome new languages and additions/improvements to existing languages! Please read our contributing guidelines and raise a PR.
Note: There is no need to update the count of translated strings and add your username below, as this is done by script when your PR is merged.
Latest Nova version
Total languages
Total lines translated
探索相关项目
加载中…