feat: Add Japanese translation support fix

This commit is contained in:
Alex 2024-06-07 16:08:36 +01:00
parent eed974b883
commit 75c6c6081a
2 changed files with 8 additions and 0 deletions

View File

@ -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,
},
},
});

View File

@ -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([