Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: chinese translations #550

Merged
merged 17 commits into from
Mar 19, 2024

Conversation

enpitsuLin
Copy link
Collaborator

@enpitsuLin enpitsuLin commented Feb 10, 2024

Working in progress reference #540 , but I also noticed some options themeConfig should be localized


Checklist for waiting translate page

Guide

  • /zh/guide/
  • /zh/guide/getting-started
  • /zh/guide/your-first-scene
  • /zh/guide/nuxt
  • /zh/guide/troubleshooting
  • /zh/guide/migration-guide

API

  • /zh/api/tres-canvas
  • /zh/api/instances-arguments-and-props
  • /zh/api/compoables
  • /zh/api/events

Advanced

  • /zh/advanced/extending
  • /zh/advanced/primitive
  • /zh/advanced/caveats

Debug

  • /zh/debug/devtools

Examples

  • /zh/examples/orbit-controls
  • /zh/examples/basic-animations
  • /zh/examples/groups
  • /zh/examples/load-textures
  • /zh/examples/load-models
  • /zh/examples/text-3d
  • /zh/examples/lights-shadows
  • /zh/examples/shaders

Directives

  • /zh/directives/v-log
  • /zh/directives/v-light-helper
  • /zh/directives/v-always-look-at
  • /zh/directives/v-distance-to

Other

  • /zh/team

@enpitsuLin enpitsuLin marked this pull request as draft February 10, 2024 13:26
@enpitsuLin
Copy link
Collaborator Author

enpitsuLin commented Feb 10, 2024

If any Chinese-speaker user has some suggestions or wants to help me, comment or contact me pls.🥰

如果有任何中文使用者用户想给点建议或者帮忙的话,留下评论或者直接联系我就好🥰

@enpitsuLin
Copy link
Collaborator Author

enpitsuLin commented Feb 11, 2024

I'm so happy to be working on this through collaborative translation with @X-smart. 🤗

it will be done ASAP

@X-smart
Copy link
Contributor

X-smart commented Feb 12, 2024

I'm glad to work together with @enpitsuLin on this translation.🤗

Hopefully, Tres can help more people get their work done

@enpitsuLin enpitsuLin marked this pull request as ready for review February 12, 2024 05:12
@enpitsuLin
Copy link
Collaborator Author

@X-smart can you help review this pls? For my part 😊

@X-smart
Copy link
Contributor

X-smart commented Feb 13, 2024

@enpitsuLin Of course, it would be my pleasure!

@X-smart
Copy link
Contributor

X-smart commented Feb 14, 2024

@enpitsuLin
如果您使用的是 Typescript,您就能充分享受类型的好处。 只需要保证你安装了 three 的类型定义。

如果您使用的是 Typescript,并且安装了 three 的类型定义,您就能充分享受类型的好处。

要使模板编译器能与自定义渲染器一起工作,并且不会在控制台上发出警告,这样做是必须的。

这样做是为了避免在同时使用模板编译器能与自定义渲染器使控制台上发出警告。

沙盒

Sandbox

动机

起因

ThreeJS 是一个用于创建超棒 WebGL 3D 网站的奇妙的库

ThreeJS 在创建超棒 WebGL 3D 网站方面是一个奇妙的库

树摇的效果

摇树优化

由于 v2 是自定义的呈现器

由于v2是自定义渲染

在我们创建场景前,我们需要一个什么来展示它

在创建场景前,我们需要一个什么来展示它?

HTML 原始

DOM节点

如果你的如果出现空白页

如果出现空白页

那个场景看起来有点空

上一步创建的场景看起来有点空

我们将传递一个 和一个

我们添加 和这两个组件。

Nuxt 所有附带的开发体验魔法

Nuxt附带的所有优秀开发体验

知道 3D 可以像缠结的毛线球

知道 3D 就像缠结的毛线球

也可以像键盘上的猫

或者像键盘上的猫

即使是最好的猫咪午睡者偶尔也会犯错误

即使最好的猫咪偶有疏忽

我们的编码猫爱好者团队将采取行动

我们热爱编程的“猫托邦”团队将迅速出击

让我们一起让 TresJS 成为 Vue 中 做 3D 渲染最好的的猫咪!

让我们携手合作,将 TresJS 打造成 Vue 3D 渲染界的璀璨明珠!

These are all my personal opinions, for reference only!

@hawk86104
Copy link
Contributor

我也来报个名🙋🏻‍♀️ I'll also sign up.

@alvarosabu
Copy link
Member

Hi @enpitsuLin @hawk86104 thanks for taking care of this. We recently merged the Cookbook section #557 so we will need to update the PR.

Steps:

  1. The .md files under examples directory are the same used in the cookbook, so just rename the directory from cn/examples to cn/cookbook.
  2. Add a cn/cookbook/index.md like this https://github.com/Tresjs/tres/pull/558/files#diff-65c3e40a0b2bdcfae6c3be42b004bfa4e079a250fefed0fca56af95b33a209ca
  3. Add the correspondent translated frontmatter meta to each one of the .md files inside the cookbook, like this https://github.com/Tresjs/tres/pull/558/files#diff-587026bcdc81388b1c6b391cdbdd7c2184a16b752a489c544a9d91c9e4b8f674
  4. Update the config links https://github.com/Tresjs/tres/pull/558/files#diff-d9b1069ba7dab3215b86ba2b70b13a13977d3c09c11bdd8d468a0d7e8c686641

If you have any question or you need help with this, let me know 🙏🏻

@alvarosabu alvarosabu added docs Improvements or additions to documentation i18n labels Mar 6, 2024
Copy link

netlify bot commented Mar 9, 2024

Deploy Preview for tresjs-docs ready!

Name Link
🔨 Latest commit 7eedae0
🔍 Latest deploy log https://app.netlify.com/sites/tresjs-docs/deploys/65f9278d9268b90008f9f6e5
😎 Deploy Preview https://deploy-preview-550--tresjs-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@enpitsuLin
Copy link
Collaborator Author

hi @alvarosabu I'd kept up the new update already, could you pls takes some time review this. thx

BTW, the preview of PR is so convenient😉

Copy link
Member

@alvarosabu alvarosabu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks amazing! I'm so happy to see this 💚, the Chinese community will love it.

@enpitsuLin there is only the search translation missing and I think we are good to go.

docs/.vitepress/config/zh.ts Show resolved Hide resolved
docs/.vitepress/config/zh.ts Outdated Show resolved Hide resolved
Copy link
Member

@alvarosabu alvarosabu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me @enpitsuLin 😍

@alvarosabu
Copy link
Member

Hey @enpitsuLin there are some changes incoming from this PR #589, could you please apply them to the Chinese translation? With that we are ready to release this next week 💚

@enpitsuLin
Copy link
Collaborator Author

enpitsuLin commented Mar 19, 2024

I'm sry that I was a little busy last weekend. it's done now. @alvarosabu

@alvarosabu alvarosabu merged commit 957358f into Tresjs:main Mar 19, 2024
5 checks passed
@Sea-DH1
Copy link

Sea-DH1 commented Mar 20, 2024

@enpitsuLin
primitive 用原语个人感觉不是很贴切
用 图元 会不会更好呢?

@enpitsuLin
Copy link
Collaborator Author

@enpitsuLin primitive 用原语个人感觉不是很贴切 用 图元 会不会更好呢?

好像确实会更贴切点,不过这个 pr 已经合并了,不过你可以可以开另一个 pr 来修改下,可以 cc 我

@hexianWeb
Copy link
Contributor

即将释出的 tresjs version 4.0 很酷 ! 我也希望能为社区出一份力 (●'◡'●),如果有我可以帮忙的地方,请直接喊我

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Improvements or additions to documentation i18n
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

6 participants