-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from DKU-STUDY/feature/i18next
feat: i18next 설정 적용
- Loading branch information
Showing
11 changed files
with
115 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
import i18next from 'i18next'; | ||
import { initReactI18next } from 'react-i18next'; | ||
import { ko } from './locales'; | ||
|
||
const KO = 'ko'; | ||
|
||
const ns = [ 'common', 'user', 'study' ]; | ||
|
||
i18next | ||
.use(initReactI18next) | ||
// https://www.i18next.com/overview/configuration-options | ||
.init({ | ||
whitelist: [ KO ], | ||
fallbackLng: KO , | ||
load: 'languageOnly', | ||
resources: { ko }, | ||
ns, | ||
defaultNS: 'common', | ||
react: { | ||
wait: true, | ||
bindI18n: 'languageChanged loaded', | ||
useSuspense: false, | ||
nsMode: "default", | ||
transSupportBasicHtmlNodes: true, | ||
transKeepBasicHtmlNodesFor: ['br', 'strong', 'i'] | ||
} | ||
}); | ||
|
||
export default i18next; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import ko from './ko'; | ||
|
||
export { ko }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"group": "그룹" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import common from './common.json'; | ||
import user from './user.json'; | ||
import study from './study.json'; | ||
|
||
const ko = { common, user, study }; | ||
|
||
export default ko; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"study": "스터디", | ||
"participating": "참여 중인", | ||
"being_recruited": "모집 중인", | ||
"in_progress": "진행 중인", | ||
"terminated": "종료 된" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"login": "로그인", | ||
"logout": "로그아웃" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters