Skip to content

Commit ff75323

Browse files
committed
Fixes
1 parent 9dc0fb0 commit ff75323

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

guide/theme/index.hbs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,7 @@
144144
<ul id="lang-list" class="theme-popup" aria-label="Languages" role="menu">
145145
<li role="none"><button role="menuitem" class="theme" data-lang="en">English</button></li>
146146
<li role="none"><button role="menuitem" class="theme" data-lang="zh-TW">中文</button></li>
147+
<li role="none"><button role="menuitem" class="theme" data-lang="ko-KR">KR</button></li>
147148
</ul>
148149
{{#if search_enabled}}
149150
<button id="search-toggle" class="icon-button" type="button" title="Search. (Shortkey: s)" aria-label="Toggle Searchbar" aria-expanded="false" aria-keyshortcuts="S" aria-controls="searchbar">

guide/theme/lang_toggle.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
document.addEventListener('click', function (e) {
3131
if (e.target && e.target.matches('button[data-lang]')) {
3232
const chosenLang = e.target.getAttribute('data-lang');
33-
const supportedLangs = ['en', 'zh-TW']; // Add translated languages here
33+
const supportedLangs = ['en', 'zh-TW', 'ko-KR']; // Add translated languages here
3434

3535
let currentPath = window.location.pathname;
3636

guide/translations/ko-KR/book.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
[book]
22
authors = ["Karnage"]
3-
language = "en"
3+
language = "ko-KR"
44
src = "src"
55
title = "Learn Vulkan"
66

77
[output.html]
8-
theme = "theme"
9-
additional-js = ["theme/lang_toggle.js"]
10-
additional-css = ["theme/lang_toggle.css"]
8+
theme = "../theme"
9+
additional-js = ["../theme/lang_toggle.js"]
10+
additional-css = ["../theme/lang_toggle.css"]

0 commit comments

Comments
 (0)