Skip to content

Instantly share code, notes, and snippets.

@zeke
Created Jan 26, 2021
Embed
What would you like to do?
Ruby ERB localization snippets for VS Code
{
// Place your snippets for erb here. Each snippet is defined under a snippet name and has a prefix, body and
// description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the
// same ids are connected.
"render-pet": {
"prefix": "pet",
"body": [
"<%= t(\"$1\") %>"
],
"description": "render block pe with t helper"
},
"render-peg": {
"prefix": "peg",
"body": [
"<%= _(\"$1\") %>"
],
"description": "render block pe with gettext"
},
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment