Skip to content

Commit

Permalink
translate module introduction
Browse files Browse the repository at this point in the history
  • Loading branch information
hanyujie2002 committed Feb 9, 2024
1 parent 4d95fae commit ab98602
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions docs/documentation/zh/modules-reference/Introduction.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
---
title: Modules - Introduction
short: Introduction
title: 模块——简介
short: 简介
layout: docs
permalink: /zh/docs/handbook/modules/introduction.html
oneline: How TypeScript models JavaScript modules
oneline: TypeScript 如何处理 JavaScript 模块
translatable: true
---

This document is divided into four sections:
本文档分为四个部分:

1. The first section develops the [**theory**](/docs/handbook/modules/theory.html) behind how TypeScript approaches modules. If you want to be able to write the correct module-related compiler options for any situation, reason about how to integrate TypeScript with other tools, or understand how TypeScript processes dependency packages, this is the place to start. While there are guides and reference pages on these topics, building an understanding of these fundamentals will make reading the guides easier, and give you a mental framework for dealing with real-world problems not specifically covered here.
2. The [**guides**](/docs/handbook/modules/guides/choosing-compiler-options.html) show how to accomplish specific real-world tasks, starting with picking the right compilation settings for a new project. The guides are a good place to start both for beginners who want to get up and running as quickly as possible and for experts who already have a good grasp of the theory but want concrete guidance on a complicated task.
3. The [**reference**](/docs/handbook/modules/reference.html) section provides a more detailed look at the syntaxes and configurations presented in previous sections.
4. The [**appendices**](/docs/handbook/modules/appendices/esm-cjs-interop.html) cover complicated topics that deserve additional explanation in more detail than the theory or reference sections allow.
1. 第一部分详细介绍了[**理论**](/zh/docs/handbook/modules/theory.html),介绍了 TypeScript 处理模块的方式。如果你想学习如何在任何情况下,都能编写正确的与模块相关的编译选项,思考如何将 TypeScript 与其他工具集成,或者理解 TypeScript 如何处理依赖包,那么这个部分是你了解的起点。虽然你可以直接阅读指南和参考页面,但是了解这些基础知识将使你更容易阅读指南,并为处理这里没有具体涵盖的实际问题提供一个思维框架。
2. [**指南**](/zh/docs/handbook/modules/guides/choosing-compiler-options.html)展示了如何完成特定的实际任务,我们将从为新项目选择合适的编译设置开始。对于那些希望尽快入门的初学者和已经对理论有很好掌握但希望获得复杂任务具体指导的专家来说,这些指南是一个很好的起点。
3. [**参考**](/zh/docs/handbook/modules/reference.html)部分更详细地介绍了前面部分中提到的语法和配置。
4. [**附录**](/zh/docs/handbook/modules/appendices/esm-cjs-interop.html)介绍了值得进一步解释的复杂主题,比理论或参考部分更详细。

0 comments on commit ab98602

Please sign in to comment.