Skip to content

Commit

Permalink
Merge pull request #164 from tabidachinokaze/_organizing_identifying
Browse files Browse the repository at this point in the history
翻译 get-started/_common/components/_organizing_identifying.md
  • Loading branch information
y2-Whyto committed Jul 30, 2022
2 parents a663a04 + 6fabb01 commit eba2938
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion get-started/_common/components/_organizing_identifying.md
Original file line number Diff line number Diff line change
@@ -1,21 +1,31 @@
## Identifying components
<!-- ## Identifying components -->
## 组件的标记

<!--
Components are identified by a URL. The framework resolves component URLs to
component declarations with the help of a **component resolver**. Resolvers are
components themselves that are capable of handling a particular URL scheme and
fetching the component manifest, program, and assets.
-->
组件由 URL 标识。框架借助**组件解析器**将组件 URL 解析为组件声明。解析器本身就是能够处理特定 URL 格式并获取组件清单、程序和资源的组件。

<!--
Most components are published inside a Fuchsia package, so the component URL is
a reference to the component manifest inside that package. See the following
example:
-->
大多数组件都发布在 Fuchsia 包内,因此组件 URL 是对该包内组件清单的引用。请查看下面的示例:


```none
fuchsia-pkg://fuchsia.com/{{ '<var>' }}foo-package{{ '</var>' }}#meta/{{ '<var>' }}foo-component.cm{{ '</var>' }}
```

<!--
Component instances are identified by a topological path reference known as a
**moniker**. A component's moniker indicates its location within the component
instance tree as an absolute or relative path. For example, the moniker path
`/core/system-updater` refers to the instance of `system-updater` that exists
in the `core` realm.
-->
组件实例由称为 **绰号(moniker)** 的拓扑路径引用来标识。组件的绰号将其在组件实例树中的位置指示为绝对或相对路径。例如,绰号路径 `/core/system-updater` 指的是存在于 `core` 领域中的 `system-updater` 的实例。

0 comments on commit eba2938

Please sign in to comment.