Skip to content

Commit

Permalink
Merge pull request #300 from empathyco/feature/FLS-2657_Add-translati…
Browse files Browse the repository at this point in the history
…ons-for-redirection-component

feat: Add translations to redirection component
  • Loading branch information
zhuzilu authored Jul 25, 2023
2 parents c7e4ac1 + e8acf96 commit b2722cb
Show file tree
Hide file tree
Showing 7 changed files with 35 additions and 3 deletions.
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

0 comments on commit b2722cb

Please sign in to comment.