Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Use Romanian & other languages in QA embedding #4047

Closed
wants to merge 45 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
85043e7
Use Romanian & other langs in QA
rennokki May 2, 2024
53fd95b
Update language.ts
rennokki May 9, 2024
a1a0cb5
version to 0.6.6 (#4050)
takatost May 2, 2024
1643484
fix: workflow avg user interaction. (#4056)
GarfieldDai May 2, 2024
0f59354
fix: unable to fetch CoT agent runner log (#4052)
sinomoe May 3, 2024
ebadcac
test: add integration tests on CodeExecutor with the sandbox service …
bowenliang123 May 3, 2024
ee80db6
Fix typo: writeOpner -> writeOpener (#4060)
shoheiweb86 May 3, 2024
b382070
Feat: frontend support timezone of timestamp (#4070)
JzoNgKVO May 4, 2024
46264d8
fix: agent log timezone (#4076)
Yeuoly May 4, 2024
512a455
feat: add a new built-in tool of Slack Incoming Webhook (#4067)
ericyangpan May 4, 2024
52becaf
fix: transform None into correct dest type (#4077)
Yeuoly May 4, 2024
2c8a8e9
Revert "fix: hydration warning (#3897)" (#4059)
TinsFox May 4, 2024
bf2b382
Update bedrock.yaml add Region Asia Pacific (Sydney) (#4016)
chenx5 May 5, 2024
b370800
Leptonai integrate (#4079)
joshua20231026 May 5, 2024
dc1c80c
Urgent Correction: Resolving Critical License Documentation Error in …
LinkX-shomasakamoto May 6, 2024
1118202
improve: menu collapse readability (#4099)
JunIce May 6, 2024
2ce2a34
fix: correct the license link (#4093)
buddypia May 6, 2024
418a0ce
fix: typo in get-automatic-res.tsx (#4097)
eltociear May 6, 2024
20a32fe
🦄 refactor(dataset svc): delete check none (#4101)
baxiang May 6, 2024
09f769d
feat: support aliyun oss auth v4 (#3886)
S96EA May 6, 2024
b930611
fix: prevent http node overwrite on open (#4127)
perzeuss May 7, 2024
3a2e042
feat: add http node max size env (#4137)
Yeuoly May 7, 2024
9f0760e
Improved Japanese translation (#4119)
Fyphen1223 May 7, 2024
ec31632
improve: test CodeExecutor with code templates and extract CodeLangua…
bowenliang123 May 7, 2024
ea020a1
feat: support time format (#4138)
Yeuoly May 7, 2024
60e4679
feat: support openai stream usage (#4140)
Yeuoly May 7, 2024
34367eb
bug fix: update minimax model_apis (#4116)
Weaxs May 7, 2024
5de394a
feat(Languages): :alien: add pl-PL language (#4128)
patryk20120 May 7, 2024
531d1bc
azure_openai add gpt-4-turbo-2024-04-09 model (#4144)
charli117 May 7, 2024
b49e247
fix: passing in 0 as a numeric variable will be converted to null (#4…
takatost May 7, 2024
8370312
question classifier optimize (#4147)
JohnJyong May 7, 2024
018a6e6
fix: http authorization leakage (#4146)
Yeuoly May 7, 2024
cc4fab2
Add support for local ai speech to text (#3921)
Tomywang999 May 7, 2024
4090046
feat: support vision models from xinference (#4094)
Minamiyama May 7, 2024
1d4774a
feat: update model_provider jina to support custom url and model (#4110)
VoidIsVoid May 7, 2024
42db25a
fix dataset segment update api not effect issue (#4151)
JohnJyong May 7, 2024
ec6ef5f
feat: add proxy configuration for Cohere model (#4152)
huangbaichao May 7, 2024
2b8d914
fix: stop event propagation when deleting selected workflow var node …
lawvs May 7, 2024
0030805
Add-Deepseek (#4157)
joshua20231026 May 7, 2024
789c61c
feat: DeepSeek (#4162)
soulteary May 7, 2024
e49d29d
Fix:typo Incorrect Japanese 2 (#4167)
sasaharukimedes May 8, 2024
c25b24e
Typo on deepseek.yaml and yi.yaml (#4170)
Yongtae723 May 8, 2024
44afad2
feat: add volcengine maas model provider (#4142)
sinomoe May 8, 2024
299f416
fix: workflow http node timeout & url check (#4175)
zxhlyh May 8, 2024
66440ac
Use Romanian & other langs in QA
rennokki May 2, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import React from 'react'
import cn from 'classnames'
import { ChevronDown } from '@/app/components/base/icons/src/vender/line/arrows'
import Popover from '@/app/components/base/popover'
import { languages } from '@/i18n/language';

export type ILanguageSelectProps = {
currentLanguage: string
Expand All @@ -20,13 +21,14 @@ const LanguageSelect: FC<ILanguageSelectProps> = ({
trigger='click'
htmlContent={
<div className='w-full py-1'>
<div className='py-2 px-3 mx-1 flex items-center gap-2 hover:bg-gray-100 rounded-lg cursor-pointer text-gray-700 text-sm' onClick={() => onSelect('English')}>English</div>
<div className='py-2 px-3 mx-1 flex items-center gap-2 hover:bg-gray-100 rounded-lg cursor-pointer text-gray-700 text-sm' onClick={() => onSelect('Chinese')}>简体中文</div>
{languages.filter(language => language.supported).map(({ prompt_name, name }) => (
<div className='py-2 px-3 mx-1 flex items-center gap-2 hover:bg-gray-100 rounded-lg cursor-pointer text-gray-700 text-sm' onClick={() => onSelect(prompt_name)}>{prompt_name} — {name}</div>
))}
</div>
}
btnElement={
<div className='inline-flex items-center'>
<span className='pr-[2px] text-xs leading-[18px] font-medium'>{currentLanguage === 'English' ? 'English' : '简体中文'}</span>
<span className='pr-[2px] text-xs leading-[18px] font-medium'>{currentLanguage}</span>
<ChevronDown className='w-3 h-3 opacity-60' />
</div>
}
Expand Down
1 change: 1 addition & 0 deletions web/hooks/use-metadata.ts
Original file line number Diff line number Diff line change
Expand Up @@ -312,6 +312,7 @@ export const useLanguages = () => {
cs: t(`${langPrefix}cs`),
th: t(`${langPrefix}th`),
id: t(`${langPrefix}id`),
ro: t(`${langPrefix}ro`),
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure if this is relevant, just came across this.

}
}

Expand Down
22 changes: 22 additions & 0 deletions web/i18n/language.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,93 +25,115 @@ export const languages = [
{
value: 'en-US',
name: 'English (United States)',
prompt_name: 'English',
example: 'Hello, Dify!',
supported: true,
},
{
value: 'zh-Hans',
name: '简体中文',
prompt_name: 'Chinese',
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure if both should be Chinese. I think this is the Simplified one and the other is Traditional?

example: '你好,Dify!',
supported: true,
},
{
value: 'zh-Hant',
name: '繁體中文',
prompt_name: 'Chinese',
example: '你好,Dify!',
supported: true,
},
{
value: 'pt-BR',
name: 'Português (Brasil)',
prompt_name: 'Portuguese',
example: 'Olá, Dify!',
supported: true,
},
{
value: 'es-ES',
name: 'Español (España)',
prompt_name: 'Spanish',
example: 'Saluton, Dify!',
supported: false,
},
{
value: 'fr-FR',
name: 'Français (France)',
prompt_name: 'French',
example: 'Bonjour, Dify!',
supported: true,
},
{
value: 'de-DE',
name: 'Deutsch (Deutschland)',
prompt_name: 'German',
example: 'Hallo, Dify!',
supported: true,
},
{
value: 'ja-JP',
name: '日本語 (日本)',
prompt_name: 'Japanese',
example: 'こんにちは、Dify!',
supported: true,
},
{
value: 'ko-KR',
name: '한국어 (대한민국)',
prompt_name: 'Korean',
example: '안녕, Dify!',
supported: false,
},
{
value: 'ru-RU',
name: 'Русский (Россия)',
prompt_name: 'Russian',
example: ' Привет, Dify!',
supported: false,
},
{
value: 'it-IT',
name: 'Italiano (Italia)',
prompt_name: 'Italian',
example: 'Ciao, Dify!',
supported: false,
},
{
value: 'th-TH',
name: 'ไทย (ประเทศไทย)',
prompt_name: 'Thai',
example: 'สวัสดี Dify!',
supported: false,
},
{
value: 'id-ID',
name: 'Bahasa Indonesia',
prompt_name: 'Indonesian',
example: 'Saluto, Dify!',
supported: false,
},
{
value: 'uk-UA',
name: 'Українська (Україна)',
prompt_name: 'Ukrainian',
example: 'Привет, Dify!',
supported: true,
},
{
value: 'vi-VN',
name: 'Tiếng Việt (Việt Nam)',
prompt_name: 'Vietnamese',
example: 'Xin chào, Dify!',
supported: true,
},
{
value: 'ro-RO',
name: 'Română (România)',
prompt_name: 'Romanian',
example: 'Salut, Dify!',
supported: true,
}
]

export const LanguagesSupported = languages.filter(item => item.supported).map(item => item.value)
Expand Down