Language files for Laravel Nova translated into 35+ 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:
php artisan nova-lang:publish de,ru
Publish translations for all languages:
php artisan nova-lang:publish --all
Publish translations and override existing files:
php artisan nova-lang:publish de,ru --force
Development Commands (debug mode only)
You must have the app.debug config option set to true for these commands to be available:
Missing Command
This command is to assist contributors to find any untranslated keys for their chosen language.
A stub JSON file will be created at storage_path('app/nova-lang/missing/{locale}.json'). You can copy those keys into the resources/lang/{locale}.json language file in your own fork of the repository, translate them and create a pull request.
Output missing translation keys for one or more languages:
php artisan nova-lang:missing de,ru
Output missing translation keys for all languages:
php artisan nova-lang:missing --all
Stats Command
This command is to assist maintainers to update the completeness of each language and list of contributors in this README file.
A README.excerpt.md and contributors.json file will be created at storage_path('app/nova-lang'). You can copy those files into your own fork of the repository and create a pull request.
Output list of languages, lines translated and contributors:
php artisan nova-lang:stats
Ensure you have created a GitHub personal access token and saved it as a GITHUB_TOKEN_NOVALANG env variable in your master Laravel application in order to download the most recent contributions.
The following languages are supported for the main Laravel framework by the excellent caouecs/laravel-lang package. We would love for our package to make these languages available for Nova as well. If you are able to contribute to any of these or other languages, please read our contributing guidelines and raise a PR.
Parity with caouecs/laravel-lang
Code
Language
Lines translated
sq
Albanian
az
Azerbaijani
bn
Bangla
be
Belarusian
bs
Bosnian
zh‑HK
Chinese (Hong Kong)
et
Estonian
gl
Galician
de‑CH
German (Switzerland)
el
Greek
he
Hebrew
is
Icelandic
ja
Japanese
kn
Kannada
kk
Kazakh
km
Khmer
ko
Korean
lv
Latvian
mk
Macedonian
ms
Malay
mr
Marathi
mn
Mongolian
cnr
Montenegrin
ne
Nepali
nn
Norwegian Nynorsk
ps
Pashto
sc
Sardinian
si
Sinhala
sw
Swahili
tg
Tajik
th
Thai
tk
Turkmen
ur
Urdu
ug
Uyghur
uz‑Cyrl
Uzbek (Cyrillic)
uz‑Latn
Uzbek (Latin)
vi
Vietnamese
cy
Welsh
About
🌌 Language files for Laravel Nova translated into 35+ languages. Feel free to submit your language or update an existing one!