File tree 28 files changed +719
-1
lines changed
no-duplicate-keys-in-locale
no-missing-keys/multiple-locales
28 files changed +719
-1
lines changed Original file line number Diff line number Diff line change
1
+ {
2
+ "hello" : " hello" ,
3
+ "messages" : {
4
+ "foo" : " foo" ,
5
+ "bar" : " bar" ,
6
+ "baz" : " baz" ,
7
+ "dupe" : " dupe"
8
+ },
9
+ "dupe" : " dupe"
10
+ }
Original file line number Diff line number Diff line change
1
+ {
2
+ "good-bye" : " good bye" ,
3
+ "messages" : {
4
+ "qux" : " qux" ,
5
+ "quux" : " quux" ,
6
+ "corge" : " corge" ,
7
+ "dupe" : " dupe"
8
+ },
9
+ "dupe" : " dupe"
10
+ }
Original file line number Diff line number Diff line change
1
+ {
2
+ "ja" : {
3
+ "hello" : " こんにちは" ,
4
+ "messages" : {
5
+ "foo" : " foo" ,
6
+ "bar" : " bar" ,
7
+ "baz" : " baz"
8
+ },
9
+ "dupe" : " dupe"
10
+ }
11
+ }
Original file line number Diff line number Diff line change
1
+ ' ja ' :
2
+ ' good-bye ' : ' さようなら'
3
+ ' messages ' :
4
+ ' qux ' : ' qux'
5
+ ' quux ' : ' quux'
6
+ ' corge ' : ' corge'
7
+ ' dupe ' : ' dupe'
8
+ ' dupe ' : ' dupe'
Original file line number Diff line number Diff line change
1
+ <i18n lang="yaml">
2
+ en :
3
+ block : block
4
+ nest :
5
+ foo
6
+ ja :
7
+ block : block
8
+ nest :
9
+ foo : bar
10
+ </i18n >
11
+ <i18n lang="yaml">
12
+ en :
13
+ nest :
14
+ foo : bar
15
+ ja :
16
+ dupe : dupe
17
+ </i18n >
18
+ <i18n lang="json">
19
+ {
20
+ "en" : {
21
+ "json-dupe" : " dupe" ,
22
+ "nest" : {
23
+ "json-dupe" : " dupe"
24
+ },
25
+ "nest" : {
26
+ "json-dupe" : " dupe"
27
+ },
28
+ "json-dupe" : " dupe"
29
+ }
30
+ }
31
+ </i18n >
32
+ <template ></template >
33
+ <script ></script >
Original file line number Diff line number Diff line change
1
+ {
2
+ "hello" : " hello" ,
3
+ "messages" : {
4
+ "foo" : " foo" ,
5
+ "bar" : " bar" ,
6
+ "baz" : " baz"
7
+ }
8
+ }
Original file line number Diff line number Diff line change
1
+ {
2
+ "good-bye" : " good bye" ,
3
+ "messages" : {
4
+ "qux" : " qux" ,
5
+ "quux" : " quux" ,
6
+ "corge" : " corge"
7
+ }
8
+ }
Original file line number Diff line number Diff line change
1
+ {
2
+ "ja" : {
3
+ "hello" : " こんにちは" ,
4
+ "messages" : {
5
+ "foo" : " foo" ,
6
+ "bar" : " bar" ,
7
+ "baz" : " baz"
8
+ }
9
+ }
10
+ }
Original file line number Diff line number Diff line change
1
+ {
2
+ "ja" : {
3
+ "good-bye" : " さようなら" ,
4
+ "messages" : {
5
+ "qux" : " qux" ,
6
+ "quux" : " quux" ,
7
+ "corge" : " corge"
8
+ }
9
+ }
10
+ }
Original file line number Diff line number Diff line change
1
+ <i18n locale="en" lang="yaml">
2
+ block : block
3
+ </i18n >
4
+ <i18n locale="ja" lang="yaml">
5
+ block : block
6
+ </i18n >
7
+ <template ></template >
8
+ <script ></script >
Original file line number Diff line number Diff line change
1
+ {
2
+ "hello" : " hello world" ,
3
+ "messages" : {
4
+ "hello" : " hi DIO!" ,
5
+ "link" : " @:message.hello" ,
6
+ "nested" : {
7
+ "hello" : " hi jojo!"
8
+ },
9
+ "en-only" : " en-only"
10
+ }
11
+ }
Original file line number Diff line number Diff line change
1
+ {
2
+ "ja" : {
3
+ "hello" : " ハローワールド" ,
4
+ "messages" : {
5
+ "hello" : " こんにちは、DIO!" ,
6
+ "link" : " @:message.hello" ,
7
+ "nested" : {
8
+ "hello" : " こんにちは、ジョジョ!"
9
+ }
10
+ },
11
+ "hello_dio" : " こんにちは、アンダースコア DIO!" ,
12
+ "hello {name}" : " こんにちは、{name}!" ,
13
+ "hello-dio" : " こんにちは、ハイフン DIO!"
14
+ }
15
+ }
Original file line number Diff line number Diff line change
1
+ {
2
+ "hello_dio" : " hello underscore DIO!" ,
3
+ "hello {name}" : " hello {name}!" ,
4
+ "hello-dio" : " hello hyphen DIO!"
5
+ }
Original file line number Diff line number Diff line change
1
+ <template >
2
+ <div id =" app" >
3
+ <p v-t =" 'hello_dio'" >{{ $t('messages.hello') }}</p >
4
+ </div >
5
+ </template >
6
+
7
+ <script >
8
+ export default {
9
+ name: ' App' ,
10
+ created () {
11
+ this .$i18n .t (' hello {name}' , { name: ' DIO' })
12
+ }
13
+ }
14
+ </script >
Original file line number Diff line number Diff line change
1
+ const $t = ( ) => { }
2
+ $t ( 'hello' )
Original file line number Diff line number Diff line change
1
+ {
2
+ "hello" : " hello world" ,
3
+ "messages" : {
4
+ "hello" : " hi DIO!" ,
5
+ "link" : " @:message.hello" ,
6
+ "nested" : {
7
+ "hello" : " hi jojo!"
8
+ }
9
+ }
10
+ }
Original file line number Diff line number Diff line change
1
+ {
2
+ "hello_dio" : " hello underscore DIO!" ,
3
+ "hello {name}" : " hello {name}!" ,
4
+ "hello-dio" : " hello hyphen DIO!"
5
+ }
Original file line number Diff line number Diff line change
1
+ {
2
+ "ja" : {
3
+ "hello" : " ハローワールド" ,
4
+ "messages" : {
5
+ "hello" : " こんにちは、DIO!" ,
6
+ "link" : " @:message.hello" ,
7
+ "nested" : {
8
+ "hello" : " こんにちは、ジョジョ!"
9
+ }
10
+ },
11
+ "hello_dio" : " こんにちは、アンダースコア DIO!" ,
12
+ "hello {name}" : " こんにちは、{name}!" ,
13
+ "hello-dio" : " こんにちは、ハイフン DIO!"
14
+ }
15
+ }
Original file line number Diff line number Diff line change
1
+ <template >
2
+ <div id =" app" >
3
+ <p v-t =" 'hello_dio'" >{{ $t('messages.hello') }}</p >
4
+ </div >
5
+ </template >
6
+
7
+ <script >
8
+ export default {
9
+ name: ' App' ,
10
+ created () {
11
+ this .$i18n .t (' hello {name}' , { name: ' DIO' })
12
+ }
13
+ }
14
+ </script >
Original file line number Diff line number Diff line change
1
+ const $t = ( ) => { }
2
+ $t ( 'hello' )
Original file line number Diff line number Diff line change
1
+ {
2
+ "hello" : " hello world" ,
3
+ "messages" : {
4
+ "hello" : " hi DIO!" ,
5
+ "link" : " @:messages.hello"
6
+ }
7
+ }
Original file line number Diff line number Diff line change
1
+ {
2
+ "hello_dio" : " hello underscore DIO!" ,
3
+ "hello {name}" : " hello {name}!" ,
4
+ "term" : " I accept xxx {0}."
5
+ }
Original file line number Diff line number Diff line change
1
+ {
2
+ "ja" : {
3
+ "hello" : " ハローワールド" ,
4
+ "messages" : {
5
+ "hello" : " こんにちは、DIO!" ,
6
+ "link" : " @:messages.hello"
7
+ },
8
+ "hello_dio" : " こんにちは、アンダースコア DIO!" ,
9
+ "hello {name}" : " こんにちは、{name}!"
10
+ }
11
+ }
Original file line number Diff line number Diff line change
1
+ <template >
2
+ <div id =" app" >
3
+ <p v-t =" 'hello_dio'" >{{ $t('messages.link') }}</p >
4
+ <i18n path =" term" tag =" label" for =" tos" >
5
+ <a :href =" url" target =" _blank" >{{ $t('tos') }}</a >
6
+ </i18n >
7
+ </div >
8
+ </template >
9
+
10
+ <script >
11
+ export default {
12
+ name: ' App' ,
13
+ created () {
14
+ this .$i18n .t (' hello {name}' , { name: ' DIO' })
15
+ }
16
+ }
17
+ </script >
Original file line number Diff line number Diff line change
1
+ const $t = ( ) => { }
2
+ $t ( 'hello' )
You can’t perform that action at this time.
0 commit comments