cviebrock / eloquent-taggable

Easily add the ability to tag your Eloquent models in Laravel.
MIT License
537 stars 72 forks source link

Can tags be multilingual? #119

Closed pixelzdesign closed 3 years ago

pixelzdesign commented 3 years ago

Can tags be multilingual? Something like:

$tags = $model->tag('Apple,Banana,Cherry')->translate('en');
$tags->tag('Jabuka,Banana,Višnja')->translate('sr');

Maybe it can be used in combination with Astrotomic/laravel-translatable

cviebrock commented 3 years ago

I'll be honest, this isn't something that's come up in my needs, so I haven't built that feature in. I suspect, based on the number of translation packages for Laravel, this would be pretty difficult to integrate with other packages.

Search through the closed issues, however. I do recall there being people trying to do this same thing ... perhaps they can offer suggestions?