5 ms·
Show HN: Laravel localization with GetText
- fstephany 8y ago> We strongly suggest that you use GetText to translate your applications since it allows a simpler and more maintainable syntax. Care to elaborate on that?
- MichaelHoste 8y agoWe have strong opinions about this, and we explained them here: https://translation.io/blog/gettext-is-better-than-rails-i18n https://translation.io/blog/gettext-is-better-than-rails-i18... Even if we compared GetText to YAML key/values (Ruby on Rails), the same reasoning applies also for PHP key/values of Laravel.
- frbayart 8y agoDid you plan symfony integration or is it the only one for PHP (for now)?
- MichaelHoste 8y agoLaravel is currently the only integration in the PHP-world. But most of the code could certainly be reused for a Symfony application, or any other PHP project. We think that every framework must have a tailored solution to handle translations best, so we move forward in small steps to be sure our solution fits the pain (of maintaining translations up-to-date as the app evolves).
- frbayart 8y agoOk good to know, do you have any roadmap to know the next integration (nodejs or Django ?) ?
- MichaelHoste 8y agoRight now, we think about the possibility to integrate with Wordpress or Symfony. If you use React, one of our users also created a plugin for React-Intl: https://github.com/deecewan/translation-io https://github.com/deecewan/translation-io