fix: add Indonesian (id-ID) language support and improve language selector (#24951)

This commit is contained in:
lyzno1
2025-09-02 14:44:59 +08:00
committed by GitHub
parent a32dde5428
commit 0caa94bd1c
32 changed files with 5074 additions and 21 deletions

View File

@@ -48,7 +48,7 @@ By default we will use `LanguagesSupported` to determine which languages are sup
```
cd web/i18n
cp -r en-US fr-FR
cp -r en-US id-ID
```
2. Modify the translation files in the new folder.
@@ -68,6 +68,8 @@ export type I18nText = {
'ru-RU': string
'it-IT': string
'uk-UA': string
'id-ID': string
'tr-TR': string
'YOUR_LANGUAGE_CODE': string
}
```
@@ -146,8 +148,8 @@ export const languages = [
{
value: 'id-ID',
name: 'Bahasa Indonesia',
example: 'Saluto, Dify!',
supported: false,
example: 'Halo, Dify!',
supported: true,
},
{
value: 'uk-UA',