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

feat: Add translations to redirection component #300

Merged
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
8 changes: 5 additions & 3 deletions src/components/search/redirection.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,15 @@
delayInSeconds="5"
>
<p>
Your search matches a special place in our website, to visit it, your are being redirected
{{ $t('redirections.title') }}
</p>
<a :href="redirection.url">{{ redirection.url }}</a>
<div class="x-mt-8 x-flex x-gap-32">
<button @click="abortRedirect" class="x-button-ghost x-button">No, I'll stay here</button>
<button @click="abortRedirect" class="x-button-ghost x-button">
{{ $t('redirections.reject') }}
</button>
<button @click="redirect" class="x-button-lead x-button-ghost x-button">
Yes, redirect me
{{ $t('redirections.accept') }}
</button>
</div>
<AutoProgressBar
Expand Down
5 changes: 5 additions & 0 deletions src/i18n/messages.types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,4 +115,9 @@ export interface Messages {
queryPreview: {
viewResults: string;
};
redirections: {
title: string;
accept: string;
reject: string;
};
}
5 changes: 5 additions & 0 deletions src/i18n/messages/en.messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,11 @@
},
"queryPreview": {
"viewResults": "View all results"
},
"redirections": {
"title": "Your search matches a special place in our website, to visit it, you are being redirected",
"accept": "Yes, redirect me",
"reject": "No, I'll stay here"
}
},
"mobile": {
Expand Down
5 changes: 5 additions & 0 deletions src/i18n/messages/es.messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,11 @@
},
"queryPreview": {
"viewResults": "Ver todos los resultados"
},
"redirections": {
"title": "Tu búsqueda coincide con una página especial de nuestra web, vas a ser redirigido a:",
"accept": "Sí, redirígeme",
"reject": "No, me quedaré aquí"
}
},
"mobile": {
Expand Down
5 changes: 5 additions & 0 deletions src/i18n/messages/fr.messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,11 @@
},
"queryPreview": {
"viewResults": "Voir tous les résultats"
},
"redirections": {
"title": "Votre recherche correspond à un endroit spécial de notre site, pour le visiter, vous êtes redirigé",
"accept": "Oui, redirigez-moi",
"reject": "Non, je reste ici"
}
},
"mobile": {
Expand Down
5 changes: 5 additions & 0 deletions src/i18n/messages/it.messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,11 @@
},
"queryPreview": {
"viewResults": "Mostra tutti i risultati"
},
"redirections": {
"title": "La vostra ricerca corrisponde a un luogo speciale del nostro sito web, per visitare il quale siete stati reindirizzati",
"accept": "Sì, reindirizzami",
"reject": "No, rimango qui"
}
},
"mobile": {
Expand Down
5 changes: 5 additions & 0 deletions src/i18n/messages/pt.messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,11 @@
},
"queryPreview": {
"viewResults": "Ver todos os resultados"
},
"redirections": {
"title": "A sua pesquisa corresponde a um local especial no nosso sítio Web, para o visitar, está a ser redireccionado",
"accept": "Sim, redirecionar-me",
"reject": "Não, vou ficar aqui"
}
},
"mobile": {
Expand Down