bernhardh / nova-translation-editor

A laravel nova translation editor
12 stars 14 forks source link

How to define my own translation group in config file. #17

Closed mikhi closed 1 year ago

mikhi commented 1 year ago

Hi guys,

i'm looking to import my own translation group stored in other place than resources/lang.

I've split my application into modules using nwidart/laravel-modules package , and what i want to achieve is to define the module translation file as a group.

If i use '*' the nova-translation-editor.php config file, the keys are loaded, but i'm looking a way to have tabs for each module.

The module translation file is located for example in Modules/Catalog/Resources/lang

Thanks, Mihai

bernhardh commented 1 year ago

Sry, I do not use nova anymore and switched to filament-admin.

mikhi commented 1 year ago

Hi Bernhardh, Thanks for answer. My question was how can I declare a group to refer to a file stored in /Modules/{ModuleName}/Resources/lang? Can you please give a hint?

bernhardh commented 1 year ago

I haven't used the module package together with nova or this transation editor nor I have used the modules package in years, so I am very sorry, but can't give you even a hint.

mikhi commented 1 year ago

ok, thanks