Skip to content
Open
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
4 changes: 4 additions & 0 deletions src/frontend/client/src/components/Nav/AccountSettings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,10 @@ function AccountSettings() {
{localize('com_nav_lang_japanese')}
{langcode === 'ja' && <Check size={16} />}
</DropdownMenuItem>
<DropdownMenuItem className='font-normal justify-between' onClick={() => changeLang('ko')}>
{localize('com_nav_lang_korean')}
{langcode === 'ko' && <Check size={16} />}
</DropdownMenuItem>
</DropdownMenuSubContent>
</DropdownMenuSub>
{/* <DropdownMenuItem className='select-item text-sm font-normal'>
Expand Down
4 changes: 4 additions & 0 deletions src/frontend/client/src/layouts/UserPopMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,10 @@ export function UserPopMenu() {
<span className="flex-1 text-sm">日本語</span>
{langcode === 'ja' && <Check className="ml-2 size-4 text-blue-600" />}
</DropdownMenuItem>
<DropdownMenuItem className="rounded-lg px-3 py-2.5 data-[highlighted]:bg-[#e8eaed] focus:bg-[#e8eaed]" onSelect={runMenuItemSelect(() => changeLang('ko'))}>
<span className="flex-1 text-sm">한국어</span>
{langcode === 'ko' && <Check className="ml-2 size-4 text-blue-600" />}
</DropdownMenuItem>
</DropdownMenuSubContent>
</DropdownMenuSub>

Expand Down
2 changes: 2 additions & 0 deletions src/frontend/client/src/locales/i18n.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import LanguageDetector from 'i18next-browser-languagedetector';
// Import your JSON translations
import translationEn from './en/translation.json';
import translationJa from './ja/translation.json';
import translationKo from './ko/translation.json';
import translationZh_Hans from './zh-Hans/translation.json';

export const defaultNS = 'translation';
Expand All @@ -13,6 +14,7 @@ export const resources = {
'en': { translation: translationEn },
'zh-Hans': { translation: translationZh_Hans },
'ja': { translation: translationJa },
'ko': { translation: translationKo },
} as const;

const config = window.BRAND_CONFIG || {};
Expand Down
Loading