Add `locales` for i18n support.

pull/415/head
Jinlei Li 2 years ago
parent 4f202d376d
commit 6abb4a2aa9

@ -1,6 +1,5 @@
module.exports = {
base: '/learn-wgpu/',
title: 'Learn Wgpu',
theme: 'thindark',
plugins: {
'vuepress-plugin-code-copy': true,
@ -8,6 +7,16 @@ module.exports = {
'seo': {
},
},
locales: {
'/': {
lang: 'English',
title: 'Learn Wgpu',
},
'https://jinleili.github.io/learn-wgpu-zh/': {
lang: '中文',
title: '学习 Wgpu',
},
},
themeConfig: {
author: {
name: 'Benjamin Hansen',

@ -18,10 +18,6 @@ I'm using this project to learn wgpu myself, so I might miss some important deta
* Due to wgpu's rapidly changing api, I'm not accepting any new pull requests for showcase demos.
* If you want to support me directly, check out my [patreon](https://www.patreon.com/sotrh)!
## Translations
* [中文版](https://doodlewind.github.io/learn-wgpu-cn)
## Special thanks to these patrons!
- David Laban

Loading…
Cancel
Save