This repository was archived by the owner on Dec 31, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 9 files changed +62
-8
lines changed
Expand file tree Collapse file tree 9 files changed +62
-8
lines changed Original file line number Diff line number Diff line change 77 < script src ="../../../dist/vue-i18n.min.js "> </ script >
88 </ head >
99 < body >
10- < p > {{{ $t('message.hello') }}}</ p >
10+ < div id ="app ">
11+ < p v-html ="$t('message.hello') "> </ p >
12+ </ div >
1113 < script >
1214 var locales = {
1315 en : {
2022 Vue . use ( VueI18n )
2123 Vue . locale ( 'en' , locales [ 'en' ] )
2224
23- new Vue ( { el : 'body ' } )
25+ new Vue ( { el : '#app ' } )
2426 </ script >
2527 </ body >
2628</ html >
Original file line number Diff line number Diff line change 77 < script src ="../../../dist/vue-i18n.min.js "> </ script >
88 </ head >
99 < body >
10- < p > {{ $t('message.hello', ["hello"]) }}</ p >
10+ < div id ="app ">
11+ < p > {{ $t('message.hello', ["hello"]) }}</ p >
12+ </ div >
1113 < script >
1214 var locales = {
1315 en : {
2022 Vue . use ( VueI18n )
2123 Vue . locale ( 'en' , locales [ 'en' ] )
2224
23- new Vue ( { el : 'body ' } )
25+ new Vue ( { el : '#app ' } )
2426 </ script >
2527 </ body >
2628</ html >
Original file line number Diff line number Diff line change 77 < script src ="../../../dist/vue-i18n.min.js "> </ script >
88 </ head >
99 < body >
10- < p > {{ $t('message.hello', { msg: "hello"}) }}</ p >
10+ < div id ="app ">
11+ < p > {{ $t('message.hello', { msg: "hello"}) }}</ p >
12+ </ div >
1113 < script >
1214 var locales = {
1315 en : {
2022 Vue . use ( VueI18n )
2123 Vue . locale ( 'en' , locales [ 'en' ] )
2224
23- new Vue ( { el : 'body ' } )
25+ new Vue ( { el : '#app ' } )
2426 </ script >
2527 </ body >
2628</ html >
Original file line number Diff line number Diff line change 77 < script src ="../../../dist/vue-i18n.min.js "> </ script >
88 </ head >
99 < body >
10- < p > {{ $t('message.hello', { msg: "hello"}) }}</ p >
10+ < div id ="app ">
11+ < p > {{ $t('message.hello', { msg: "hello"}) }}</ p >
12+ </ div >
1113 < script >
1214 var locales = {
1315 en : {
2022 Vue . use ( VueI18n )
2123 Vue . locale ( 'en' , locales [ 'en' ] )
2224
23- new Vue ( { el : 'body ' } )
25+ new Vue ( { el : '#app ' } )
2426 </ script >
2527 </ body >
2628</ html >
Original file line number Diff line number Diff line change 1+ module . exports = {
2+ component : function ( browser ) {
3+ browser
4+ . url ( 'http://localhost:8080/examples/component/' )
5+ . waitForElementVisible ( '#app' , 1000 )
6+ . assert . containsText ( 'p:nth-child(1)' , 'こんにちは、世界' )
7+ . assert . containsText ( 'p:nth-child(2)' , 'component1 local: こんにちは、component1' )
8+ . end ( )
9+ }
10+ }
Original file line number Diff line number Diff line change 1+ module . exports = {
2+ 'formatting html' : function ( browser ) {
3+ browser
4+ . url ( 'http://localhost:8080/examples/formatting/html/' )
5+ . waitForElementVisible ( '#app' , 1000 )
6+ . assert . attributeContains ( 'p' , 'innerHTML' , '' )
7+ . end ( )
8+ }
9+ }
Original file line number Diff line number Diff line change 1+ module . exports = {
2+ 'formatting list' : function ( browser ) {
3+ browser
4+ . url ( 'http://localhost:8080/examples/formatting/list/' )
5+ . waitForElementVisible ( '#app' , 1000 )
6+ . assert . containsText ( 'p' , 'hello world' )
7+ . end ( )
8+ }
9+ }
Original file line number Diff line number Diff line change 1+ module . exports = {
2+ 'formatting name' : function ( browser ) {
3+ browser
4+ . url ( 'http://localhost:8080/examples/formatting/named/' )
5+ . waitForElementVisible ( '#app' , 1000 )
6+ . assert . containsText ( 'p' , 'hello world' )
7+ . end ( )
8+ }
9+ }
Original file line number Diff line number Diff line change 1+ module . exports = {
2+ 'formatting rails' : function ( browser ) {
3+ browser
4+ . url ( 'http://localhost:8080/examples/formatting/rails/' )
5+ . waitForElementVisible ( '#app' , 1000 )
6+ . assert . containsText ( 'p' , 'hello world' )
7+ . end ( )
8+ }
9+ }
You can’t perform that action at this time.
0 commit comments