I often use Laravel's Translation Strings on multilang websites, and once I get bored of typing blade's template literals, I created this snippet.
You can read more in the Laravel docs about Translation Strings: https://laravel.com/docs/5.5/localization#defining-translation-strings
<snippet>
<content><![CDATA[{{ __('$SELECTION') }}]]></content>
<scope>source.php</scope> -->
</snippet>
Save as wrapcustom
or anything you like. We don't need a trigger keyword, so I deleted that part.
Add this to the User
config. Check if the key combination isn't used yet. If yes, choose a different one.
{ "keys": ["ctrl+shift+o"],
"command": "insert_snippet",
"args": { "name": "Packages/User/wrapcustom.sublime-snippet" }
},
From this
Select this
will be
{{ __('Select this') }}