# 子项目和内嵌代码

没有所依赖的其他项目就不可能有 Weblate。本文档描述其他代码在 Weblate 中是如何被使用的。

## 拷贝的前端源代码

Weblate 将几个 JavaScript 库的源代码拷贝到自己的源码中。我们在 [Weblate 前端](https://docs.weblate.org/zh-cn/latest/contributing/frontend.md) 中描述了这一过程，每个被拷贝的库的许可证均按照 [Weblate 许可](https://docs.weblate.org/zh-cn/latest/contributing/license.md) 中的描述通过 REUSE 进行文档记录。依赖的最新列表可以在 [软件物料清单](https://docs.weblate.org/zh-cn/latest/security/release-artifacts.md#sbom) 中查看。

## SPDX 许可证数据

SPDX 许可证数据以 Git 子模块形式包含在源代码中，使用 `scripts/generate-license-data.py` 生成 `weblate/utils/licensedata.py`。子模块跟踪带标签的 SPDX 发行版。Renovate 操作更新 `.gitmodules` 中记录的版本，许可证更新工作流更新子模块和生成的许可证数据。

## 测试数据

`weblate/trans/tests/data/test-base-repo.*.tar` 中的测试仓库生成自 [https://github.com/WeblateOrg/test](https://github.com/WeblateOrg/test)，见 [测试仓库](https://docs.weblate.org/zh-cn/latest/contributing/tests.md#test-data)。

## Python 依赖项

没有众多第三方依赖项就不可能有 Weblate。当前依赖项位于 `pyproject.toml` 中，可以在 [软件物料清单](https://docs.weblate.org/zh-cn/latest/security/release-artifacts.md#sbom) 中查看。在 [Python 依赖项](https://docs.weblate.org/zh-cn/latest/admin/install.md#python-deps) 中描述了最重要的依赖项。
