/laravel-nova-localizations

🌎 Localization files for Laravel Nova

Primary LanguagePHP

Laravel Nova Localization Logo

This repository is like Babbel for your Laravel Nova app, without the learning part. It's a curated list of more than twenty language files for your favorite admin panel. Big thanks to all the great worldwide contributors.

StyleCI Status


Available languages (25 languages)

Language Code LCID Thanks to
Albanian sq sallmin
Arabic ar ar-sy hanikeddah
Bengali bn bn-bd iamazik
Chinese (China) zh zh-cn jltxwesley
Danish da peterbrinck
Dutch nl Cannonb4ll, patrickbergman, DannyStreur, ovvessem
English en en-us Nova folks
Finnish fi joonas1234, SirMathays
French fr fr-fr xel1045, benjamincrozat
German de de-de franzdumfart, mrmonat, pajoda, dastiii, hofmannsven
Greek gr Erth0
Indonesian id mul14, zeroseed
Italian it it-it s3b4stian
Korean ko getsolaris
Lithuanian lt girvydas, Justas Maziliauskas
Norwegian nb no-no LasseHaslev
Persian (Farsi) fa mehranhadidi
Polish pl aurawindsurfing
Portuguese (Brazil) pt pt-br dessimoni
Portuguese (Portugal) pt pt-pt sikrew
Russian ru ru SerhiiStarovoitov
Slovenian sl sl morpheus7CS, squierll
Spanish es es-es tinthenet, Zerquix18, driade
Tagalog tl ambengers
Turkish tr emir
Ukrainian uk ustych

Usage

Manual

Navigate to the lang folder, download your preferred language files, save them to /resources/lang/vendor/nova/. For further details about Nova Localization, please check out the docs.

Automatic

You can make sure that you are always up to date with the latest translations by adding two commands on the post-autoload-dump hook in your composer.json file. Of course, you can do that for as many languages as you want.

{
    "scripts": {
        "pre-update-cmd": [
            "@php -r \"mkdir('./resources/lang/vendor/nova', 0776, true);\"",
            "@php -r \"copy('https://raw.githubusercontent.com/franzdumfart/laravel-nova-localizations/master/lang/fr.json', './resources/lang/vendor/nova/fr.json') || exit (1);\""
        ],
        "post-autoload-dump": [
            "..."
        ]
    },
}

Don't forget to customize for your needs.

Help

Feel free to submit a pull request, add your desired language or updates.