feat: update legal document translations and add new language support

- Replaced the existing legal document files with more specific ones for delivery, payment, and consumer rights.
- Added new legal documents related to data protection, including basic, customer, Google orders, newsletter, chatbot, cookies, and rights.
- Introduced Albanian language support in the translation files and language switcher component.
- Enhanced the translation functions to ensure structural files are copied correctly for new languages.
This commit is contained in:
sebseb7
2025-08-05 18:17:08 +02:00
parent 9f707737b4
commit c1d2205e6c
18 changed files with 290 additions and 162 deletions

View File

@@ -47,7 +47,7 @@ export class LanguageProvider extends Component {
this.state = {
currentLanguage,
availableLanguages: ['de'], // Start with only German visible
allLanguages: ['ar', 'bg', 'cs', 'de', 'el', 'en', 'es', 'fr', 'hr', 'hu', 'it', 'pl', 'ro', 'ru', 'sk', 'sl', 'sr', 'sv', 'tr', 'uk', 'zh'],
allLanguages: ['ar', 'bg', 'cs', 'de', 'el', 'en', 'es', 'fr', 'hr', 'hu', 'it', 'pl', 'ro', 'ru', 'sk', 'sl', 'sq', 'sr', 'sv', 'tr', 'uk', 'zh'],
demoMode: false,
currentLanguageIndex: 0,
loadingLanguages: new Set()