@@ -3,8 +3,18 @@ const title = 'Vue Grid Layout - ️A grid layout system for Vue.js'
33
44module . exports = {
55 base : "/vue-grid-layout/" ,
6- title,
7- description,
6+ locales : {
7+ '/' : {
8+ lang : 'en-US' ,
9+ title : 'Vue Grid Layout - ️A grid layout system for Vue.js' ,
10+ description : 'A draggable and resizable grid layout, as a Vue component.'
11+ } ,
12+ '/zh/' : {
13+ lang : 'zh-CN' ,
14+ title : 'Vue Grid Layout -️ 适用Vue.js的栅格布局系统' ,
15+ description : '可拖动和可调整大小栅格布局的Vue组件。'
16+ }
17+ } ,
818 head : [
919 [ 'link' , { rel : 'icon' , href : `/favicon.ico` } ] ,
1020 [ 'link' , { rel : "apple-touch-icon" , sizes : "180x180" , href : "https://jbaysolutions.github.io/vue-grid-layout/assets/favicon/apple-touch-icon.png" } ] ,
@@ -13,53 +23,104 @@ module.exports = {
1323 port : 8081 ,
1424 theme : '@vuepress/vue' ,
1525 themeConfig : {
16- sidebar : {
17- '/guide/' : [
18- {
19- title : "Guide" ,
20- collapsable : false ,
21- children : [
22- '' ,
23- 'usage' ,
24- 'properties' ,
25- 'events' ,
26- 'styling' ,
27- ]
28- } ,
29- {
30- title : "Examples" ,
31- collapsable : false ,
32- children : [
33- '01-basic' ,
34- '02-events' ,
35- '03-multiple-grids' ,
36- '04-allow-ignore' ,
37- '05-mirrored' ,
38- '06-responsive' ,
39- '07-prevent-collision' ,
40- '08-responsive-predefined-layouts' ,
41- '09-dynamic-add-remove' ,
42- '10-drag-from-outside' ,
43- ]
44- }
45- ]
46- } ,
47- nav : [
48- { text : 'Home' , link : '/' } ,
49- { text : 'Guide' , link : '/guide/' } ,
50- { text : 'Changelog' , link : '/changelog/' }
51- ] ,
52- searchPlaceholder : 'Search...' ,
5326 smoothScroll : true ,
5427 logo : '/assets/img/logo.png' ,
5528 repo : 'jbaysolutions/vue-grid-layout' ,
5629 docsDir : 'website/docs' ,
5730 editLinks : true ,
58- editLinkText : 'Help improve this page!' ,
59- lastUpdated : 'Last Updated' ,
6031 algolia : {
6132 apiKey : '2f143d1edd24605564065dd02bf0a22b' ,
6233 indexName : 'vue_grid_layout'
34+ } ,
35+ locales : {
36+ '/' : {
37+ selectText : 'Languages' ,
38+ label : 'English' ,
39+ ariaLabel : 'Select language' ,
40+ sidebar : {
41+ '/guide/' : [
42+ {
43+ title : "Guide" ,
44+ collapsable : false ,
45+ children : [
46+ '' ,
47+ 'usage' ,
48+ 'properties' ,
49+ 'events' ,
50+ 'styling' ,
51+ ]
52+ } ,
53+ {
54+ title : "Examples" ,
55+ collapsable : false ,
56+ children : [
57+ '01-basic' ,
58+ '02-events' ,
59+ '03-multiple-grids' ,
60+ '04-allow-ignore' ,
61+ '05-mirrored' ,
62+ '06-responsive' ,
63+ '07-prevent-collision' ,
64+ '08-responsive-predefined-layouts' ,
65+ '09-dynamic-add-remove' ,
66+ '10-drag-from-outside' ,
67+ ]
68+ }
69+ ]
70+ } ,
71+ nav : [
72+ { text : 'Home' , link : '/' } ,
73+ { text : 'Guide' , link : '/guide/' } ,
74+ { text : 'Changelog' , link : '/changelog/' }
75+ ] ,
76+ searchPlaceholder : 'Search...' ,
77+ editLinkText : 'Help improve this page!' ,
78+ lastUpdated : 'Last Updated'
79+ } ,
80+ '/zh/' : {
81+ selectText : '选择语言' ,
82+ label : '简体中文' ,
83+ ariaLabel : '选择语言' ,
84+ sidebar : {
85+ '/zh/guide/' : [
86+ {
87+ title : "首页" ,
88+ collapsable : false ,
89+ children : [
90+ '' ,
91+ 'usage' ,
92+ 'properties' ,
93+ 'events' ,
94+ 'styling' ,
95+ ]
96+ } ,
97+ {
98+ title : "例子" ,
99+ collapsable : false ,
100+ children : [
101+ '01-basic' ,
102+ '02-events' ,
103+ '03-multiple-grids' ,
104+ '04-allow-ignore' ,
105+ '05-mirrored' ,
106+ '06-responsive' ,
107+ '07-prevent-collision' ,
108+ '08-responsive-predefined-layouts' ,
109+ '09-dynamic-add-remove' ,
110+ '10-drag-from-outside' ,
111+ ]
112+ }
113+ ]
114+ } ,
115+ nav : [
116+ { text : '首页' , link : '/zh/' } ,
117+ { text : '指南' , link : '/zh/guide/' } ,
118+ { text : '更新日志' , link : '/zh/changelog/' }
119+ ] ,
120+ searchPlaceholder : '搜索...' ,
121+ editLinkText : '帮助改善此页面!' ,
122+ lastUpdated : '最后更新时间'
123+ }
63124 }
64125 } ,
65126 plugins : [
0 commit comments