mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-08-22 15:38:20 +00:00
Add Japanese support (#3906)
### What problem does this PR solve?
Add native translation in locales for Japanese 🇯🇵 to support new local
language
### Type of change
- [x] New Feature (non-breaking change which adds functionality)
Co-authored-by: Hiroshi Kameya <kameya_h@sunflare.co.jp>
This commit is contained in:
parent
1254ecf445
commit
dcedfc5ec8
@ -46,6 +46,7 @@ export const LanguageList = [
|
|||||||
'Indonesia',
|
'Indonesia',
|
||||||
'Spanish',
|
'Spanish',
|
||||||
'Vietnamese',
|
'Vietnamese',
|
||||||
|
'Japanese',
|
||||||
];
|
];
|
||||||
|
|
||||||
export const LanguageMap = {
|
export const LanguageMap = {
|
||||||
@ -55,6 +56,7 @@ export const LanguageMap = {
|
|||||||
Indonesia: 'Indonesia',
|
Indonesia: 'Indonesia',
|
||||||
Spanish: 'Español',
|
Spanish: 'Español',
|
||||||
Vietnamese: 'Tiếng việt',
|
Vietnamese: 'Tiếng việt',
|
||||||
|
Japanese: '日本語',
|
||||||
};
|
};
|
||||||
|
|
||||||
export const LanguageTranslationMap = {
|
export const LanguageTranslationMap = {
|
||||||
@ -64,6 +66,7 @@ export const LanguageTranslationMap = {
|
|||||||
Indonesia: 'id',
|
Indonesia: 'id',
|
||||||
Spanish: 'es',
|
Spanish: 'es',
|
||||||
Vietnamese: 'vi',
|
Vietnamese: 'vi',
|
||||||
|
Japanese: 'ja',
|
||||||
};
|
};
|
||||||
|
|
||||||
export enum FileMimeType {
|
export enum FileMimeType {
|
||||||
|
@ -5,6 +5,7 @@ import { initReactI18next } from 'react-i18next';
|
|||||||
import translation_en from './en';
|
import translation_en from './en';
|
||||||
import translation_es from './es';
|
import translation_es from './es';
|
||||||
import translation_id from './id';
|
import translation_id from './id';
|
||||||
|
import translation_ja from './ja';
|
||||||
import translation_vi from './vi';
|
import translation_vi from './vi';
|
||||||
import translation_zh from './zh';
|
import translation_zh from './zh';
|
||||||
import translation_zh_traditional from './zh-traditional';
|
import translation_zh_traditional from './zh-traditional';
|
||||||
@ -14,6 +15,7 @@ const resources = {
|
|||||||
zh: translation_zh,
|
zh: translation_zh,
|
||||||
'zh-TRADITIONAL': translation_zh_traditional,
|
'zh-TRADITIONAL': translation_zh_traditional,
|
||||||
id: translation_id,
|
id: translation_id,
|
||||||
|
ja: translation_ja,
|
||||||
es: translation_es,
|
es: translation_es,
|
||||||
vi: translation_vi,
|
vi: translation_vi,
|
||||||
};
|
};
|
||||||
@ -25,7 +27,7 @@ i18n
|
|||||||
detection: {
|
detection: {
|
||||||
lookupLocalStorage: 'lng',
|
lookupLocalStorage: 'lng',
|
||||||
},
|
},
|
||||||
supportedLngs: ['en', 'zh', 'zh-TRADITIONAL', 'id', 'es', 'vi'],
|
supportedLngs: ['en', 'zh', 'zh-TRADITIONAL', 'id', 'es', 'vi', 'ja'],
|
||||||
resources,
|
resources,
|
||||||
fallbackLng: 'en',
|
fallbackLng: 'en',
|
||||||
interpolation: {
|
interpolation: {
|
||||||
|
1092
web/src/locales/ja.ts
Normal file
1092
web/src/locales/ja.ts
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user