Skip to content

Commit bd34d87

Browse files
author
Corentin.Andre
committed
Add new internationalization snippet.
More info: http://kazupon.github.io/vue-i18n/en/sfc.html
1 parent 30f8b09 commit bd34d87

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

snippets/snippets.cson

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,19 @@
3535
"""
3636
"description": "Single file component template"
3737
"descriptionMoreURL": "https://vuejs.org/v2/guide/single-file-components.html"
38+
"Internationalization component":
39+
"prefix": "i18n",
40+
"body": """
41+
<i18n>
42+
{
43+
"${1:en}": {
44+
"${2:key}": "${3:value}"
45+
}
46+
}
47+
</i18n>
48+
"""
49+
"description": "Per component translation"
50+
"descriptionMoreURL": "http://kazupon.github.io/vue-i18n/en/sfc.html"
3851

3952
".meta.tag":
4053
'v-for':

0 commit comments

Comments
 (0)