Commit Conf 2019

Este año estuve por primera vez en la Commit Conf, un gran evento de tecnología que, durante 2 días, congrega a 2000 personas de toda España con el fin de enriquecernos tecnológicamente. Se habló de un montón de tecnologías, desde técnicas de desarrollo de software hasta Big Data, Cloud o ML. Y también de PHP y de Git 😃😃

Sigue leyendo «Commit Conf 2019»

Localization in Laravel

In this post, I will go to explain how to localize a Laravel application. The application will support English, Spanish and Galician languages. This is a real example to translate the https://wptranslator.jesusamieiro.com web app. You can find the source code on GitHub.

The steps to localize the application will be:

  1. Create a configuration file to store the languages that will be used by the application.
  2. Define the default language for the application.
  3. Add the translation functions in the views.
  4. Create the JSON translation files.
  5. Create the middleware that updates the application language.
  6. Add the selector in the main view to enable the end-user to change the application language.
  7. Add the route for the change event of the previous selector.
  8. Add the controller to receive the change event from the previous selector.
Sigue leyendo «Localization in Laravel»