Skip to content

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

License

NotificationsYou must be signed in to change notification settings

gorangalinec/laravel-nova-lang

 
 

Repository files navigation

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 4.23.0
Total languages 46
Total lines translated 18,543 (87.1%)

CodeLanguageTranslated filesLines translatedThanks to
enEnglishphp json463 (100%)taylorotwell, bonzai, davidhemphill, jbrooksuk, themsaid, kitbs, dillingham
frFrenchphp json463 (100%)MarceauKa, shaffe-fr, Yannik-Slym, InfinityWebMe, kitbs, Arryan, voidgraphics, KillianH, rbnhtl, stockhausen
deGermanphp json463 (100%)pille1842, kitbs, shieraki, StanBarrows, tobiasthaden, dakira
lvLatvianphp json463 (100%)
esSpanishphp json463 (100%)kitbs, joebordes, ajmariduena, iksaku, IGedeon, SpiritSaint, alejandrotrevi, Arryan, kennyhorna, miktown, xcodinas, AndresReyesDev, Vitorinox, dgtal, rodrigore
zh‑CNChinese (Simplified)php json459 (99.1%)jcc, zacksleo, masterwto
zh‑TWChinese (Traditional)php json456 (98.5%)CasperLaiTW, zacksleo, storyn26383
ruRussianphp json454 (98.1%)hivokas, sanasol, makhsam, den1n, medvinator, deadem, soulshockers, kongulov, saundefined, ankkk, estim
uz‑LatnUzbek (Latin)php json448 (96.8%)shokhaa, professor93
azAzerbaijaniphp json444 (95.9%)kongulov
nlDutchphp json443 (95.7%)DannyvdSluijs, happyDemon, steefmin, jschram, sebastiaanspeck, preliot, webovatenl, daniel-de-wit
pt‑BRBrazilian Portuguesephp json440 (95%)henryavila, pedrofurtado, eduardokum, saulo-silva, chbbc, ranierif, hpiaia, IgorDePaula, emtudo
idIndonesianphp json423 (91.4%)dvlwj, opanegro, Kristories, ezhasyafaat
trTurkishphp json423 (91.4%)jnbn, bureken, Milkhan, erayusta, sineld, semihkeskindev, dilekuzulmez, suleymanozev
tkTurkmenphp json422 (91.1%)kakajansh
kaGeorgianphp json421 (90.9%)akalongman, zgabievi
roRomanianphp json421 (90.9%)BTeodorWork, dtix, alexgiuvara
arArabicphp json417 (90.1%)saleem-hadad, danyelkeddah, omarfathy13, MohamedMaher5, CaddyDz, i3asm, moedayraki, Arryan
itItalianphp json417 (90.1%)(unknown), alfonsocuccaro, f-liva, manuelcoppotelli, trippo, dejdav
kmKhmerphp json417 (90.1%)chhaihongsrun
urUrduphp json417 (90.1%)junaidtariq48
huHungarianphp json404 (87.3%)milli05, bgeree, lintaba
csCzechphp json403 (87%)walaskir, theimerj, genesiscz, walaski
caCatalanphp json402 (86.8%)joebordes, gerardnll
afAfrikaansphp json401 (86.6%)medlion
bsBosnianphp json401 (86.6%)hajro92
jaJapanesephp json401 (86.6%)Tsumagari, storyn26383
nbNorwegian Bokmålphp json401 (86.6%)einar-johan
svSwedishphp json401 (86.6%)tanjemark, slackernrrd
ukUkrainianphp json401 (86.6%)soulshockers, Ostap34JS, osbre
faFarsiphp json399 (86.2%)alirezamirsepassi, mziraki, zareismail, SadeghPM
plPolishphp json393 (84.9%)pzmarzly, Strus, marekfilip, mslepko, wiktor-k
ptPortuguesephp json380 (82.1%)Pedrocssg
daDanishphp json352 (76%)olivernybroe, rugaard, peterchrjoergensen
euBasquephp json350 (75.6%)JonPaternain
hrCroatianphp json348 (75.2%)defart, walaski
filFilipinophp json348 (75.2%)granaderos
fiFinnishphp json348 (75.2%)Krisseck
hiHindiphp json348 (75.2%)bantya
srSerbian (Cyrillic)php json348 (75.2%)marjanovicsteva
sr‑LatnSerbian (Latin)php json348 (75.2%)marjanovicsteva
skSlovakphp json348 (75.2%)hejty
slSlovenianphp json348 (75.2%)morpheus7CS
ltLithuanianphp json347 (74.9%)minved
bgBulgarianphp json345 (74.5%)BKirev
tlTagalogphp json341 (73.7%)rcjavier

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%