laravel-localization-helpers icon indicating copy to clipboard operation
laravel-localization-helpers copied to clipboard

Fork with up to date MS translator support, PHP 8 and Laravel 8/9 support

Open schniper opened this issue 2 years ago • 0 comments

Hi,

First of all, many thanks to Potsky for his great work - I have used this library on a number of projects, back in the day. Recently I needed to use it again and ran into the current compatibility issues. As the repo seems more or less abandoned, I have created a fork with the following features:

  • PHP 8 support
  • Laravel 8/9 support
  • Up to date MS translator support based on client_key access
  • Integrated MS translator into the library, instead of keeping a dependency to the other not-so-updated one
  • Made translator not translate :name parameters
  • Do not add TODO prefixes to phrases in the fallback language; just to the others

Think there might be a few other changes in there. For simplicity, I have renamed the namespace and temporarily removed the tests part. I plan to use this for my own projects, but if anyone wants to take a peek or maybe if there is a chance to update this library with some of the changes, you are welcome to it.

Once again, thank you for what seems to be a way underrated project.

https://github.com/schniper/laravel-localization-helpers

schniper avatar Oct 13 '22 08:10 schniper