arzola / laravel-nova-lang

🌌 Language files for Laravel Nova translated into 40+ languages. Feel free to submit your language or update an existing one!

Home Page:https://novapackages.com/packages/coderello/laravel-nova-lang

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

Total languages 44
Total lines translated 17,317 (92.6%)

Code Language Translated files Lines translated Thanks to
en English php json 425 (100%) taylorotwell, bonzai, davidhemphill, jbrooksuk, themsaid, kitbs, dillingham
id Indonesian php json 425 (100%) dvlwj, opanegro, Kristories
es Spanish php json 425 (100%) kitbs, joebordes, ajmariduena, iksaku, IGedeon, SpiritSaint, alejandrotrevi, Arryan, kennyhorna, miktown, xcodinas, AndresReyesDev, dgtal, rodrigore
tr Turkish php json 425 (100%) jnbn, bureken, Milkhan, erayusta, sineld, semihkeskindev, dilekuzulmez, suleymanozev
pt‑BR Brazilian Portuguese php json 424 (99.8%) henryavila, pedrofurtado, eduardokum, saulo-silva, chbbc, hpiaia, IgorDePaula, emtudo
fr French php json 424 (99.8%) MarceauKa, Yannik-Slym, InfinityWebMe, kitbs, shaffe-fr, Arryan, voidgraphics, KillianH, rbnhtl, stockhausen
ka Georgian php json 424 (99.8%) akalongman, zgabievi
de German php json 424 (99.8%) pille1842, shieraki, kitbs, tobiasthaden, dakira
ro Romanian php json 424 (99.8%) BTeodorWork, dtix, alexgiuvara
ru Russian php json 424 (99.8%) hivokas, sanasol, den1n, medvinator, deadem, soulshockers, estim, kongulov
ar Arabic php json 420 (98.8%) saleem-hadad, danyelkeddah, omarfathy13, MohamedMaher5, CaddyDz, i3asm, Arryan
nl Dutch php json 420 (98.8%) DannyvdSluijs, happyDemon, steefmin, jschram, sebastiaanspeck, preliot, webovatenl, daniel-de-wit
it Italian php json 420 (98.8%) (unknown), alfonsocuccaro, f-liva, manuelcoppotelli, trippo, dejdav
km Khmer php json 420 (98.8%) chhaihongsrun
ur Urdu php json 420 (98.8%) junaidtariq48
cs Czech php json 407 (95.8%) walaskir, theimerj, genesiscz, walaski
hu Hungarian php json 407 (95.8%) milli05, bgeree, lintaba
ca Catalan php json 405 (95.3%) joebordes, gerardnll
af Afrikaans php json 404 (95.1%) medlion
bs Bosnian php json 404 (95.1%) hajro92
ja Japanese php json 404 (95.1%) Tsumagari, storyn26383
nb Norwegian Bokmål php json 404 (95.1%) einar-johan
sv Swedish php json 404 (95.1%) tanjemark, slackernrrd
uk Ukrainian php json 404 (95.1%) soulshockers, Ostap34JS, osbre
uz‑Latn Uzbek (Latin) php json 404 (95.1%) shokhaa
tk Turkmen php json 403 (94.8%) kakajansh
fa Farsi php json 402 (94.6%) alirezamirsepassi, mziraki, zareismail, SadeghPM
pl Polish php json 396 (93.2%) pzmarzly, Strus, marekfilip, mslepko, wiktor-k
zh‑CN Chinese (Simplified) php json 392 (92.2%) jcc, zacksleo, masterwto
zh‑TW Chinese (Traditional) php json 392 (92.2%) CasperLaiTW, zacksleo, storyn26383
pt Portuguese php json 383 (90.1%) Pedrocssg
da Danish php json 355 (83.5%) olivernybroe, rugaard, peterchrjoergensen
eu Basque php json 353 (83.1%) JonPaternain
hr Croatian php json 351 (82.6%) defart, walaski
fil Filipino php json 351 (82.6%) granaderos
fi Finnish php json 351 (82.6%) Krisseck
hi Hindi php json 351 (82.6%) bantya
sr Serbian (Cyrillic) php json 351 (82.6%) marjanovicsteva
sr‑Latn Serbian (Latin) php json 351 (82.6%) marjanovicsteva
sk Slovak php json 351 (82.6%) hejty
sl Slovenian php json 351 (82.6%) morpheus7CS
lt Lithuanian php json 350 (82.4%) minved
bg Bulgarian php json 348 (81.9%) BKirev
tl Tagalog php json 344 (80.9%) rcjavier

About

🌌 Language files for Laravel Nova translated into 40+ languages. Feel free to submit your language or update an existing one!

https://novapackages.com/packages/coderello/laravel-nova-lang

License:MIT License


Languages

Language:PHP 100.0%