Skip to content

Commit 80670f4

Browse files
committed
update docs
1 parent 1e4d358 commit 80670f4

30 files changed

+366
-418
lines changed

docs/.vitepress/config.js

Lines changed: 134 additions & 180 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,6 @@ const config = {
88
lang: 'en-US',
99
title: 'Vue I18n',
1010
description: 'Vue I18n is internationalization plugin for Vue.js',
11-
locales: {
12-
'/': {
13-
lang: 'en-US',
14-
title: 'Vue I18n',
15-
description: 'Vue I18n is internationalization plugin for Vue.js',
16-
}
17-
},
1811
head,
1912
// serviceWorker: true,
2013
themeConfig: {
@@ -23,211 +16,172 @@ const config = {
2316
docsDir: 'docs',
2417
docsBranch: 'master',
2518
editLinks: true,
19+
2620
algolia: {
2721
apiKey: '3a9e93ba1069de0ece2ae100daf8f6ea',
2822
indexName: 'vue-i18n',
2923
algoliaOptions: { facetFilters: ['type:$TYPE'] },
3024
},
31-
locales: {
32-
// default english
33-
'/': {
34-
nav: [
35-
{
36-
text: 'Guide',
37-
link: '/essentials/started'
38-
},
39-
{
40-
text: 'API Reference',
41-
link: '/api/general'
42-
},
43-
{
44-
text: 'Official Tooling',
45-
items: [
46-
// {
47-
// text: 'Vue CLI Plugin',
48-
// link: 'https://github.com/kazupon/vue-cli-plugin-i18n'
49-
// },
50-
{
51-
text: 'Webpack Loader',
52-
link: 'https://github.com/intlify/vue-i18n-loader'
53-
},
54-
{
55-
text: 'Rollup Plugin',
56-
link: 'https://github.com/intlify/rollup-plugin-vue-i18n'
57-
},
58-
{
59-
text: 'Vite Plugin',
60-
link: 'https://github.com/intlify/vite-plugin-vue-i18n'
61-
},
62-
{
63-
text: 'ESLint Plugin',
64-
link: 'https://intlify.github.io/eslint-plugin-vue-i18n/'
65-
},
66-
{
67-
text: 'CLI Tooling',
68-
link: 'https://github.com/intlify/cli',
69-
},
70-
{
71-
text: 'Extensions',
72-
link: 'https://github.com/kazupon/vue-i18n-extensions'
73-
}
74-
]
75-
},
76-
{
77-
text: '3rd Party Tooling',
78-
items: [
79-
{
80-
text: 'BabelEdit',
81-
link: 'https://www.codeandweb.com/babeledit?utm_campaign=vue-i18n-2019-01'
82-
},
83-
{
84-
text: 'i18n Ally',
85-
link: 'https://marketplace.visualstudio.com/items?itemName=antfu.i18n-ally'
86-
}
87-
]
88-
},
89-
{
90-
text: 'Changelog',
91-
link: 'https://github.com/intlify/vue-i18n-next/blob/master/CHANGELOG.md'
92-
}
93-
],
94-
sidebar: {
95-
'/': [
96-
{
97-
text: 'Introduction',
98-
link: '/introduction'
25+
26+
nav: [
27+
{
28+
text: 'Guide',
29+
link: '/guide/'
30+
},
31+
{
32+
text: 'API Reference',
33+
link: '/api/general'
34+
},
35+
{
36+
text: 'Ecosystem',
37+
link: '/ecosystem/official'
38+
},
39+
{
40+
text: 'Changelog',
41+
link: 'https://github.com/intlify/vue-i18n-next/blob/master/CHANGELOG.md'
42+
}
43+
],
44+
sidebar: {
45+
'/ecosystem/': [
46+
{
47+
text: 'Official Tooling',
48+
link: '/ecosystem/official'
49+
},
50+
{
51+
text: '3rd Party Tooling',
52+
link: '/ecosystem/third'
53+
},
54+
],
55+
'/api/': [
56+
{
57+
text: 'General',
58+
link: '/api/general'
59+
},
60+
{
61+
text: 'Legacy API',
62+
link: '/api/legacy'
63+
},
64+
{
65+
text: 'Composition API',
66+
link: '/api/composition'
67+
},
68+
{
69+
text: 'Components',
70+
link: '/api/component'
71+
},
72+
{
73+
text: 'Directives',
74+
link: '/api/directive'
75+
},
76+
{
77+
text: 'Component Injections',
78+
link: '/api/injection'
79+
}
80+
],
81+
'/': [
82+
{
83+
text: 'Introduction',
84+
link: '/introduction'
85+
},
86+
{
87+
text: 'Installation',
88+
link: '/installation',
89+
},
90+
{
91+
text: 'Essentials',
92+
collapsable: false,
93+
children: [
94+
{
95+
text: 'Getting Started',
96+
link: '/guide/',
97+
},
98+
{
99+
text: 'Message Format Syntax',
100+
link: '/guide/essentials/syntax',
101+
},
102+
{
103+
text: 'Pluralization',
104+
link: '/guide/essentials/pluralization'
99105
},
100106
{
101-
text: 'Installation',
102-
link: '/installation',
107+
text: 'Datetime Formatting',
108+
link: '/guide/essentials/datetime'
103109
},
104110
{
105-
text: 'Essentials',
106-
collapsable: false,
107-
children: [
108-
{
109-
text: 'Getting Started',
110-
link: '/essentials/started',
111-
},
112-
{
113-
text: 'Message Format Syntax',
114-
link: '/essentials/syntax',
115-
},
116-
{
117-
text: 'Pluralization',
118-
link: '/essentials/pluralization'
119-
},
120-
{
121-
text: 'Datetime Formatting',
122-
link: '/essentials/datetime'
123-
},
124-
{
125-
text: 'Number Formatting',
126-
link: '/essentials/number'
127-
},
128-
{
129-
text: 'Scope and Locale Changing',
130-
link: '/essentials/scope'
131-
},
132-
{
133-
text: 'Fallbacking',
134-
link: '/essentials/fallback'
135-
},
136-
{
137-
text: 'Local Scope Based Localization',
138-
link: '/essentials/local'
139-
}
140-
]
111+
text: 'Number Formatting',
112+
link: '/guide/essentials/number'
141113
},
142114
{
143-
text: 'Advanced',
144-
collapsable: false,
145-
children: [
146-
{
147-
text: 'Custom Directive',
148-
link: '/advanced/directive'
149-
},
150-
{
151-
text: 'Component Interpolation',
152-
link: '/advanced/component'
153-
},
154-
{
155-
text: 'Single File Components',
156-
link: '/advanced/sfc'
157-
},
158-
{
159-
text: 'Lazy Loading',
160-
link: '/advanced/lazy'
161-
},
162-
{
163-
text: 'Message Functions',
164-
link: '/advanced/function'
165-
},
166-
{
167-
text: 'Composition API',
168-
link: '/advanced/composition',
169-
},
170-
{
171-
text: 'Optimization',
172-
link: '/advanced/optimization',
173-
}
174-
]
115+
text: 'Scope and Locale Changing',
116+
link: '/guide/essentials/scope'
175117
},
176118
{
177-
text: 'Tooling',
178-
link: '/tooling'
119+
text: 'Fallbacking',
120+
link: '/guide/essentials/fallback'
179121
},
180122
{
181-
text: 'Migration from Vue 2',
182-
collapsable: false,
183-
children: [
184-
{
185-
text: 'Breaking Changes',
186-
link: '/migration/breaking'
187-
},
188-
{
189-
text: 'New Features',
190-
link: '/migration/features'
191-
},
192-
{
193-
text: 'Compostion API for Vue 2',
194-
link: '/migration/composition'
195-
}
196-
]
123+
text: 'Local Scope Based Localization',
124+
link: '/guide/essentials/local'
125+
}
126+
]
127+
},
128+
{
129+
text: 'Advanced',
130+
collapsable: false,
131+
children: [
132+
{
133+
text: 'Custom Directive',
134+
link: '/guide/advanced/directive'
135+
},
136+
{
137+
text: 'Component Interpolation',
138+
link: '/guide/advanced/component'
197139
},
198140
{
199-
text: 'Documentation for v8.x',
200-
link: '/v8-docs',
141+
text: 'Single File Components',
142+
link: '/guide/advanced/sfc'
201143
},
202-
],
203-
'/api/': [
204144
{
205-
text: 'General',
206-
link: '/api/general'
145+
text: 'Lazy Loading',
146+
link: '/guide/advanced/lazy'
207147
},
208148
{
209-
text: 'Legacy API',
210-
link: '/api/legacy'
149+
text: 'Message Functions',
150+
link: '/guide/advanced/function'
211151
},
212152
{
213153
text: 'Composition API',
214-
link: '/api/composition'
154+
link: '/guide/advanced/composition',
215155
},
216156
{
217-
text: 'Components',
218-
link: '/api/component'
157+
text: 'Optimization',
158+
link: '/guide/advanced/optimization',
159+
}
160+
]
161+
},
162+
{
163+
text: 'Migration from Vue 2',
164+
collapsable: false,
165+
children: [
166+
{
167+
text: 'Breaking Changes',
168+
link: '/guide/migration/breaking'
219169
},
220170
{
221-
text: 'Directives',
222-
link: '/api/directive'
171+
text: 'New Features',
172+
link: '/guide/migration/features'
223173
},
224174
{
225-
text: 'Component Injections',
226-
link: '/api/injection'
175+
text: 'Compostion API for Vue 2',
176+
link: '/guide/migration/composition'
227177
}
228178
]
229-
}
230-
}
179+
},
180+
{
181+
text: 'Documentation for v8.x',
182+
link: '/v8-docs',
183+
},
184+
]
231185
}
232186
}
233187
}

0 commit comments

Comments
 (0)