add polish (pl) translation

This commit is contained in:
abnvle
2026-05-04 00:20:41 +02:00
parent 97ea87efc2
commit e0a3578ee2
3 changed files with 685 additions and 2 deletions
+1 -1
View File
@@ -10,7 +10,7 @@ let currentLocale = navigator.language?.substring(0, 2) || navigator.userLanguag
// Supported locales (languages that have locale files on the server)
// When a locale file is not found, the system gracefully falls back to English
const supportedLocales = ['en', 'es', 'zh', 'fa', 'fr', 'de', 'pt', 'nl', 'it', 'hi', 'ar', 'ru', 'ja', 'ko'];
const supportedLocales = ['en', 'es', 'zh', 'fa', 'fr', 'de', 'pt', 'nl', 'it', 'hi', 'ar', 'ru', 'ja', 'ko', 'pl'];
// Fallback to English if locale is not supported
if (!supportedLocales.includes(currentLocale)) {
+1 -1
View File
@@ -8,7 +8,7 @@ import { i18n } from './i18n.js';
// Locale files that actually exist (have full translations)
// Keep this list in sync when adding new locale JSON files
const AVAILABLE_LOCALES = new Set(['en', 'es', 'zh', 'fa', 'fr', 'de', 'pt', 'it', 'nl', 'hi', 'ar', 'ru', 'ja', 'ko']);
const AVAILABLE_LOCALES = new Set(['en', 'es', 'zh', 'fa', 'fr', 'de', 'pt', 'it', 'nl', 'hi', 'ar', 'ru', 'ja', 'ko', 'pl']);
// Language codes, names, and flag emojis
// Only returns languages that have a real locale file