Integrate i18n support across multiple components: Update AddToCartButton, CartDropdown, CartItem, Footer, ProductFilters, ProductList, and profile components to utilize translation functions for dynamic text rendering. Enhance user experience by providing localized content for various UI elements, including buttons, labels, and tax information.
This commit is contained in:
@@ -5,7 +5,7 @@ import LanguageDetector from 'i18next-browser-languagedetector';
|
||||
// Import all translation files
|
||||
import translationDE from './locales/de/translation.json';
|
||||
import translationEN from './locales/en/translation.json';
|
||||
import translationES from './locales/es/translation.json';
|
||||
/*import translationES from './locales/es/translation.json';
|
||||
import translationFR from './locales/fr/translation.json';
|
||||
import translationIT from './locales/it/translation.json';
|
||||
import translationPL from './locales/pl/translation.json';
|
||||
@@ -17,14 +17,14 @@ import translationUK from './locales/uk/translation.json';
|
||||
import translationSK from './locales/sk/translation.json';
|
||||
import translationCS from './locales/cs/translation.json';
|
||||
import translationRO from './locales/ro/translation.json';
|
||||
|
||||
*/
|
||||
const resources = {
|
||||
de: {
|
||||
translation: translationDE
|
||||
},
|
||||
en: {
|
||||
translation: translationEN
|
||||
},
|
||||
}/*,
|
||||
es: {
|
||||
translation: translationES
|
||||
},
|
||||
@@ -60,7 +60,7 @@ const resources = {
|
||||
},
|
||||
ro: {
|
||||
translation: translationRO
|
||||
}
|
||||
}*/
|
||||
};
|
||||
|
||||
i18n
|
||||
|
||||
Reference in New Issue
Block a user