mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-07-03 11:35:11 +08:00
fix: tools description is missing (#8999)
This commit is contained in:
parent
dc5839b6bb
commit
9815a0911b
@ -31,8 +31,10 @@ export const languages = data.languages
|
|||||||
export const LanguagesSupported = languages.filter(item => item.supported).map(item => item.value)
|
export const LanguagesSupported = languages.filter(item => item.supported).map(item => item.value)
|
||||||
|
|
||||||
export const getLanguage = (locale: string) => {
|
export const getLanguage = (locale: string) => {
|
||||||
const supportedLocale = LanguagesSupported.find(lang => lang.startsWith(locale.split('-')[0]))
|
if (locale === 'zh-Hans')
|
||||||
return (supportedLocale || LanguagesSupported[0]).replace('-', '_')
|
return locale.replace('-', '_')
|
||||||
|
|
||||||
|
return LanguagesSupported[0].replace('-', '_')
|
||||||
}
|
}
|
||||||
|
|
||||||
export const NOTICE_I18N = {
|
export const NOTICE_I18N = {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user