🔧 chore: Update i18n config
parent
8363b97432
commit
e4f52b63c8
14
.i18nrc.js
14
.i18nrc.js
|
|
@ -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`;
|
||||
},
|
||||
},
|
||||
});
|
||||
|
|
|
|||
|
|
@ -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';
|
||||
|
|
|
|||
|
|
@ -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) => (
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
@ -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';
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue