MohmmedAshraf / laravel-translations

Laravel Translations UI package provides a user-friendly interface for managing translations in your Laravel application. It simplifies tasks such as adding, editing, deleting, and exporting translations. The package also includes a handy search feature and the ability to invite collaborators for easy translation management
MIT License
649 stars 91 forks source link

ltu_phrases.key as varchar causes problems with long keys commonly used in JSON files #122

Open philippgerard opened 5 months ago

philippgerard commented 5 months ago

Hi,

I'm using long keys for some translated marketing pages, e.g. T&Cs, Privacy Policy etc. When importing the strings from the JSON files the import fails with "data too long for column 'key'". Turning the key into text from varchar fixes the problem and might be worth considering as a default.

Thanks for the great package otherwise!

Best, Philipp