mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-08-27 18:36:08 +00:00
* add Japanese to SupportedLocales * add ja-jp.json just copied en-us.json * add Japanese translations. * Unified punctuation in Japanese translation * Add items to ja-jp.json(reflects commit 39fc6f8) * Correct key name mistake in 2 items. * Remove spaces at the end of lines * Import ja-jp.json into i18nextUtils.ts
This commit is contained in:
parent
89301729a2
commit
f675d5dd6e
File diff suppressed because it is too large
Load Diff
@ -15,12 +15,14 @@ import { InitOptions } from 'i18next';
|
||||
import { map } from 'lodash';
|
||||
import enUS from '../../locale/languages/en-us.json';
|
||||
import frFR from '../../locale/languages/fr-fr.json';
|
||||
import jaJP from '../../locale/languages/ja-jp.json';
|
||||
import zhCN from '../../locale/languages/zh-cn.json';
|
||||
|
||||
export enum SupportedLocales {
|
||||
English = 'en-US',
|
||||
Français = 'fr-FR',
|
||||
简体中文 = 'zh-CN',
|
||||
日本語 = 'ja-JP',
|
||||
}
|
||||
|
||||
export const languageSelectOptions = map(SupportedLocales, (value, key) => ({
|
||||
@ -36,6 +38,7 @@ export const getInitOptions = (): InitOptions => {
|
||||
'en-US': { translation: enUS },
|
||||
'fr-FR': { translation: frFR },
|
||||
'zh-CN': { translation: zhCN },
|
||||
'ja-JP': { translation: jaJP },
|
||||
},
|
||||
fallbackLng: ['en-US'],
|
||||
detection: {
|
||||
|
Loading…
x
Reference in New Issue
Block a user