mirror of
http://112.124.100.131/huang.ze/ebiz-dify-ai.git
synced 2025-12-08 18:36:53 +08:00
fix: tools description is missing (#8999)
This commit is contained in:
@@ -31,8 +31,10 @@ export const languages = data.languages
|
||||
export const LanguagesSupported = languages.filter(item => item.supported).map(item => item.value)
|
||||
|
||||
export const getLanguage = (locale: string) => {
|
||||
const supportedLocale = LanguagesSupported.find(lang => lang.startsWith(locale.split('-')[0]))
|
||||
return (supportedLocale || LanguagesSupported[0]).replace('-', '_')
|
||||
if (locale === 'zh-Hans')
|
||||
return locale.replace('-', '_')
|
||||
|
||||
return LanguagesSupported[0].replace('-', '_')
|
||||
}
|
||||
|
||||
export const NOTICE_I18N = {
|
||||
|
||||
Reference in New Issue
Block a user