Open debs-obrien opened 4 years ago
https://github.com/nuxt/nuxtjs.org/pull/1104
I have completed the example part..
My next target:
๐ guides -> get-started
great work. Once the majority of chapters have been translated we can add the 'zh' to the array in the slug for docs. Until then these pages won't be live and best to only put them live when we have a high percentage translated. keep up the great work @thedb
gogogo,I will continue the Chinese translation work!
gogogo,I will continue the Chinese translation work!
Thank you for your help. But I have a project this week. I will talk to you about the current progress when I am free.
HI I want to translate traditional Chinese. Do I need new Folder ?
ๅ ็บๅชๆ็ๅฐ็ฐก้ซไธญๆ ไธ็ฅ้็น้ซไธญๆ ้่ฆๅต็ซๆฐ็่ณๆๅคพๅ๏ผ
@thedb @debs-obrien
Maybe we can add two more files to i18n
folder, zh-hans.js
for simple Chinese, and zh-hant.js
for traditional Chinese. zh-ZH.js
looks older than en-US.js
now.
@dandanXO
You can copy the content/en
folder folder, rename the content/en
to content/tw
. Copy the i18n/zh-ZH.js
and rename to i18n/zh-TW.js
. And, then modify nuxt.config.ts
like this:
export default withDocus({
// ...
i18n: {
langDir: 'i18n/',
locales: [
{
code: 'en',
iso: 'en-US',
file: 'en-US.js',
name: 'English'
},
{
code: 'fr',
iso: 'fr-FR',
file: 'fr-FR.js',
name: 'Franรงais'
},
{
code: 'ja',
iso: 'ja-JP',
file: 'ja-JP.js',
name: 'ๆฅๆฌ่ช'
},
{
code: 'pt',
iso: 'pt-PT',
file: 'pt-PT.js',
name: 'Portuguรชs'
- }
+ },
+ {
+ code: 'tw',
+ iso: 'zh-TW',
+ file: 'zh-TW.js',
+ name: '็น้ซไธญๆ'
}
]
},
// ...
})
Finally, run yarn dev
start the development server.
New guides section needs to be translated.
See the readMe for info on how to translate our site: https://github.com/nuxt/nuxtjs.org
Feel free to just take one page and submit a pr. make sure you also tick the box in the list below. Or take on the whole project and just create a draft pr and we will merge it when it is finished.
i18n configuration
๐ guides -> components glossary
๐ guides -> concepts
๐ guides -> configuration glossary
๐ guides -> directory structure
๐ guides -> features
๐ guides -> get-started
๐ guides -> internals glossary