# General Translation Platform: 在 monorepo 中使用 Locadex
URL: https://generaltranslation.com/zh/docs/platform/locadex/guides/using-in-monorepos.mdx
Docs index: https://generaltranslation.com/llms.txt
Description: 如何在 monorepo 中配置 Locadex 目标目录和命令。

如果你的项目使用 monorepo，请告诉 Locadex 哪个文件夹包含你要本地化的应用。你可以在创建或编辑自动化时设置此目标目录。

## 设置目标目录 [#target-directory]

打开 **项目 &gt; Automations**，然后创建或选择一个自动化。将 **目标目录** 设置为从代码仓库根目录到你的应用所在位置的路径。

当应用位于代码仓库根目录时，请使用 `.`。

## 配置命令 [#configure-commands]

自动化命令应在代码仓库根目录下运行。

如果某个命令需要在应用目录中运行，请在命令里加入切换目录的步骤，或使用包管理器的 workspace 命令。

例如：

```bash
cd locadex-lab && npm run build
```

## Next steps

- /docs/platform/locadex/guides/configuring-automations
- /docs/platform/locadex/guides/adding-environment-variables
- /docs/platform/locadex/guides/managing-languages
- /docs/platform/locadex/guides/auto-merging-prs

## Sitemap

See the full [sitemap](https://generaltranslation.com/sitemap.md) for all pages.
