coderello/laravel-nova-lang
Fork: 195 Star: 425 (更新于 2024-12-15 12:06:18)
license: MIT
Language: PHP .
🌌 Language files for Laravel Nova translated into 40+ languages. Feel free to submit your language or update an existing one!
最后发布版本: 2.0.2 ( 2023-04-20 21:53:23)
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
最近版本更新:(数据更新于 2024-09-15 05:14:48)
2023-04-20 21:53:23 2.0.2
2022-10-29 01:19:29 2.0.1
2022-07-30 20:56:45 2.0.0
2022-04-12 00:07:57 1.8.2
2021-12-04 02:28:40 1.8.1
2021-09-16 00:28:51 1.8.0
2021-02-07 20:48:56 1.7.2
2021-01-30 08:06:32 1.7.1
2020-11-18 19:21:40 1.7.0
2020-10-25 20:12:43 1.6.0
主题(topics):
admin, lang, language, laravel, nova, translations
coderello/laravel-nova-lang同语言 PHP最近更新仓库
2024-12-13 19:38:03 coollabsio/coolify
2024-12-13 09:22:46 w7corp/easywechat
2024-12-11 20:15:22 symfony/symfony
2024-11-29 16:49:37 symfony/var-dumper
2024-11-20 23:58:25 laravel/framework
2024-11-20 18:39:23 danielmiessler/SecLists