feat(bisaya-course): enhance German course content and localization support
All checks were successful
Deploy to production / deploy (push) Successful in 2m47s

- Updated the create-german-for-bisaya-course-content.js script to improve lesson pattern retrieval by introducing a new function for generating a lesson pattern pool.
- Added new exercises for various topics including 'Wohnung & Nachbarn', 'Besuch empfangen', 'Arzt, Apotheke, Termin', and 'Amt, Dokumente, Anmeldung', enhancing practical language skills for learners.
- Improved localization by integrating translation keys for various UI elements and error messages across multiple components, ensuring a consistent user experience in both German and Bisaya.
- Enhanced the main.js file to recognize Bisaya language preferences in browser settings, improving accessibility for users.
This commit is contained in:
Torsten Schulz (local)
2026-03-31 17:40:03 +02:00
parent b1990334b9
commit c6caeefb5f
49 changed files with 3468 additions and 262 deletions

View File

@@ -12,6 +12,10 @@ import feedbackPlugin from './utils/feedback';
function getBrowserLanguage() {
// Prüfe zuerst die bevorzugte Sprache
const browserLanguage = navigator.language || navigator.languages[0];
if (browserLanguage.startsWith('ceb') || browserLanguage.startsWith('bis')) {
return 'ceb';
}
// Deutschsprachige Länder: Deutschland, Österreich, Schweiz, Liechtenstein
const germanSpeakingCountries = ['de', 'at', 'ch', 'li'];
@@ -24,6 +28,9 @@ function getBrowserLanguage() {
// Prüfe alle verfügbaren Sprachen für deutschsprachige Länder
const allLanguages = navigator.languages || [navigator.language];
for (const lang of allLanguages) {
if (lang.startsWith('ceb') || lang.startsWith('bis')) {
return 'ceb';
}
// Prüfe auf de-XX Format (z.B. de-DE, de-AT, de-CH, de-LI)
if (lang.startsWith('de-')) {
const countryCode = lang.split('-')[1]?.toLowerCase();