Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Korean 2-set #14

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/Components/KeyBoard.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ function KeyBoard(props) {
'ф', 'ы', 'в', 'а', 'п', 'р', 'о', 'л', 'д', 'ж', 'э',
'я', 'ч', 'с', 'м', 'и', 'т', 'ь', 'б', 'ю'
];
const koreanArr = [
// TODO: Add Korean Letters
];
let keyboardArr;
const capslockArr = [...numbersArr, ...englishArr.map(char => char.toUpperCase())];
switch (props.language) {
Expand Down
3 changes: 3 additions & 0 deletions src/Components/KeyBoardLanguage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ function KeyBoardLanguage(props) {
case "ukranian":
setLanguage("ukranian");
break;
case "korean":
setLanguage("korean");
default:
setLanguage([]);
}
Expand All @@ -41,6 +43,7 @@ function KeyBoardLanguage(props) {
<option value="arabic">عربيه</option>
<option value="ukranian">українська</option>
<option value="russian">русский</option>
<option value="korean">한국인</option>
</select>
{props.isEmojiActive ? (
<FaKeyboard className="icon" id="kyboard-icon" onClick={props.changeState} />
Expand Down
3 changes: 3 additions & 0 deletions src/Components/virtualKeyBoard.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ function VirtualKeyBoard() {
"أكتب هنا",
"друкуйте тут",
"напечатайте здесь",
"여기에 입력하세요"
];
const [placeholder, setPlaceHolder] = useState("type here");
const [language, setLanguage] = useState("english");
Expand Down Expand Up @@ -46,6 +47,8 @@ function VirtualKeyBoard() {
case "russian":
setPlaceHolder(placeholders[4]);
break;
case "korean":
setPlaceHolder(placeholders[5])
default:
setPlaceHolder(placeholders[0]);
break;
Expand Down