lexik / LexikTranslationBundle

This Symfony bundle allow to import translation files content into the database and provide a GUI to edit translations.
MIT License
419 stars 255 forks source link

Pure JS implementation #457

Open raziel057 opened 1 month ago

raziel057 commented 1 month ago

Hello,

As proposed here https://github.com/lexik/LexikTranslationBundle/issues/454, I have developed a pure JavaScript implementation while maintaining code isolation and similarities with the angularJs version to ease the review. The modifications are limited to translation.js and the grid-related Twig views.

The pure JS implementation support all configuration options (inputType, autoCacheClean, toggleSimilar) except the profilerTokens management, as I didn't fully grasp the concept.

Few improvements have been done compared to the current AngularJs version pushed in separated commits:

Edit

image

Save

image