stephenjude / filament-blog

A faceless blog content manager with configurable richtext and markdown support for filament admin panel
MIT License
145 stars 34 forks source link

There is no instruction on how to add new languages in the laravel configuration #45

Closed viterzbayraku closed 4 months ago

viterzbayraku commented 5 months ago

Feature description

I want to add non english language on lang folder for main laravel directory. But don't see instruction for this. Please add a tutorial to the plugin documentation. Thank you.

DmitriyDalee commented 4 months ago

Hei! You can follow https://laravel.com/docs/10.x/localization#overriding-package-language-files But some of menu items has no effect for this setup - is needed some edits

viterzbayraku commented 4 months ago

Hei! You can follow https://laravel.com/docs/10.x/localization#overriding-package-language-files But some of menu items has no effect for this setup - is needed some edits

I am asking the plugin developer about this. Because is not correct to modify the plugin files in the vendor folder.

DmitriyDalee commented 4 months ago

You no need to modify vendor. You should add your translation to resources/lang/vendor/filament-blog//filament-blog.php

I'm also want to add some translation via Pull Request

stephenjude commented 4 months ago

Thank you for providing a reference @DmitriyDalee

@viterzbayraku you don't need to modify vendor. Follow the guide provided by @DmitriyDalee and I will be happy to merge your PR.

viterzbayraku commented 4 months ago

Thank you for providing a reference @DmitriyDalee

@viterzbayraku you don't need to modify vendor. Follow the guide provided by @DmitriyDalee and I will be happy to merge your PR.

Sorry. I have an additional question about Spatie Translatable implementation.