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
1 change: 1 addition & 0 deletions backend/app/Locale.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ enum Locale: string
case PL = 'pl';
case SK = 'sk';
case EL = 'el';
case KO = 'ko';

public static function getSupportedLocales(): array
{
Expand Down
711 changes: 711 additions & 0 deletions backend/lang/ko.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion frontend/lingui.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const config: LinguiConfig = {
"sk", // Slovak
"el", // Greek
// "ja", // Japanese
// "ko", // Korean
"ko", // Korean
// "id", // Indonesian
"zh-hk", // Cantonese Chinese (Hong Kong)
// "cs", // Czech
Expand Down
2 changes: 2 additions & 0 deletions frontend/src/components/common/LanguageSwitcher/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ export const LanguageSwitcher = () => {
return t`Slovak`;
case "el":
return t`Greek`;
case "ko":
return t`Korean`;
default:
// Defensive fallback: if a new locale is added to SupportedLocales
// but not handled here, return the locale code itself rather than
Expand Down
7 changes: 5 additions & 2 deletions frontend/src/locales.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,10 @@ export type SupportedLocales =
| "pl"
| "se"
| "sk"
| "el";
| "el"
| "ko";

export const availableLocales = ["en", "de", "fr", "it", "nl", "pt", "es", "zh-cn", "zh-hk", "pt-br", "vi", "tr", "hu", "pl", "se", "sk", "el"];
export const availableLocales = ["en", "de", "fr", "it", "nl", "pt", "es", "zh-cn", "zh-hk", "pt-br", "vi", "tr", "hu", "pl", "se", "sk", "el", "ko"];

export const localeToFlagEmojiMap: Record<SupportedLocales, string> = {
en: 'πŸ‡¬πŸ‡§',
Expand All @@ -39,6 +40,7 @@ export const localeToFlagEmojiMap: Record<SupportedLocales, string> = {
se: 'πŸ‡ΈπŸ‡ͺ',
sk: 'πŸ‡ΈπŸ‡°',
el: 'πŸ‡¬πŸ‡·',
ko: 'πŸ‡°πŸ‡·',
};

export const localeToNameMap: Record<SupportedLocales, string> = {
Expand All @@ -59,6 +61,7 @@ export const localeToNameMap: Record<SupportedLocales, string> = {
se: `Swedish`,
sk: `Slovak`,
el: `Greek`,
ko: `Korean`,
};

export const getLocaleName = (locale: SupportedLocales) => {
Expand Down
1 change: 1 addition & 0 deletions frontend/src/locales/ko.js

Large diffs are not rendered by default.

Loading
Loading