docs(web): update dev guide (#33815)

This commit is contained in:
Stephen Zhou
2026-03-20 17:23:17 +08:00
committed by GitHub
parent b0566b4193
commit ec8ff89dc1
10 changed files with 206 additions and 81 deletions

View File

@@ -41,7 +41,7 @@ cd web/i18n
cp -r en-US id-ID
```
2. Modify the translation `.json` files in the new folder. Keep keys flat (for example, `dialog.title`).
1. Modify the translation `.json` files in the new folder. Keep keys flat (for example, `dialog.title`).
1. Add the new language to the `languages.ts` file.
@@ -143,10 +143,10 @@ export const languages = [
]
```
4. Don't forget to mark the supported field as `true` if the language is supported.
1. Don't forget to mark the supported field as `true` if the language is supported.
1. Sometimes you might need to do some changes in the server side. Please change this file as well. 👇
https://github.com/langgenius/dify/blob/61e4bbabaf2758354db4073cbea09fdd21a5bec1/api/constants/languages.py#L5
<https://github.com/langgenius/dify/blob/61e4bbabaf2758354db4073cbea09fdd21a5bec1/api/constants/languages.py#L5>
> Note: `I18nText` type is automatically derived from `LanguagesSupported`, so you don't need to manually add types.