mirror of
https://github.com/langgenius/dify.git
synced 2026-04-05 10:25:48 +08:00
docs(web): update dev guide (#33815)
This commit is contained in:
@@ -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.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user