Skip to content

Commit a08a5b6

Browse files
committed
refactor: prepare for sfc support
wip: sfc loader feat(sfc): able to load sfc
1 parent 755305a commit a08a5b6

File tree

21 files changed

+402
-310
lines changed

21 files changed

+402
-310
lines changed

examples/sfc/src/App.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
</div>
1212
</template>
1313

14-
<i18n>
14+
<i18n locale='en'>
1515
{
1616
"en": {
1717
"hello": "hello world!"

examples/sfc/src/CompA.vue

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
<template>
2-
<p>A: {{ $t('hello') }}</p>
2+
<div>
3+
<p>Language: {{ $t('language') }}</p>
4+
<p>A: {{ $t('hello') }}</p>
5+
</div>
36
</template>
47

58
<i18n>
@@ -13,6 +16,14 @@
1316
}
1417
</i18n>
1518

19+
<i18n lang='yaml' locale='en'>
20+
language: English
21+
</i18n>
22+
23+
<i18n lang='yaml' locale='ja'>
24+
language: 日本語
25+
</i18n>
26+
1627
<script>
1728
export default {
1829
props: {

0 commit comments

Comments
 (0)