This repository has been archived by the owner on Jan 29, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 127
Locale Support
Andrew Redican edited this page Oct 13, 2018
·
15 revisions
RJEA provides built-in support for several languages.
To specify which language want, you must import from module, like so:
import locale from 'react-json-editor-ajrm/locale/en';
- Prior to version
2.5.2
,August 4, 2018
import statement looked like this:
import locale from 'react-json-editor-ajrm/dist/locale/en';
Then add to to the component's locale
property, like so:
<JSONInput
locale = {locale}
/>
Name | Import |
---|---|
English | react-json-editor-ajrm/dist/locale/en
|
German | react-json-editor-ajrm/dist/locale/de
|
Spanish | react-json-editor-ajrm/dist/locale/es
|
Hindi | react-json-editor-ajrm/dist/locale/hin
|
Tamil | react-json-editor-ajrm/dist/locale/ta
|
Indonesian | react-json-editor-ajrm/dist/locale/id
|
Japanese | react-json-editor-ajrm/dist/locale/jpn
|
Portuguese | react-json-editor-ajrm/dist/locale/pt
|
Chinese (Simplified) | react-json-editor-ajrm/dist/locale/zh-cn
|
French | react-json-editor-ajrm/dist/locale/fr
|
Russian | react-json-editor-ajrm/dist/locale/ru
|
There are plans to add support for more languages. See this issue for more information.