File tree Expand file tree Collapse file tree 3 files changed +16
-0
lines changed Expand file tree Collapse file tree 3 files changed +16
-0
lines changed Original file line number Diff line number Diff line change 32
32
return false ;
33
33
}
34
34
35
+ function getCookie ( cKey ) {
36
+ var name = cKey + "=" ;
37
+ var ca = document . cookie . split ( ';' ) ;
38
+ for ( var i = 0 ; i < ca . length ; i ++ ) {
39
+ var c = ca [ i ] ;
40
+ while ( c . charAt ( 0 ) === ' ' ) c = c . substring ( 1 ) ;
41
+ if ( c . indexOf ( name ) !== - 1 ) return c . substring ( name . length , c . length ) ;
42
+ }
43
+ return "" ;
44
+ }
45
+
35
46
//加载类库资源文件
36
47
function load ( config ) {
37
48
var libsurl = config . libsurl ;
38
49
var includes = ( targetScript . getAttribute ( 'include' ) || "" ) . split ( "," ) ;
39
50
var excludes = ( targetScript . getAttribute ( 'exclude' ) || "" ) . split ( "," ) ;
51
+ const resourceLanguage = getCookie ( 'language' ) ;
52
+ inputScript ( "../locales/" + resourceLanguage + "/resources.js" ) ;
40
53
inputScript ( "../js/tokengenerator.js" ) ;
41
54
inputScript ( "../js/websymbol.js" ) ;
42
55
var jQueryInclude = false ;
Original file line number Diff line number Diff line change @@ -1830,3 +1830,5 @@ window.examplesResources = {
1830
1830
"text_print" : "Print"
1831
1831
}
1832
1832
} ;
1833
+
1834
+ window . resources = window . examplesResources . resources ;
Original file line number Diff line number Diff line change @@ -1781,3 +1781,4 @@ window.examplesResources = {
1781
1781
"text_print" : "打印"
1782
1782
}
1783
1783
} ;
1784
+ window . resources = window . examplesResources . resources ;
You can’t perform that action at this time.
0 commit comments