Skip to content

Commit

Permalink
Merge pull request #681 from geonetwork/lang-reload
Browse files Browse the repository at this point in the history
Reload the application on language switch
  • Loading branch information
fgravin authored Nov 11, 2023
2 parents 61cb3a9 + ad9fbe9 commit 54ff36a
Show file tree
Hide file tree
Showing 8 changed files with 193 additions and 192 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ export class LanguageSwitcherComponent implements OnInit {
changeLanguage(value) {
try {
localStorage.setItem(LANGUAGE_STORAGE_KEY, value)
location.reload()
} catch (error) {
console.warn(`Language choice could not be persisted`, error)
}
Expand Down
28 changes: 14 additions & 14 deletions translations/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -144,21 +144,21 @@
"facets.block.title.tag.default": "Stichwort",
"facets.block.title.th_regions_tree.default": "Regionen",
"favorite.not.authenticated.tooltip": "<div><a href=' {link} '>Anmelden</a>, um auf diese Funktion zuzugreifen</div>",
"language.ca": "Katalanisch",
"language.cs": "Tschechisch",
"language.ca": "Català",
"language.cs": "Čeština",
"language.de": "Deutsch",
"language.en": "Englisch",
"language.es": "Spanisch",
"language.fi": "Finnisch",
"language.fr": "Französisch",
"language.is": "Isländisch",
"language.it": "Italienisch",
"language.ko": "Koreanisch",
"language.nl": "Niederländisch",
"language.pt": "Portugiesisch",
"language.ru": "Russisch",
"language.sk": "Slowakisch",
"language.zh": "Chinesisch",
"language.en": "English",
"language.es": "Español",
"language.fi": "Suomi",
"language.fr": "Français",
"language.is": "Íslenska",
"language.it": "Italiano",
"language.ko": "한국어",
"language.nl": "Nederlands",
"language.pt": "Português",
"language.ru": "Русский",
"language.sk": "Slovenčina",
"language.zh": "中文",
"map.add.layer": "Eine Ebene hinzufügen",
"map.add.layer.catalog": "Aus dem Katalog",
"map.add.layer.file": "Aus einer Datei",
Expand Down
28 changes: 14 additions & 14 deletions translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -144,21 +144,21 @@
"facets.block.title.tag.default": "Tag",
"facets.block.title.th_regions_tree.default": "Regions",
"favorite.not.authenticated.tooltip": "<div><a href=' {link} '>Login</a> to access this feature</div>",
"language.ca": "Catalan",
"language.cs": "Czech",
"language.de": "German",
"language.ca": "Català",
"language.cs": "Čeština",
"language.de": "Deutsch",
"language.en": "English",
"language.es": "Spanish",
"language.fi": "Finnish",
"language.fr": "French",
"language.is": "Icelandic",
"language.it": "Italian",
"language.ko": "Korean",
"language.nl": "Dutch",
"language.pt": "Portuguese",
"language.ru": "Russian",
"language.sk": "Slovak",
"language.zh": "Chinese",
"language.es": "Español",
"language.fi": "Suomi",
"language.fr": "Français",
"language.is": "Íslenska",
"language.it": "Italiano",
"language.ko": "한국어",
"language.nl": "Nederlands",
"language.pt": "Português",
"language.ru": "Русский",
"language.sk": "Slovenčina",
"language.zh": "中文",
"map.add.layer": "Add a layer",
"map.add.layer.catalog": "From the catalog",
"map.add.layer.file": "From a file",
Expand Down
74 changes: 37 additions & 37 deletions translations/es.json
Original file line number Diff line number Diff line change
@@ -1,28 +1,28 @@
{
"catalog.figures.datasets": "",
"catalog.figures.organisations": "",
"chart.aggregation.average": "",
"chart.aggregation.count": "",
"chart.aggregation.max": "",
"chart.aggregation.min": "",
"chart.aggregation.sum": "",
"chart.dropdown.aggregation": "",
"chart.dropdown.type": "",
"chart.dropdown.xProperty": "",
"chart.dropdown.yProperty": "",
"chart.loading.data": "",
"chart.type.bar": "",
"chart.type.barHorizontal": "",
"chart.type.line": "",
"chart.type.lineSmooth": "",
"chart.type.pie": "",
"dashboard.labels.mySpace": "",
"dashboard.records.all": "",
"dashboard.records.myDraft": "",
"dashboard.records.myLibrary": "",
"dashboard.records.myOrg": "",
"dashboard.records.myRecords": "",
"dashboard.records.search": "",
"catalog.figures.datasets": "conjuntos de datos",
"catalog.figures.organisations": "organizaciones",
"chart.aggregation.average": "promedio",
"chart.aggregation.count": "conteo",
"chart.aggregation.max": "máximo",
"chart.aggregation.min": "mínimo",
"chart.aggregation.sum": "suma",
"chart.dropdown.aggregation": "Agregación",
"chart.dropdown.type": "Tipo",
"chart.dropdown.xProperty": "Eje X",
"chart.dropdown.yProperty": "Eje Y",
"chart.loading.data": "Cargando datos...",
"chart.type.bar": "gráfico de barras",
"chart.type.barHorizontal": "gráfico de barras horizontal",
"chart.type.line": "gráfico de líneas",
"chart.type.lineSmooth": "gráfico de líneas suave",
"chart.type.pie": "gráfico circular",
"dashboard.labels.mySpace": "Mi espacio",
"dashboard.records.all": "Catálogo",
"dashboard.records.myDraft": "Mis borradores",
"dashboard.records.myLibrary": "Mi biblioteca",
"dashboard.records.myOrg": "Organización",
"dashboard.records.myRecords": "Mis Registros",
"dashboard.records.search": "Buscar \"{searchText}\"",
"datafeeder.analysisProgressBar.illustration.fileFormatDetection": "",
"datafeeder.analysisProgressBar.illustration.gatheringDatasetInformation": "",
"datafeeder.analysisProgressBar.illustration.samplingData": "",
Expand Down Expand Up @@ -144,21 +144,21 @@
"facets.block.title.tag.default": "",
"facets.block.title.th_regions_tree.default": "",
"favorite.not.authenticated.tooltip": "",
"language.ca": "Catalán",
"language.cs": "Checo",
"language.de": "Alemán",
"language.en": "Inglés",
"language.ca": "Català",
"language.cs": "Čeština",
"language.de": "Deutsch",
"language.en": "English",
"language.es": "Español",
"language.fi": "Finlandés",
"language.fr": "Francés",
"language.is": "Islandés",
"language.fi": "Suomi",
"language.fr": "Français",
"language.is": "Íslenska",
"language.it": "Italiano",
"language.ko": "Coreano",
"language.nl": "Neerlandés",
"language.pt": "Portugués",
"language.ru": "Ruso",
"language.sk": "Eslovaco",
"language.zh": "Chino",
"language.ko": "한국어",
"language.nl": "Nederlands",
"language.pt": "Português",
"language.ru": "Русский",
"language.sk": "Slovenčina",
"language.zh": "中文",
"map.add.layer": "",
"map.add.layer.catalog": "",
"map.add.layer.file": "",
Expand Down
28 changes: 14 additions & 14 deletions translations/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -144,21 +144,21 @@
"facets.block.title.tag.default": "Tag",
"facets.block.title.th_regions_tree.default": "Régions",
"favorite.not.authenticated.tooltip": "<div><a href=' {link} '>Connectez-vous</a> pour avoir accès à cette fonctionnalité</div>",
"language.ca": "Catalan",
"language.cs": "Tchèque",
"language.de": "Allemand",
"language.en": "Anglais",
"language.es": "Espagnol",
"language.fi": "Finnois",
"language.ca": "Català",
"language.cs": "Čeština",
"language.de": "Deutsch",
"language.en": "English",
"language.es": "Español",
"language.fi": "Suomi",
"language.fr": "Français",
"language.is": "Islandais",
"language.it": "Italien",
"language.ko": "Coréen",
"language.nl": "Néerlandais",
"language.pt": "Portugais",
"language.ru": "Russe",
"language.sk": "Slovaque",
"language.zh": "Chinois",
"language.is": "Íslenska",
"language.it": "Italiano",
"language.ko": "한국어",
"language.nl": "Nederlands",
"language.pt": "Português",
"language.ru": "Русский",
"language.sk": "Slovenčina",
"language.zh": "中文",
"map.add.layer": "",
"map.add.layer.catalog": "",
"map.add.layer.file": "",
Expand Down
76 changes: 38 additions & 38 deletions translations/it.json
Original file line number Diff line number Diff line change
@@ -1,28 +1,28 @@
{
"catalog.figures.datasets": "",
"catalog.figures.organisations": "",
"chart.aggregation.average": "",
"chart.aggregation.count": "",
"chart.aggregation.max": "",
"chart.aggregation.min": "",
"chart.aggregation.sum": "",
"chart.dropdown.aggregation": "",
"chart.dropdown.type": "",
"chart.dropdown.xProperty": "",
"chart.dropdown.yProperty": "",
"chart.loading.data": "",
"chart.type.bar": "",
"chart.type.barHorizontal": "",
"chart.type.line": "",
"chart.type.lineSmooth": "",
"chart.type.pie": "",
"dashboard.labels.mySpace": "",
"dashboard.records.all": "",
"dashboard.records.myDraft": "",
"dashboard.records.myLibrary": "",
"dashboard.records.myOrg": "",
"dashboard.records.myRecords": "",
"dashboard.records.search": "",
"catalog.figures.datasets": "dataset",
"catalog.figures.organisations": "organizzazioni",
"chart.aggregation.average": "media",
"chart.aggregation.count": "conteggio",
"chart.aggregation.max": "massimo",
"chart.aggregation.min": "minimo",
"chart.aggregation.sum": "somma",
"chart.dropdown.aggregation": "Aggregazione",
"chart.dropdown.type": "Tipo",
"chart.dropdown.xProperty": "Asse X",
"chart.dropdown.yProperty": "Asse Y",
"chart.loading.data": "Caricamento dati...",
"chart.type.bar": "grafico a barre",
"chart.type.barHorizontal": "grafico a barre orizzontale",
"chart.type.line": "grafico a linee",
"chart.type.lineSmooth": "grafico a linee morbide",
"chart.type.pie": "grafico a torta",
"dashboard.labels.mySpace": "Il mio spazio",
"dashboard.records.all": "Catalogo",
"dashboard.records.myDraft": "Le mie bozze",
"dashboard.records.myLibrary": "La mia biblioteca",
"dashboard.records.myOrg": "Organizzazione",
"dashboard.records.myRecords": "I miei record",
"dashboard.records.search": "Cerca \"{searchText}\"",
"datafeeder.analysisProgressBar.illustration.fileFormatDetection": "",
"datafeeder.analysisProgressBar.illustration.gatheringDatasetInformation": "",
"datafeeder.analysisProgressBar.illustration.samplingData": "",
Expand Down Expand Up @@ -144,21 +144,21 @@
"facets.block.title.tag.default": "",
"facets.block.title.th_regions_tree.default": "",
"favorite.not.authenticated.tooltip": "",
"language.ca": "Catalano",
"language.cs": "Ceco",
"language.de": "Tedesco",
"language.en": "Inglese",
"language.es": "Spagnolo",
"language.fi": "Finlandese",
"language.fr": "Francese",
"language.is": "Islandese",
"language.ca": "Català",
"language.cs": "Čeština",
"language.de": "Deutsch",
"language.en": "English",
"language.es": "Español",
"language.fi": "Suomi",
"language.fr": "Français",
"language.is": "Íslenska",
"language.it": "Italiano",
"language.ko": "Coreano",
"language.nl": "Olandese",
"language.pt": "Portoghese",
"language.ru": "Russo",
"language.sk": "Slovacco",
"language.zh": "Cinese",
"language.ko": "한국어",
"language.nl": "Nederlands",
"language.pt": "Português",
"language.ru": "Русский",
"language.sk": "Slovenčina",
"language.zh": "中文",
"map.add.layer": "",
"map.add.layer.catalog": "",
"map.add.layer.file": "",
Expand Down
76 changes: 38 additions & 38 deletions translations/nl.json
Original file line number Diff line number Diff line change
@@ -1,28 +1,28 @@
{
"catalog.figures.datasets": "",
"catalog.figures.organisations": "",
"chart.aggregation.average": "",
"chart.aggregation.count": "",
"chart.aggregation.max": "",
"chart.aggregation.min": "",
"chart.aggregation.sum": "",
"chart.dropdown.aggregation": "",
"chart.dropdown.type": "",
"chart.dropdown.xProperty": "",
"chart.dropdown.yProperty": "",
"chart.loading.data": "",
"chart.type.bar": "",
"chart.type.barHorizontal": "",
"chart.type.line": "",
"chart.type.lineSmooth": "",
"chart.type.pie": "",
"dashboard.labels.mySpace": "",
"dashboard.records.all": "",
"dashboard.records.myDraft": "",
"dashboard.records.myLibrary": "",
"dashboard.records.myOrg": "",
"dashboard.records.myRecords": "",
"dashboard.records.search": "",
"catalog.figures.datasets": "datasets",
"catalog.figures.organisations": "organisaties",
"chart.aggregation.average": "gemiddelde",
"chart.aggregation.count": "aantal",
"chart.aggregation.max": "max",
"chart.aggregation.min": "min",
"chart.aggregation.sum": "som",
"chart.dropdown.aggregation": "Aggregatie",
"chart.dropdown.type": "Type",
"chart.dropdown.xProperty": "X-as",
"chart.dropdown.yProperty": "Y-as",
"chart.loading.data": "Gegevens laden...",
"chart.type.bar": "staafdiagram",
"chart.type.barHorizontal": "horizontaal staafdiagram",
"chart.type.line": "lijndiagram",
"chart.type.lineSmooth": "glad lijndiagram",
"chart.type.pie": "cirkeldiagram",
"dashboard.labels.mySpace": "Mijn ruimte",
"dashboard.records.all": "Catalogus",
"dashboard.records.myDraft": "Mijn concepten",
"dashboard.records.myLibrary": "Mijn bibliotheek",
"dashboard.records.myOrg": "Organisatie",
"dashboard.records.myRecords": "Mijn Records",
"dashboard.records.search": "Zoeken naar \"{searchText}\"",
"datafeeder.analysisProgressBar.illustration.fileFormatDetection": "",
"datafeeder.analysisProgressBar.illustration.gatheringDatasetInformation": "",
"datafeeder.analysisProgressBar.illustration.samplingData": "",
Expand Down Expand Up @@ -144,21 +144,21 @@
"facets.block.title.tag.default": "",
"facets.block.title.th_regions_tree.default": "",
"favorite.not.authenticated.tooltip": "",
"language.ca": "Catalaans",
"language.cs": "Tsjechisch",
"language.de": "Duits",
"language.en": "Engels",
"language.es": "Spaans",
"language.fi": "Fins",
"language.fr": "Frans",
"language.is": "IJslands",
"language.it": "Italiaans",
"language.ko": "Koreaans",
"language.ca": "Català",
"language.cs": "Čeština",
"language.de": "Deutsch",
"language.en": "English",
"language.es": "Español",
"language.fi": "Suomi",
"language.fr": "Français",
"language.is": "Íslenska",
"language.it": "Italiano",
"language.ko": "한국어",
"language.nl": "Nederlands",
"language.pt": "Portugees",
"language.ru": "Russisch",
"language.sk": "Slowaaks",
"language.zh": "Chinees",
"language.pt": "Português",
"language.ru": "Русский",
"language.sk": "Slovenčina",
"language.zh": "中文",
"map.add.layer": "",
"map.add.layer.catalog": "",
"map.add.layer.file": "",
Expand Down
Loading

0 comments on commit 54ff36a

Please sign in to comment.