Skip to content

Commit

Permalink
Connect JP translation
Browse files Browse the repository at this point in the history
  • Loading branch information
wizzomafizzo committed Jan 3, 2025
1 parent 0834202 commit 90ab61a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/i18n.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import zh_CN from "./translations/zh-CN.json";
import ko_KR from "./translations/ko-KR.json";
import fr_FR from "./translations/fr-FR.json";
import nl_NL from "./translations/nl-NL.json";
import ja_JP from "./translations/ja-JP.json";

const resources = {
en: en_US,
Expand All @@ -20,6 +21,8 @@ const resources = {
"ko-KR": ko_KR,
nl: nl_NL,
"nl-NL": nl_NL,
ja: ja_JP,
"ja-JP": ja_JP
};

i18n
Expand All @@ -28,7 +31,7 @@ i18n
.init({
resources,
fallbackLng: "en-US",
debug: true,
// debug: true,
interpolation: {
escapeValue: false
}
Expand Down
1 change: 1 addition & 0 deletions src/routes/settings.index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -364,6 +364,7 @@ function Settings() {
<option value="en-US">English (US)</option>
<option value="fr-FR">Français</option>
<option value="nl-NL">Nederlands</option>
<option value="ja-JP">日本語</option>
<option value="ko-KR">한국어</option>
<option value="zh-CN">中文</option>
</select>
Expand Down

0 comments on commit 90ab61a

Please sign in to comment.