mirror of
https://github.com/arc53/DocsGPT
synced 2024-11-17 21:26:26 +00:00
feat: Add Japanese translation support fix
This commit is contained in:
parent
eed974b883
commit
75c6c6081a
@ -3,6 +3,7 @@ import { initReactI18next } from 'react-i18next';
|
||||
|
||||
import en from './en.json'; //English
|
||||
import es from './es.json'; //Spanish
|
||||
import jp from './jp.json'; //Japanese
|
||||
|
||||
i18n.use(initReactI18next).init({
|
||||
resources: {
|
||||
@ -12,6 +13,9 @@ i18n.use(initReactI18next).init({
|
||||
es: {
|
||||
translation: es,
|
||||
},
|
||||
jp: {
|
||||
translation: jp,
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
|
@ -32,6 +32,10 @@ const General: React.FC = () => {
|
||||
label: 'Spanish',
|
||||
value: 'es',
|
||||
},
|
||||
{
|
||||
label: 'Japanese',
|
||||
value: 'jp',
|
||||
},
|
||||
];
|
||||
const chunks = ['0', '2', '4', '6', '8', '10'];
|
||||
const token_limits = new Map([
|
||||
|
Loading…
Reference in New Issue
Block a user