🔧 chore: Update i18n config

pull/466/head
canisminor1990 2023-11-23 18:40:11 +08:00
parent 8363b97432
commit e4f52b63c8
8 changed files with 16 additions and 6 deletions

View File

@ -10,7 +10,17 @@ module.exports = defineConfig({
entryLocale: 'en_US',
output: 'locales',
outputLocales: outputLocales,
splitToken: 2500,
temperature: 0,
modelName: 'gpt-3.5-turbo',
modelName: 'gpt-3.5-turbo-1106',
experimental: {
jsonMode: true,
},
markdown: {
entry: ['./README.md'],
outputLocales: ['zh_CN'],
outputExtensions: (locale) => {
if (locale === 'en_US') return '.md';
return `.${locale.replace('_', '-')}.md`;
},
},
});

View File

@ -3,5 +3,4 @@ export { default as Loading } from './Loading';
export { default as Logo, type LogoProps } from './Logo';
export { default as CustomLogo, type CustomLogoProps } from './Logo/CustomLogo';
export { default as PromptEditor } from './PromptEditor';
export { default as Setting, type SettingProps } from './Setting';
export { default as VersionTag } from './VersionTag';

View File

@ -7,7 +7,8 @@ import { memo, useCallback, useState } from 'react';
import { useTranslation } from 'react-i18next';
import { shallow } from 'zustand/shallow';
import { Giscus, Setting } from '@/components';
import { Giscus } from '@/components';
import Setting from '@/features/Setting';
import { selectors, useAppStore } from '@/store';
const CivitaiLogo: LucideIcon | any = ({ size }: any) => (

View File

@ -5,9 +5,9 @@ import { memo } from 'react';
import { useTranslation } from 'react-i18next';
import { Flexbox } from 'react-layout-kit';
import { homepage } from '@/../package.json';
import VersionTag from '@/components/VersionTag';
import { homepage } from '../../../package.json';
import SettingForm from './SettingForm';
export interface SettingProps {

View File

@ -1,6 +1,6 @@
import type { SelectProps } from 'antd';
import type { NeutralColor, PrimaryColor } from '@/components/Setting/data';
import type { NeutralColor, PrimaryColor } from '@/features/Setting/data';
import { DEFAULT_LOCALE_OPTIONS, DEFAULT_VERSION } from '@/store/api';
import type { I18n } from '@/types';