Feat/portuguese support (#2075)

This commit is contained in:
crazywoola 2024-01-23 21:14:53 +08:00 • committed by GitHub
commit c17baef172
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
78 changed files with 2849 additions and 376 deletions

View file

@ -16,7 +16,7 @@ import {
ConfigurateMethodEnum,
ModelTypeEnum,
} from './declarations'
import { languageMaps } from './utils'
import { getModelRuntimeSupported } from '@/utils/language'
import I18n from '@/context/i18n'
import {
fetchDefaultModal,
@ -59,8 +59,7 @@ export const useSystemDefaultModelAndModelList: UseDefaultModelAndModelList = (
export const useLanguage = () => {
const { locale } = useContext(I18n)
return languageMaps[locale]
return getModelRuntimeSupported(locale)
}
export const useProviderCrenditialsFormSchemasValue = (