File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 40
40
< div >
41
41
< div style ="display: flex; justify-content: center; align-items: center ">
42
42
< p style ="margin-right: 15px; margin-bottom: 0; padding: 8px ">
43
- Article Activity
43
+ {{ default " Article Activity" (.Get "title_text") }}
44
44
</ p >
45
45
< select id ="yearSelector ">
46
46
<!-- Years will be dynamically added here -->
229
229
yearLabel : { show : false } ,
230
230
dayLabel : {
231
231
firstDay : 1 ,
232
- nameMap : 'EN'
232
+ nameMap : { { default "EN" ( . Get "language" ) } }
233
233
} ,
234
234
monthLabel : {
235
- nameMap : 'EN'
235
+ nameMap : { { default "EN" ( . Get "language" ) } }
236
236
} ,
237
237
splitLine : {
238
238
show : false ,
242
242
hideDelay : 1000 ,
243
243
enterable : true ,
244
244
formatter : function ( params ) {
245
- const thousandWordsText = 'k words' ;
245
+ const thousandWordsText = { { default "EN" ( . Get "language" ) } } === "EN" ? 'k words' : '千字 ';
246
246
const date = params . data [ 0 ] ;
247
247
const posts = postsByDate . get ( date ) . get ( "posts" ) ;
248
248
var content = `${ date } ` ;
You can’t perform that action at this time.
0 commit comments