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

[FEATURE] Ajouter le langage 'FR-BE' dans pix-site (PIX-4035) #348

Merged
merged 1 commit into from
Dec 21, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions components/PixLink.vue
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ function getLocaleUrl(url, localePath) {
if (
url.startsWith('/fr') ||
url.startsWith('/en-gb') ||
url.startsWith('/fr-be') ||
url.startsWith('/fr-fr')
) {
return url
Expand Down
57 changes: 57 additions & 0 deletions lang/fr-be.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
export default {
fr: 'Français',
'fr-fr': 'Franco-Français',
'en-gb': 'English',
'contact-digital-mediation': {
'page-title': "Demande d'information",
'form-id': '24665',
},
'higher-education-establishment-registration': {
'page-title': 'Demande d’espace Pix Orga',
'form-id': '22367',
},
'pix-certification-application': {
'page-title': "Demande d'agrément comme centre de certification Pix",
'form-id': '23331',
},
'pix-orga-registration': {
'page-title': "Demande d'information",
'form-id': '22370',
},
'pix-orga-higher-school-registration': {
'page-title': "Finalisez votre demande d'espace Pix Orga",
'form-id': '22797',
},
'news-page-title': 'Actualités',
'news-page-title-level-two': 'Liste des actualités',
'news-page-no-news': "Il n’y a pas encore d'actualités",
announcement: 'Annonce',
engineering: 'Ingénierie',
event: 'Événement',
feature: 'Nouveauté',
society: 'Société',
form: {
'not-supported':
"Votre navigateur ne supporte pas les iframes. Le formulaire de contact ne peut pas être affiché. Merci d'utiliser une autre méthode de contact (téléphone, fax, etc.)",
},
'language-switcher-label': 'Langues',
'page-titles': {
'contact-digital-mediation': "Demande d'information | Pix",
'higher-education-establishment-registration':
"Demande d'espace | Pix Orga sup",
news: 'Actualités | Pix',
'pix-certification-application':
"Demande d'agrément comme centre de certification | Pix",
'pix-orga-higher-school-registration':
"Finaliser la demande d'espace | Pix Orga sup",
'pix-orga-registration': "Demande d'information | Pix pro",
},
'preview-page-load': 'Chargement de la page de prévisualisation...',
'error-content':
'<p>Oups ! Un problème est survenu, mais pas de panix !</p>' +
'<p>Vous pouvez revenir sur la ' +
"<a href='http://pix.fr/'>page d'accueil</a>." +
'<br/>Si vous avez besoin d’aide, vous pouvez consulter le ' +
'<a href="https://support.pix.fr/">support</a>.' +
'</p>',
}
4 changes: 4 additions & 0 deletions nuxt.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,10 @@ const config = {
code: 'en-gb',
file: 'en-gb.js',
},
{
code: 'fr-be',
file: 'fr-be.js',
},
],
lazy: true,
langDir: 'lang/',
Expand Down
1 change: 1 addition & 0 deletions pages/pix-site/_custom-page.vue
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ export default {
fr: '/:uid',
'fr-fr': '/:uid',
'en-gb': '/:uid',
'fr-be': '/:uid',
},
},
async asyncData({ params, app, req, error, currentPagePath }) {
Expand Down
1 change: 1 addition & 0 deletions pages/pix-site/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ export default {
fr: '/',
'fr-fr': '/',
'en-gb': '/',
'fr-be': '/',
},
},
async asyncData({ app, req, error, currentPagePath }) {
Expand Down