m2mtech / weblate-translation-provider

Weblate translation provider for Symfony Translation.
MIT License
17 stars 9 forks source link

Considering inclusion in Symfony? #7

Closed welcoMattic closed 1 year ago

welcoMattic commented 2 years ago

Would you consider the idea of adding the Weblate Translation Provider into Symfony core? It could be listed in https://symfony.com/doc/current/translation.html#translation-providers, and benefit of the backward compatibility of Symfony.

I'll be happy to discuss it if you want :wink:

m2mtech commented 1 year ago

@welcoMattic sure, let's discuss ;)

welcoMattic commented 1 year ago

@m2mtech the first thing I see is you splitted Weblate API call into multiple files. For consistency, it should be in the same file, WeblateProvider, with well-named private methods. No matter the number of private methods.

DTOs are not mandatory I guess, it's fine to work with arrays. It could be discussed, if I miss something that deserve usage of DTO.

Otherwise, the Provider seems good, nice job :+1:

m2mtech commented 1 year ago

@welcoMattic Sorry, my mistake. It thought this would be a discussion about how a native symfony library differs from a 3rd-party one. e.g.

Instead, it turned out to be a philosophical discussion about patterns.

The library already has backward compatibility for php 7.2 and Symfony 5.3 - so I do not understand your initial argument either.