Skip to content

Commit

Permalink
add all korean locales to i18n util
Browse files Browse the repository at this point in the history
  • Loading branch information
kyleawayan committed Feb 11, 2021
1 parent f70e84c commit 1675219
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions utils/i18n.js
Original file line number Diff line number Diff line change
@@ -1,17 +1,23 @@
import i18n from "i18next";
import { initReactI18next } from "react-i18next";
const enUS = require('../lang/en-US.json')
const koKR = require('../lang/ko-KR.json')
const enUS = require("../lang/en-US.json");
const koKR = require("../lang/ko-KR.json");

// the translations
// (tip move them in a JSON file and import them)
const resources = {
"en-US": {
translation: enUS
translation: enUS,
},
ko: {
translation: koKR,
},
"ko-kr": {
translation: koKR,
},
"ko-KR": {
translation: koKR
}
translation: koKR,
},
};

i18n
Expand All @@ -23,8 +29,8 @@ i18n
keySeparator: false, // we do not use keys in form messages.welcome

interpolation: {
escapeValue: false // react already safes from xss
escapeValue: false, // react already safes from xss
},
});

export default i18n;
export default i18n;

1 comment on commit 1675219

@vercel
Copy link

@vercel vercel bot commented on 1675219 Feb 11, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.