I'd like have something like this in the lang/en/mymsgs.php
'string1' => 'Welcome %1, Please meet %2'
I would provide the content for %1 and %2 when getting the 'string1' from my code.
I couldn't find a way to do this. Any pointers?
If anyone use string translation for Laravel. They can use like this ->
__('Some translatable string with :attribute',['attribute' => $attribute_var])
check the documentation for more https://laravel.com/docs/5.7/localization#using-short-keys
:fooinstead of%1, andtrans('string1', [ 'foo' => 'bar' ])perhaps?