From 63a2d7eb8e94f17299f650b58f617ed9c9b5e9b9 Mon Sep 17 00:00:00 2001 From: Awais Ansari <79941147+awais-ansari@users.noreply.github.com> Date: Thu, 28 Nov 2024 18:32:47 +0500 Subject: [PATCH 1/2] fix: console and propType errors (#621) * fix: console and propType errors * fix: updated default props --- .env.development | 1 + .env.test | 1 + .eslintignore | 1 + Makefile | 16 +++++--- package-lock.json | 11 ++++++ package.json | 1 + src/DesktopHeader.jsx | 6 +-- src/Header.jsx | 2 + src/Notification/data/hook.js | 10 ++++- src/Notification/index.jsx | 4 +- src/i18n/index.js | 29 +-------------- src/i18n/messages/ar.json | 53 --------------------------- src/i18n/messages/de.json | 53 --------------------------- src/i18n/messages/es_419.json | 53 --------------------------- src/i18n/messages/fr.json | 53 --------------------------- src/i18n/messages/fr_CA.json | 53 --------------------------- src/i18n/messages/hi.json | 53 --------------------------- src/i18n/messages/it.json | 53 --------------------------- src/i18n/messages/pt.json | 53 --------------------------- src/i18n/messages/ru.json | 53 --------------------------- src/i18n/messages/uk.json | 53 --------------------------- src/i18n/messages/zh_CN.json | 53 --------------------------- src/studio-header/MobileMenu.jsx | 2 +- src/studio-header/NavDropdownMenu.jsx | 2 +- 24 files changed, 44 insertions(+), 625 deletions(-) delete mode 100644 src/i18n/messages/ar.json delete mode 100644 src/i18n/messages/de.json delete mode 100644 src/i18n/messages/es_419.json delete mode 100644 src/i18n/messages/fr.json delete mode 100644 src/i18n/messages/fr_CA.json delete mode 100644 src/i18n/messages/hi.json delete mode 100644 src/i18n/messages/it.json delete mode 100644 src/i18n/messages/pt.json delete mode 100644 src/i18n/messages/ru.json delete mode 100644 src/i18n/messages/uk.json delete mode 100644 src/i18n/messages/zh_CN.json diff --git a/.env.development b/.env.development index 53605820..cd76ce6a 100644 --- a/.env.development +++ b/.env.development @@ -22,3 +22,4 @@ LOGO_WHITE_URL=https://edx-cdn.org/v3/prod/logo-white.svg FAVICON_URL=https://edx-cdn.org/v3/prod/favicon.ico NOTIFICATION_FEEDBACK_URL='' CAREERS_URL='' +STUDIO_BASE_URL='' diff --git a/.env.test b/.env.test index 335fa225..ff42aeae 100644 --- a/.env.test +++ b/.env.test @@ -22,3 +22,4 @@ LOGO_WHITE_URL=https://edx-cdn.org/v3/prod/logo-white.svg FAVICON_URL=https://edx-cdn.org/v3/prod/favicon.ico NOTIFICATION_FEEDBACK_URL='' CAREERS_URL='' +STUDIO_BASE_URL='' diff --git a/.eslintignore b/.eslintignore index c9fc3ce1..32c5f3fa 100644 --- a/.eslintignore +++ b/.eslintignore @@ -3,3 +3,4 @@ dist example node_modules src/lightning.js +src/i18n/messages/ diff --git a/Makefile b/Makefile index aecbca50..b1f3c95f 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,4 @@ -export TRANSIFEX_RESOURCE = frontend-component-header-edx -transifex_resource = frontend-component-header-edx -transifex_langs = "ar,fr,es_419,zh_CN,pt,it,de,uk,ru,hi,fr_CA" - +intl_imports = ./node_modules/.bin/intl-imports.js transifex_utils = ./node_modules/.bin/transifex-utils.js i18n = ./src/i18n transifex_input = $(i18n)/transifex_input.json @@ -50,9 +47,16 @@ push_translations: # Pushing comments to Transifex... ./node_modules/@edx/reactifex/bash_scripts/put_comments_v3.sh -# Pulls translations from Transifex. pull_translations: - tx pull -t -f --mode reviewed --languages=$(transifex_langs) + rm -rf src/i18n/messages + mkdir src/i18n/messages + cd src/i18n/messages \ + && atlas pull $(ATLAS_OPTIONS) \ + translations/frontend-component-header/src/i18n/messages:frontend-component-header\ + translations/frontend-platform/src/i18n/messages:frontend-platform \ + translations/paragon/src/i18n/messages:paragon \ + + $(intl_imports) frontend-component-header-edx frontend-platform paragon # This target is used by Travis. validate-no-uncommitted-package-lock-changes: diff --git a/package-lock.json b/package-lock.json index 2dec3c06..5dc503ac 100644 --- a/package-lock.json +++ b/package-lock.json @@ -34,6 +34,7 @@ "@edx/brand": "npm:@edx/brand-edx.org@2.1.3", "@edx/browserslist-config": "1.2.0", "@edx/frontend-platform": "^8.1.0", + "@edx/openedx-atlas": "^0.6.0", "@edx/reactifex": "2.2.0", "@openedx/frontend-build": "^14.0.10", "@testing-library/dom": "9.3.4", @@ -2336,6 +2337,16 @@ "@newrelic/publish-sourcemap": "^5.0.1" } }, + "node_modules/@edx/openedx-atlas": { + "version": "0.6.2", + "resolved": "https://registry.npmjs.org/@edx/openedx-atlas/-/openedx-atlas-0.6.2.tgz", + "integrity": "sha512-28Q8vzJDMS4wUxdkbIUBQpzWJ3HTdMaGlaEhFjrVGfuZkh++1AG6Tn/7FMD88cegalYAkphu530VQCHEkMZQhw==", + "dev": true, + "license": "AGPL-3.0", + "bin": { + "atlas": "atlas" + } + }, "node_modules/@edx/reactifex": { "version": "2.2.0", "resolved": "https://registry.npmjs.org/@edx/reactifex/-/reactifex-2.2.0.tgz", diff --git a/package.json b/package.json index cb3d404c..c77c6eaf 100644 --- a/package.json +++ b/package.json @@ -37,6 +37,7 @@ "@edx/browserslist-config": "1.2.0", "@edx/frontend-platform": "^8.1.0", "@edx/reactifex": "2.2.0", + "@edx/openedx-atlas": "^0.6.0", "@openedx/frontend-build": "^14.0.10", "@testing-library/dom": "9.3.4", "@testing-library/jest-dom": "5.17.0", diff --git a/src/DesktopHeader.jsx b/src/DesktopHeader.jsx index 0390b7e7..6c4aa801 100644 --- a/src/DesktopHeader.jsx +++ b/src/DesktopHeader.jsx @@ -207,7 +207,7 @@ DesktopHeader.propTypes = { items: PropTypes.arrayOf(PropTypes.shape({ type: PropTypes.oneOf(['item', 'menu']), href: PropTypes.string, - content: PropTypes.string, + content: PropTypes.oneOfType([PropTypes.string, PropTypes.node]), disabled: PropTypes.bool, isActive: PropTypes.bool, onClick: PropTypes.func, @@ -255,8 +255,8 @@ DesktopHeader.defaultProps = { email: '', loggedIn: false, notificationAppData: { - apps: { }, - tabsCount: { }, + apps: {}, + tabsCount: {}, appsId: [], isNewNotificationViewEnabled: false, notificationExpiryDays: 0, diff --git a/src/Header.jsx b/src/Header.jsx index 29b9f6ec..2b1a8fbe 100644 --- a/src/Header.jsx +++ b/src/Header.jsx @@ -28,6 +28,7 @@ ensureConfig([ 'LOGO_URL', 'ACCOUNT_SETTINGS_URL', 'NOTIFICATION_FEEDBACK_URL', + 'STUDIO_BASE_URL', ], 'Header component'); subscribe(APP_CONFIG_INITIALIZED, () => { @@ -188,6 +189,7 @@ const Header = ({ secondaryMenu: getConfig().MINIMAL_HEADER || getConfig().AUTHN_MINIMAL_HEADER ? [] : secondaryMenu, userMenu: getConfig().AUTHN_MINIMAL_HEADER ? [] : userMenu, loggedOutItems: getConfig().AUTHN_MINIMAL_HEADER ? [] : loggedOutItems, + studioBaseUrl: config.STUDIO_BASE_URL, }; if (enterpriseCustomerBrandingConfig) { diff --git a/src/Notification/data/hook.js b/src/Notification/data/hook.js index f9f73130..164a6e8c 100644 --- a/src/Notification/data/hook.js +++ b/src/Notification/data/hook.js @@ -84,7 +84,15 @@ export function useNotification() { isNewNotificationViewEnabled, }; } catch (error) { - return { notificationStatus: RequestStatus.FAILED }; + return { + notificationStatus: RequestStatus.FAILED, + apps: {}, + appsId: [], + isNewNotificationViewEnabled: false, + notificationExpiryDays: 0, + showNotificationsTray: false, + tabsCount: { count: 0 }, + }; } }, [normalizeNotificationCounts]); diff --git a/src/Notification/index.jsx b/src/Notification/index.jsx index f1865f42..ad87aa9a 100644 --- a/src/Notification/index.jsx +++ b/src/Notification/index.jsx @@ -230,13 +230,13 @@ Notifications.propTypes = { Notifications.defaultProps = { showLeftMargin: true, notificationAppData: { - apps: { }, - tabsCount: { }, + apps: {}, appsId: [], isNewNotificationViewEnabled: false, notificationExpiryDays: 0, notificationStatus: '', showNotificationsTray: false, + tabsCount: { count: 0 }, }, }; diff --git a/src/i18n/index.js b/src/i18n/index.js index 0336b3a2..d6d1738d 100644 --- a/src/i18n/index.js +++ b/src/i18n/index.js @@ -1,28 +1 @@ -import arMessages from './messages/ar.json'; -import frMessages from './messages/fr.json'; -import es419Messages from './messages/es_419.json'; -import zhcnMessages from './messages/zh_CN.json'; -import ptMessages from './messages/pt.json'; -import itMessages from './messages/it.json'; -import ukMessages from './messages/uk.json'; -import deMessages from './messages/de.json'; -import ruMessages from './messages/ru.json'; -import hiMessages from './messages/hi.json'; -import frCAMessages from './messages/fr_CA.json'; -// no need to import en messages-- they are in the defaultMessage field - -const messages = { - ar: arMessages, - 'es-419': es419Messages, - fr: frMessages, - 'zh-cn': zhcnMessages, - pt: ptMessages, - it: itMessages, - de: deMessages, - hi: hiMessages, - 'fr-ca': frCAMessages, - ru: ruMessages, - uk: ukMessages, -}; - -export default messages; +export default []; diff --git a/src/i18n/messages/ar.json b/src/i18n/messages/ar.json deleted file mode 100644 index 45fcb55e..00000000 --- a/src/i18n/messages/ar.json +++ /dev/null @@ -1,53 +0,0 @@ -{ - "header.links.courses": "المساقات", - "header.links.programs": "البرامج", - "header.links.content.search": "اكتشف الجديد", - "header.links.schools": "المدارس و الشركاء", - "header.user.menu.career": "حياة مهنية", - "header.user.menu.newAlert": "جديد", - "header.user.menu.dashboard": "لوحة المعلومات", - "header.user.menu.profile": "الملف الشخصي", - "header.user.menu.account.settings": "الحساب", - "header.user.menu.order.history": "المشتريات السابقة", - "header.user.menu.logout": "تسجيل الخروج", - "header.user.menu.login": "تسجيل الدخول", - "header.user.menu.register": "التسجيل ", - "header.label.account.nav": "الحساب", - "header.label.account.menu": "قائمة الحساب", - "header.label.account.menu.for": "قائمة حساب المستخدم {username}", - "header.label.main.nav": "القائمة الرئيسية", - "header.label.main.menu": "القائمة الرئيسية", - "header.label.main.header": "الرئيسية", - "header.label.secondary.nav": "القائمة الثانوية", - "header.label.skip.nav": "التخطي إلى المحتوى الرئيسي", - "notification.title": "الإشعارات", - "notification.today.heading": "أخر 24 ساعه", - "notification.earlier.heading": "سابقًا", - "notification.mark.as.read": "اشر عليها بانها قرات", - "notification.fullStop": "•", - "notification.load.more.notifications": "تحميل المزيد من الإخطارات", - "notification.feedback": "تقييم", - "notification.recent.all.message": "هذا هو كل الإخطارات الأخيرة الخاصة بك!", - "notification.expired.delete.message": "يتم مسح الإشعارات تلقائيًا بعد أيام {days}", - "notification.no.message": "لا توجد إخطارات حتى الآن", - "notification.no.help.message": "عندما تتلقى إشعارات، ستظهر هنا", - "notification.bell.icon.alt.message": "أيقونة جرس الإشعارات", - "general.register.sentenceCase": "التسجيل", - "general.signIn.sentenceCase": "تسجيل الدخول", - "header.menu.dashboard.label": "لوحة المعلومات", - "header.help.label": "المساعدة", - "header.menu.profile.label": "الملف الشخصي", - "header.menu.account.label": "الحساب", - "header.menu.career.label": "حياة مهنية", - "header.menu.new.label": "جديد", - "header.menu.orderHistory.label": "المشتريات السابقة", - "header.navigation.skipNavLink": "التخطي إلى المحتوى الرئيسي", - "header.menu.signOut.label": "تسجيل الخروج", - "header.user.menu.studio": "صفحة الاستوديو الرئيسية", - "header.user.menu.maintenance": "الصيانة", - "header.label.courseOutline": "الرجوع إلى مخطط المساق الكلّي في الاستوديو", - "tour.action.dismiss": "تجاهل", - "tour.action.end": "حسنًا", - "tour.example.title": "جولة المثال", - "tour.example.body": "هذه جولة نموذجية" -} \ No newline at end of file diff --git a/src/i18n/messages/de.json b/src/i18n/messages/de.json deleted file mode 100644 index 8449db01..00000000 --- a/src/i18n/messages/de.json +++ /dev/null @@ -1,53 +0,0 @@ -{ - "header.links.courses": "Kurse", - "header.links.programs": "Programme", - "header.links.content.search": "Entdecken Sie Neues", - "header.links.schools": "Schulen & Partner", - "header.user.menu.career": "Karriere", - "header.user.menu.newAlert": "Neu", - "header.user.menu.dashboard": "Meine Kurse", - "header.user.menu.profile": "Profil", - "header.user.menu.account.settings": "Konto", - "header.user.menu.order.history": "Bestellverlauf", - "header.user.menu.logout": "Abmelden", - "header.user.menu.login": "Login", - "header.user.menu.register": "Melden Sie sich an", - "header.label.account.nav": "Konto", - "header.label.account.menu": "Konto", - "header.label.account.menu.for": "Konto für {username}", - "header.label.main.nav": "Hauptsächlich", - "header.label.main.menu": "Hauptmenü", - "header.label.main.header": "Hauptsächlich", - "header.label.secondary.nav": "Sekundarschule", - "header.label.skip.nav": "Springe zum Hauptthema", - "notification.title": "Benachrichtigungen", - "notification.today.heading": "Letzte 24 Stunden", - "notification.earlier.heading": "Früher", - "notification.mark.as.read": "Alles als gelesen markieren", - "notification.fullStop": "•", - "notification.load.more.notifications": "Weitere Benachrichtigungen laden", - "notification.feedback": "Feedback", - "notification.recent.all.message": "Das sind alle Ihre letzten Benachrichtigungen!", - "notification.expired.delete.message": "Benachrichtigungen werden nach {days} Tagen automatisch gelöscht", - "notification.no.message": "Noch keine Benachrichtigungen", - "notification.no.help.message": "Wenn Sie Benachrichtigungen erhalten, werden diese hier angezeigt", - "notification.bell.icon.alt.message": "Benachrichtigungsglockensymbol", - "general.register.sentenceCase": "Registrieren", - "general.signIn.sentenceCase": "anmelden", - "header.menu.dashboard.label": "Meine Kurse", - "header.help.label": "Hilfe", - "header.menu.profile.label": "Profil", - "header.menu.account.label": "Konto", - "header.menu.career.label": "Karriere", - "header.menu.new.label": "Neu", - "header.menu.orderHistory.label": "Bestellverlauf", - "header.navigation.skipNavLink": "Zum Inhalt springen.", - "header.menu.signOut.label": "Abmelden", - "header.user.menu.studio": "Studiohaus", - "header.user.menu.maintenance": "Wartung", - "header.label.courseOutline": "Zurück zur Kursübersicht in Studio", - "tour.action.dismiss": "Zurückweisen", - "tour.action.end": "Okay", - "tour.example.title": "Beispiel", - "tour.example.body": "Dies ist eine Beispiel" -} \ No newline at end of file diff --git a/src/i18n/messages/es_419.json b/src/i18n/messages/es_419.json deleted file mode 100644 index df549074..00000000 --- a/src/i18n/messages/es_419.json +++ /dev/null @@ -1,53 +0,0 @@ -{ - "header.links.courses": "Cursos", - "header.links.programs": "Programas", - "header.links.content.search": "Encontrar nuevo", - "header.links.schools": "Escuelas y Socios", - "header.user.menu.career": "Carrera", - "header.user.menu.newAlert": "Nuevo", - "header.user.menu.dashboard": "Panel de Control", - "header.user.menu.profile": "Perfil", - "header.user.menu.account.settings": "Cuenta", - "header.user.menu.order.history": "Historial de órdenes", - "header.user.menu.logout": "Cerrar sesión", - "header.user.menu.login": "Iniciar sesión", - "header.user.menu.register": "Registrarse", - "header.label.account.nav": "Cuenta", - "header.label.account.menu": "Menú de la cuenta", - "header.label.account.menu.for": "Menú de la cuenta para {username}", - "header.label.main.nav": "Principal", - "header.label.main.menu": "Menú Principal", - "header.label.main.header": "Principal", - "header.label.secondary.nav": "Secundaria", - "header.label.skip.nav": "Ir al contenido principal", - "notification.title": "Notificaciones", - "notification.today.heading": "Últimas 24 horas", - "notification.earlier.heading": "Más temprano", - "notification.mark.as.read": "Marcar todo como leído", - "notification.fullStop": "•", - "notification.load.more.notifications": "Cargar más notificaciones", - "notification.feedback": "Feedback", - "notification.recent.all.message": "¡Esas son todas tus notificaciones recientes!", - "notification.expired.delete.message": "Las notificaciones se borran automáticamente después de {days} días", - "notification.no.message": "Aún no hay notificaciones", - "notification.no.help.message": "Cuando reciba notificaciones, aparecerán aquí.", - "notification.bell.icon.alt.message": "Icono de campana de notificación", - "general.register.sentenceCase": "Registrarse", - "general.signIn.sentenceCase": "Iniciar sesión", - "header.menu.dashboard.label": "Panel de Control", - "header.help.label": "Ayuda", - "header.menu.profile.label": "Perfil", - "header.menu.account.label": "Cuenta", - "header.menu.career.label": "Carrera", - "header.menu.new.label": "Nuevo", - "header.menu.orderHistory.label": "Historial de órdenes", - "header.navigation.skipNavLink": "Dirígete al contenido principal.", - "header.menu.signOut.label": "Cerrar sesión", - "header.user.menu.studio": "Inicio Studio", - "header.user.menu.maintenance": "Mantenimiento", - "header.label.courseOutline": "Volver al esquema del curso en Studio", - "tour.action.dismiss": "Descartar", - "tour.action.end": "De acuerdo", - "tour.example.title": "ejemplo Tour", - "tour.example.body": "Este es un recorrido ejemplo ." -} \ No newline at end of file diff --git a/src/i18n/messages/fr.json b/src/i18n/messages/fr.json deleted file mode 100644 index 7d2d5d5d..00000000 --- a/src/i18n/messages/fr.json +++ /dev/null @@ -1,53 +0,0 @@ -{ - "header.links.courses": "Cours", - "header.links.programs": "Programmes", - "header.links.content.search": "Explorer les cours", - "header.links.schools": "Écoles et partenaires", - "header.user.menu.career": "Carrière", - "header.user.menu.newAlert": "Nouveau", - "header.user.menu.dashboard": "Tableau de bord", - "header.user.menu.profile": "Profil", - "header.user.menu.account.settings": "Compte", - "header.user.menu.order.history": "Historique des commandes", - "header.user.menu.logout": "Déconnexion", - "header.user.menu.login": "Connexion", - "header.user.menu.register": "S'inscrire", - "header.label.account.nav": "Compte", - "header.label.account.menu": "Compte Menu", - "header.label.account.menu.for": "Compte menu pour {username}", - "header.label.main.nav": "Principal", - "header.label.main.menu": "Menu Principal", - "header.label.main.header": "Principal", - "header.label.secondary.nav": "Secondaire", - "header.label.skip.nav": "Passer au contenu principal", - "notification.title": "Notifications", - "notification.today.heading": "Dernières 24 heures", - "notification.earlier.heading": "Plus tôt", - "notification.mark.as.read": "tout marquer comme lu", - "notification.fullStop": "•", - "notification.load.more.notifications": "Charger plus de notifications", - "notification.feedback": "Commentaires", - "notification.recent.all.message": "C'est toutes vos notifications récentes !", - "notification.expired.delete.message": "Les notifications sont automatiquement effacées après {days} jours", - "notification.no.message": "Aucune notification pour l'instant", - "notification.no.help.message": "Lorsque vous recevrez des notifications, elles apparaîtront ici", - "notification.bell.icon.alt.message": "Icône de cloche de notification", - "general.register.sentenceCase": "S'inscrire", - "general.signIn.sentenceCase": "Se connecter.", - "header.menu.dashboard.label": "Tableau de bord", - "header.help.label": "Aide", - "header.menu.profile.label": "Profil", - "header.menu.account.label": "Compte", - "header.menu.career.label": "Carrière", - "header.menu.new.label": "Nouveau", - "header.menu.orderHistory.label": "Historique des commandes", - "header.navigation.skipNavLink": "Passer au contenu principal", - "header.menu.signOut.label": "Se déconnecter", - "header.user.menu.studio": "Accueil Studio", - "header.user.menu.maintenance": "Maintenance", - "header.label.courseOutline": "Retour au plan de cours dans Studio", - "tour.action.dismiss": "Ignorer", - "tour.action.end": "Okay", - "tour.example.title": "exemple de visite", - "tour.example.body": "Ceci est un exemple de visite" -} \ No newline at end of file diff --git a/src/i18n/messages/fr_CA.json b/src/i18n/messages/fr_CA.json deleted file mode 100644 index 70f24d79..00000000 --- a/src/i18n/messages/fr_CA.json +++ /dev/null @@ -1,53 +0,0 @@ -{ - "header.links.courses": "Cours", - "header.links.programs": "Programmes", - "header.links.content.search": "Découvrir les nouveautés", - "header.links.schools": "Écoles et Partenaires", - "header.user.menu.career": "Carrière", - "header.user.menu.newAlert": "Nouveau", - "header.user.menu.dashboard": "Tableau de bord", - "header.user.menu.profile": "Profil", - "header.user.menu.account.settings": "Compte", - "header.user.menu.order.history": "Historique des commandes", - "header.user.menu.logout": "Déconnexion", - "header.user.menu.login": "Connexion", - "header.user.menu.register": "S'inscrire", - "header.label.account.nav": "Compte", - "header.label.account.menu": "Menu de compte", - "header.label.account.menu.for": "Menu de compte pour {username}", - "header.label.main.nav": "Principal", - "header.label.main.menu": "Menu principal", - "header.label.main.header": "Principal", - "header.label.secondary.nav": "Secondaire", - "header.label.skip.nav": "Passer au contenu de cette vue", - "notification.title": "Notifications", - "notification.today.heading": "Dernières 24 heures", - "notification.earlier.heading": "Plus tôt", - "notification.mark.as.read": "Tout marquer comme lu", - "notification.fullStop": "•", - "notification.load.more.notifications": "Charger plus de notifications", - "notification.feedback": "Commentaire", - "notification.recent.all.message": "Ce sont toutes vos notifications récentes!", - "notification.expired.delete.message": "Les notifications sont automatiquement effacées après {days} jours", - "notification.no.message": "Aucune notification pour l'instant", - "notification.no.help.message": "Lorsque vous recevrez des notifications, elles apparaîtront ici", - "notification.bell.icon.alt.message": "Icône de cloche de notification", - "general.register.sentenceCase": "Inscription", - "general.signIn.sentenceCase": "Connexion", - "header.menu.dashboard.label": "Tableau de bord", - "header.help.label": "Aide", - "header.menu.profile.label": "Profil", - "header.menu.account.label": "Compte", - "header.menu.career.label": "Carrière", - "header.menu.new.label": "Nouveau", - "header.menu.orderHistory.label": "Historique des commandes", - "header.navigation.skipNavLink": "Passer au contenu principal.", - "header.menu.signOut.label": "Se déconnecter", - "header.user.menu.studio": "Accueil Studio", - "header.user.menu.maintenance": "Entretien", - "header.label.courseOutline": "Retour au plan de cours dans Studio", - "tour.action.dismiss": "Rejeter", - "tour.action.end": "D'accord", - "tour.example.title": "exemple de visite", - "tour.example.body": "Ceci est un exemple de visite" -} \ No newline at end of file diff --git a/src/i18n/messages/hi.json b/src/i18n/messages/hi.json deleted file mode 100644 index 273bec90..00000000 --- a/src/i18n/messages/hi.json +++ /dev/null @@ -1,53 +0,0 @@ -{ - "header.links.courses": "पाठ्यक्रम", - "header.links.programs": "कार्यक्रम", - "header.links.content.search": "नई खोज करें", - "header.links.schools": "स्कूलों और भागीदारों", - "header.user.menu.career": "करियर", - "header.user.menu.newAlert": "नया", - "header.user.menu.dashboard": "डैशबोर्ड", - "header.user.menu.profile": "प्रोफाइल:", - "header.user.menu.account.settings": "लेखा", - "header.user.menu.order.history": "आदेश इतिहास", - "header.user.menu.logout": "लॉग आउट", - "header.user.menu.login": "लॉग इन करें", - "header.user.menu.register": "साइन अप", - "header.label.account.nav": "लेखा", - "header.label.account.menu": "अकाउंट मेनू ", - "header.label.account.menu.for": "अकाउंट मेनू फॉर {यूसर्नेम}", - "header.label.main.nav": "मुख्य ", - "header.label.main.menu": "मुख्य मेनू ", - "header.label.main.header": "मुख्य ", - "header.label.secondary.nav": "माध्यमिक", - "header.label.skip.nav": "मुख्य कन्टेंट पर जाएं", - "notification.title": "अधिसूचनाएं", - "notification.today.heading": "पिछले 24 घंटे", - "notification.earlier.heading": "पहले", - "notification.mark.as.read": "सभी को पढ़ा हुआ मार्क करें", - "notification.fullStop": "•", - "notification.load.more.notifications": "अधिक सूचनाएं लोड करें", - "notification.feedback": "प्रतिक्रिया", - "notification.recent.all.message": "यह आपकी सभी हालिया सूचनाएं हैं!", - "notification.expired.delete.message": "{days} दिनों के बाद सूचनाएं स्वचालित रूप से साफ़ हो जाती हैं", - "notification.no.message": "अभी तक कोई सूचना नहीं", - "notification.no.help.message": "जब आपको सूचनाएं मिलेंगी तो वे यहां दिखाई देंगी", - "notification.bell.icon.alt.message": "अधिसूचना घंटी चिह्न", - "general.register.sentenceCase": "रजिस्टर करें", - "general.signIn.sentenceCase": "साइन इन करें", - "header.menu.dashboard.label": "डैशबोर्ड", - "header.help.label": "मदद", - "header.menu.profile.label": "प्रोफाइल:", - "header.menu.account.label": "लेखा", - "header.menu.career.label": "करियर", - "header.menu.new.label": "नया", - "header.menu.orderHistory.label": "आदेश इतिहास", - "header.navigation.skipNavLink": "মেইন কনটেন্ট এ জান ", - "header.menu.signOut.label": "प्रस्थान करें", - "header.user.menu.studio": "स्टुडियो होम ", - "header.user.menu.maintenance": "रखरखाव", - "header.label.courseOutline": "बॅक तो कोर्स आउटलाइन स्टुडियो में ", - "tour.action.dismiss": "ख़ारिज करें", - "tour.action.end": "ठीक है", - "tour.example.title": "उदाहरण यात्रा", - "tour.example.body": "यह एक उदाहरण दौरा है" -} \ No newline at end of file diff --git a/src/i18n/messages/it.json b/src/i18n/messages/it.json deleted file mode 100644 index 115410b1..00000000 --- a/src/i18n/messages/it.json +++ /dev/null @@ -1,53 +0,0 @@ -{ - "header.links.courses": "Corsi", - "header.links.programs": "Programmi", - "header.links.content.search": "Scopri Nuovo", - "header.links.schools": "Scuole e Partner", - "header.user.menu.career": "Carriera", - "header.user.menu.newAlert": "Nuovo", - "header.user.menu.dashboard": "Pannello di controllo", - "header.user.menu.profile": "Profilo", - "header.user.menu.account.settings": "Account", - "header.user.menu.order.history": "Cronologia Ordini", - "header.user.menu.logout": "Disconnettersi", - "header.user.menu.login": "Login", - "header.user.menu.register": "Registrazione", - "header.label.account.nav": "Account", - "header.label.account.menu": "Menù Conto", - "header.label.account.menu.for": "Menu account per {username}", - "header.label.main.nav": "Principale", - "header.label.main.menu": "Menu principale", - "header.label.main.header": "Principale", - "header.label.secondary.nav": "Secondario", - "header.label.skip.nav": "Passa al contenuto principale", - "notification.title": "Notifiche", - "notification.today.heading": "Ultime 24 ore", - "notification.earlier.heading": "Prima", - "notification.mark.as.read": "Segna tutti come letti", - "notification.fullStop": "•", - "notification.load.more.notifications": "Carica più notifiche", - "notification.feedback": "Feedback", - "notification.recent.all.message": "Queste sono tutte le tue notifiche recenti!", - "notification.expired.delete.message": "Le notifiche vengono cancellate automaticamente dopo {days} giorni", - "notification.no.message": "Nessuna notifica ancora", - "notification.no.help.message": "Quando ricevi le notifiche, queste verranno visualizzate qui", - "notification.bell.icon.alt.message": "Icona campana di notifica", - "general.register.sentenceCase": "Registrazione", - "general.signIn.sentenceCase": "Accedi", - "header.menu.dashboard.label": "Pannello di controllo", - "header.help.label": "Aiuto", - "header.menu.profile.label": "Profilo", - "header.menu.account.label": "Account", - "header.menu.career.label": "Carriera", - "header.menu.new.label": "Nuovo", - "header.menu.orderHistory.label": "Cronologia Ordini", - "header.navigation.skipNavLink": "Passa al contenuto principale.", - "header.menu.signOut.label": "Esci", - "header.user.menu.studio": "Casa Studio", - "header.user.menu.maintenance": "Manutenzione", - "header.label.courseOutline": "Ritorno alla struttura del corso in Studio", - "tour.action.dismiss": "Chiudi", - "tour.action.end": "Va bene", - "tour.example.title": "Giro d'esempio", - "tour.example.body": "Questo è un tour di esempio" -} \ No newline at end of file diff --git a/src/i18n/messages/pt.json b/src/i18n/messages/pt.json deleted file mode 100644 index 41cd81b1..00000000 --- a/src/i18n/messages/pt.json +++ /dev/null @@ -1,53 +0,0 @@ -{ - "header.links.courses": "", - "header.links.programs": "", - "header.links.content.search": "", - "header.links.schools": "", - "header.user.menu.career": "", - "header.user.menu.newAlert": "", - "header.user.menu.dashboard": "", - "header.user.menu.profile": "", - "header.user.menu.account.settings": "", - "header.user.menu.order.history": "", - "header.user.menu.logout": "", - "header.user.menu.login": "Login", - "header.user.menu.register": "", - "header.label.account.nav": "", - "header.label.account.menu": "", - "header.label.account.menu.for": "", - "header.label.main.nav": "", - "header.label.main.menu": "", - "header.label.main.header": "", - "header.label.secondary.nav": "", - "header.label.skip.nav": "", - "notification.title": "", - "notification.today.heading": "", - "notification.earlier.heading": "", - "notification.mark.as.read": "", - "notification.fullStop": "", - "notification.load.more.notifications": "", - "notification.feedback": "", - "notification.recent.all.message": "", - "notification.expired.delete.message": "", - "notification.no.message": "", - "notification.no.help.message": "", - "notification.bell.icon.alt.message": "", - "general.register.sentenceCase": "", - "general.signIn.sentenceCase": "", - "header.menu.dashboard.label": "", - "header.help.label": "", - "header.menu.profile.label": "", - "header.menu.account.label": "", - "header.menu.career.label": "", - "header.menu.new.label": "", - "header.menu.orderHistory.label": "", - "header.navigation.skipNavLink": "", - "header.menu.signOut.label": "", - "header.user.menu.studio": "", - "header.user.menu.maintenance": "", - "header.label.courseOutline": "", - "tour.action.dismiss": "", - "tour.action.end": "", - "tour.example.title": "", - "tour.example.body": "" -} \ No newline at end of file diff --git a/src/i18n/messages/ru.json b/src/i18n/messages/ru.json deleted file mode 100644 index 965f78b1..00000000 --- a/src/i18n/messages/ru.json +++ /dev/null @@ -1,53 +0,0 @@ -{ - "header.links.courses": "Курсы", - "header.links.programs": "Программы", - "header.links.content.search": "Каталог курсов", - "header.links.schools": "Учебные заведения и партнёры", - "header.user.menu.career": "Карьера", - "header.user.menu.newAlert": "Новый", - "header.user.menu.dashboard": "Панель управления", - "header.user.menu.profile": "Профиль", - "header.user.menu.account.settings": "Учётная запись", - "header.user.menu.order.history": "История заказов", - "header.user.menu.logout": "Выйти", - "header.user.menu.login": "Войти", - "header.user.menu.register": "Зарегистрироваться", - "header.label.account.nav": "Учётная запись", - "header.label.account.menu": "Меню учетной записи", - "header.label.account.menu.for": "Меню учетной записи для {username}", - "header.label.main.nav": "Главный", - "header.label.main.menu": "Главное меню", - "header.label.main.header": "Главный", - "header.label.secondary.nav": "Среднее образование", - "header.label.skip.nav": "Перейти к основному содержимому", - "notification.title": "Уведомления", - "notification.today.heading": "Последние 24 часа", - "notification.earlier.heading": "Ранее", - "notification.mark.as.read": "Отметить все как прочитанное", - "notification.fullStop": "•", - "notification.load.more.notifications": "Загрузить больше уведомлений", - "notification.feedback": "Обратная связь", - "notification.recent.all.message": "", - "notification.expired.delete.message": "", - "notification.no.message": "", - "notification.no.help.message": "", - "notification.bell.icon.alt.message": "", - "general.register.sentenceCase": "Регистрация", - "general.signIn.sentenceCase": "Вход", - "header.menu.dashboard.label": "Панель управления", - "header.help.label": "Помощь", - "header.menu.profile.label": "Профиль", - "header.menu.account.label": "Учётная запись", - "header.menu.career.label": "Карьера", - "header.menu.new.label": "Новый", - "header.menu.orderHistory.label": "История заказов", - "header.navigation.skipNavLink": "Перейти к контенту", - "header.menu.signOut.label": "Выйти", - "header.user.menu.studio": "Studio Дом", - "header.user.menu.maintenance": "Техническое обслуживание", - "header.label.courseOutline": "", - "tour.action.dismiss": "Скрыть", - "tour.action.end": "Okay", - "tour.example.title": "", - "tour.example.body": "" -} \ No newline at end of file diff --git a/src/i18n/messages/uk.json b/src/i18n/messages/uk.json deleted file mode 100644 index 1f0fc20d..00000000 --- a/src/i18n/messages/uk.json +++ /dev/null @@ -1,53 +0,0 @@ -{ - "header.links.courses": "Курси", - "header.links.programs": "Програми", - "header.links.content.search": "Відкривайте Нове", - "header.links.schools": "Школи та партнери", - "header.user.menu.career": "Кар’єра", - "header.user.menu.newAlert": "Новий", - "header.user.menu.dashboard": "Панель управління", - "header.user.menu.profile": "Профіль", - "header.user.menu.account.settings": "Обліковий запис", - "header.user.menu.order.history": "Історія замовлень", - "header.user.menu.logout": "Вийти", - "header.user.menu.login": "Увійти", - "header.user.menu.register": "Зареєструватися", - "header.label.account.nav": "Обліковий запис", - "header.label.account.menu": "Меню облікового запису", - "header.label.account.menu.for": "Меню облікового запису для {username}", - "header.label.main.nav": "Головна", - "header.label.main.menu": "Головне меню", - "header.label.main.header": "Головна", - "header.label.secondary.nav": "Середня", - "header.label.skip.nav": "Перейти до головного змісту", - "notification.title": "Сповіщення", - "notification.today.heading": "Останні 24 години", - "notification.earlier.heading": "Раніше", - "notification.mark.as.read": "Відмітити все як прочитане", - "notification.fullStop": "•", - "notification.load.more.notifications": "Завантажити більше сповіщень", - "notification.feedback": "Відгук", - "notification.recent.all.message": "Це всі Ваші сповіщення.", - "notification.expired.delete.message": "Сповіщення автоматично видаляються через {days} днів", - "notification.no.message": "Наразі сповіщень немає", - "notification.no.help.message": "Коли Ви отримаєте сповіщення, вони з’являться тут", - "notification.bell.icon.alt.message": "Піктограма дзвоника сповіщення", - "general.register.sentenceCase": "Зареєструватися", - "general.signIn.sentenceCase": "Увійти", - "header.menu.dashboard.label": "Мої курси", - "header.help.label": "Допомога", - "header.menu.profile.label": "Профіль", - "header.menu.account.label": "Налаштування", - "header.menu.career.label": "Кар’єра", - "header.menu.new.label": "Новий", - "header.menu.orderHistory.label": "Історія замовлень", - "header.navigation.skipNavLink": "Перейти до головного змісту.", - "header.menu.signOut.label": "Вийти", - "header.user.menu.studio": "Головна сторінка в Студії", - "header.user.menu.maintenance": "Технічні робити", - "header.label.courseOutline": "Повернутися до плану курсу в Studio", - "tour.action.dismiss": "Відхилити", - "tour.action.end": "Гаразд", - "tour.example.title": "", - "tour.example.body": "" -} \ No newline at end of file diff --git a/src/i18n/messages/zh_CN.json b/src/i18n/messages/zh_CN.json deleted file mode 100644 index 2805cfcc..00000000 --- a/src/i18n/messages/zh_CN.json +++ /dev/null @@ -1,53 +0,0 @@ -{ - "header.links.courses": "课程", - "header.links.programs": "项目", - "header.links.content.search": "马上探索课程", - "header.links.schools": "学校", - "header.user.menu.career": "职业", - "header.user.menu.newAlert": "新增", - "header.user.menu.dashboard": "课程面板", - "header.user.menu.profile": "个人主页", - "header.user.menu.account.settings": "我的账户", - "header.user.menu.order.history": "查看历史记录", - "header.user.menu.logout": "退出", - "header.user.menu.login": "登录", - "header.user.menu.register": "注册", - "header.label.account.nav": "我的账户", - "header.label.account.menu": "账户菜单", - "header.label.account.menu.for": "{username} 的帐户菜单", - "header.label.main.nav": "主要", - "header.label.main.menu": "主菜单", - "header.label.main.header": "主要", - "header.label.secondary.nav": "高中", - "header.label.skip.nav": "跳转到主要内容", - "notification.title": "通知", - "notification.today.heading": "", - "notification.earlier.heading": "", - "notification.mark.as.read": "", - "notification.fullStop": "•", - "notification.load.more.notifications": "", - "notification.feedback": "反馈", - "notification.recent.all.message": "", - "notification.expired.delete.message": "", - "notification.no.message": "", - "notification.no.help.message": "", - "notification.bell.icon.alt.message": "", - "general.register.sentenceCase": "注册", - "general.signIn.sentenceCase": "登录", - "header.menu.dashboard.label": "课程面板", - "header.help.label": "帮助", - "header.menu.profile.label": "个人主页", - "header.menu.account.label": "我的账户", - "header.menu.career.label": "职业", - "header.menu.new.label": "新增", - "header.menu.orderHistory.label": "查看历史记录", - "header.navigation.skipNavLink": "跳至主要内容", - "header.menu.signOut.label": "退出", - "header.user.menu.studio": "工作室主页", - "header.user.menu.maintenance": "维护", - "header.label.courseOutline": "返回 Studio 中的课程大纲", - "tour.action.dismiss": "忽略", - "tour.action.end": "好的", - "tour.example.title": "", - "tour.example.body": "" -} \ No newline at end of file diff --git a/src/studio-header/MobileMenu.jsx b/src/studio-header/MobileMenu.jsx index 610321e6..2bfe6cc5 100644 --- a/src/studio-header/MobileMenu.jsx +++ b/src/studio-header/MobileMenu.jsx @@ -20,7 +20,7 @@ const MobileMenu = ({ >