Fix: disable operations of dataset when embedding unavailable (#1055)

Co-authored-by: jyong <jyong@dify.ai>
This commit is contained in:
KVOJJJin 2023-08-30 17:27:19 +08:00 • committed by GitHub
commit c67f345d0e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
16 changed files with 401 additions and 287 deletions

View file

@ -35,6 +35,8 @@ import exploreEn from './lang/explore.en'
import exploreZh from './lang/explore.zh'
import { getLocaleOnClient } from '@/i18n/client'
const localLng = getLocaleOnClient()
const resources = {
'en': {
translation: {
@ -86,7 +88,7 @@ i18n.use(initReactI18next)
// init i18next
// for all options read: https://www.i18next.com/overview/configuration-options
.init({
lng: getLocaleOnClient(),
lng: localLng,
fallbackLng: 'en',
// debug: true,
resources,