Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Load translation strings from mfe settings #6

Merged
merged 1 commit into from
Oct 9, 2024

Conversation

sandroscosta
Copy link

@sandroscosta sandroscosta commented Oct 9, 2024

  • Add the ability to load translation strings from the mfe plugin on tutor

https://github.com/fccn/nau-technical/issues/271

Default settings should now be set as the following example:

MFE_CONFIG["FOOTER_SOCIAL_LINKS"] = '[{"platform": "facebook", "title": {"en": "Follow us on facebook", "pt": "Siga-nos no Facebook"}, "url": "https://www.facebook.com/plataformanau/"},{"platform": "linkedin", "title": {"en": "Follow us on LinkedIn", "pt": "Siga-nos no LinkedIn"}, "url": "https://www.linkedin.com/company/plataformanau/"},{"platform": "newsletter", "title": {"en": "Subscribe our newsletter", "pt": "Subscreva a nossa lista de email (newsletter)"}, "url": "https://www.nau.edu.pt/newsletter"}]'
MFE_CONFIG["FOOTER_NAV_LINKS"] = '[{"title": {"en": "NAU - Sempre a Aprender", "pt": "NAU - Sempre a Aprender"},"menus": [{"title": {"en": "About","pt": "Sobre"},"url": {"en": "https://www.nau.edu.pt/en/about/","pt": "https://www.nau.edu.pt/pt/sobre/"}},{"title": {"en": "Courses", "pt": "Cursos"},"url": {"en": "https://www.nau.edu.pt/en/courses/","pt": "https://www.nau.edu.pt/pt/cursos/"}},{"title": {"en": "How to become a partner", "pt": "Como se tornar parceiro"},"url": {"en": "https://www.nau.edu.pt/en/partners/how-to-become-a-partner/","pt": "https://www.nau.edu.pt/pt/parceiros/como-se-tornar-parceiro/"}}]},{"title": {"en": "Communication", "pt": "Comunicação"},"menus": [{"title": {"en": "Help", "pt": "Ajuda"},"url": "https://ajuda.nau.edu.pt/"},{"title": {"en": "News", "pt": "Notícias"},"url": {"en": "https://www.nau.edu.pt/en/news/","pt": "https://www.nau.edu.pt/pt/noticias/"}},{"title": {"en": "Media kit", "pt": "Media kit"},"url": {"en": "https://www.nau.edu.pt/en/media-kit/","pt": "https://www.nau.edu.pt/pt/material-de-divulgacao/"}}]},{"title": {"en": "Legal", "pt": "Legal"},"menus": [{"title": {"en": "Terms and conditions", "pt": "Termos e condições"},"url": {"en": "https://www.nau.edu.pt/en/terms-and-conditions/","pt": "https://www.nau.edu.pt/pt/legal/termos-e-condicoes/"}},{"title": {"en": "Privacy policy", "pt": "Política de privacidade"},"url": {"en": "https://www.nau.edu.pt/en/privacy-policy/","pt": "https://www.nau.edu.pt/pt/legal/politica-de-privacidade/"}},{"title": {"en": "Cookie policy","pt": "Política de cookies"},"url": {"en": "https://www.nau.edu.pt/en/legal/cookies-policy/","pt": "https://www.nau.edu.pt/pt/legal/cookies/"}},{"title": {"en": "Certification policy", "pt": "Política de certificação"},"url": {"en": "https://www.nau.edu.pt/en/legal/politica-de-certificacao/","pt": "https://www.nau.edu.pt/pt/legal/politica-de-certificacao/"}},{"title": {"en": "Code of Honor","pt": "Código de honra"},"url": {"en": "https://www.nau.edu.pt/en/legal/codigo-de-honra/","pt": "https://www.nau.edu.pt/pt/legal/codigo-de-honra/"}}]}]'

@sandroscosta sandroscosta self-assigned this Oct 9, 2024
@sandroscosta sandroscosta requested a review from igobranco October 9, 2024 11:09
- Add the ability to load translation strings from the mfe plugin on tutor
@sandroscosta sandroscosta force-pushed the sandroscosta/issue271/footer-links branch from 88c6418 to c591159 Compare October 9, 2024 11:15
@igobranco igobranco merged commit cd0ee8e into nau/redwood.master Oct 9, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants