Fix: disable operations of dataset when embedding unavailable (#1055)
Co-authored-by: jyong <jyong@dify.ai>
This commit is contained in:
parent
8b8e510bfe
commit
c67f345d0e
16 changed files with 401 additions and 287 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue