Skip to content

Commit

Permalink
feat(languages): add fr, es, nl (#400)
Browse files Browse the repository at this point in the history
  • Loading branch information
pwambach authored Jul 22, 2020
1 parent 1ae3782 commit 7041896
Show file tree
Hide file tree
Showing 7 changed files with 215 additions and 5 deletions.
5 changes: 3 additions & 2 deletions i18n/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
"layerSelector.compare": "Vergleich",
"language.en": "Englisch",
"language.de": "Deutsch",
"language.fr": "Französisch",
"language.es": "Spanisch",
"language.nl": "Niederländisch",
"stories": "Geschichten",
"backToDataMode": "Zurück zum Datenmodus",
"backToStories": "Zurück zu den Geschichten",
Expand Down Expand Up @@ -53,13 +56,11 @@
"tags.globalwarming": "Globale Erwärmung",
"tags.co2": "CO2",
"tags.ozone": "Ozon",
"tags.aerosol": "Aerosole",
"tags.sea-ice": "Meereeis",
"tags.sea-surface-temperature": "Meeresoberflächentemperatur",
"tags.sea-surface-salinity": "Salzgehalt der Meere",
"tags.permafrost": "Permafrost",
"tags.ocean-colour": "Meeresfarbe",
"tags.water-vapour": "Wasserdampf",
"tags.clouds": "Wolken"

}
4 changes: 3 additions & 1 deletion i18n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
"layerSelector.compare": "Compare",
"language.en": "English",
"language.de": "German",
"language.fr": "French",
"language.es": "Spanish",
"language.nl": "Dutch",
"stories": "Stories",
"backToDataMode": "Back to Data Mode",
"backToStories": "Back to Stories",
Expand Down Expand Up @@ -53,7 +56,6 @@
"tags.globalwarming": "Global Warming",
"tags.co2": "CO2",
"tags.ozone": "Ozone",
"tags.aerosol": "Aerosols",
"tags.sea-ice": "Sea Ice",
"tags.sea-surface-temperature": "Sea Surface Temperature",
"tags.sea-surface-salinity": "Sea Surface Salinity",
Expand Down
66 changes: 66 additions & 0 deletions i18n/es.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
{
"layerSelector.main": "Main",
"layerSelector.compare": "Compare",
"language.en": "English",
"language.de": "German",
"language.fr": "French",
"language.es": "Spanish",
"language.nl": "Dutch",
"stories": "Stories",
"backToDataMode": "Back to Data Mode",
"backToStories": "Back to Stories",
"storyMode": "Stories",
"projection": "Projection",
"layers": "Data Layers",
"more": "More",
"2D": "2D",
"3D": "3D",
"presenter": "Presentation",
"presenterMode": "Presenter Mode",
"showcase": "Show Case",
"showcaseMode": "Showcase Mode",
"play": "Play",
"language": "Change language",
"modes": "Modes",
"offline": "Offline Mode",
"download": "Download App",
"share": "Share with the world",
"copyLink": "Copy Link",
"export": "Export Data",
"info": "More Information",
"about": "About this project",
"EsaWebsite": "ESA Website",
"CCIWebsite": "CCI Website",
"github": "Github",
"closeStory": "Close story",
"removeCompare": "Remove Compare",
"dataInfo": "Data Information",
"storiesSelected": "{numberSelected, number} {numberSelected, plural, one {Story} other {Stories}} selected",
"resetFilters": "Reset Filters",
"tags.nature": "Nature",
"tags.biomass": "Biomass",
"tags.university": "University",
"tags.school": "School",
"tags.ocean": "Ocean",
"tags.water": "Water",
"tags.weather": "Weather",
"tags.heating": "Heating",
"tags.satellite": "Satellite",
"tags.temperature": "Temperature",
"tags.seasurface": "Sea Surface",
"tags.earth": "Earth",
"tags.wind": "Wind",
"tags.planet": "Planet",
"tags.landcover": "Land cover",
"tags.aerosol": "Aerosol",
"tags.globalwarming": "Global Warming",
"tags.co2": "CO2",
"tags.ozone": "Ozone",
"tags.sea-ice": "Sea Ice",
"tags.sea-surface-temperature": "Sea Surface Temperature",
"tags.sea-surface-salinity": "Sea Surface Salinity",
"tags.permafrost": "Permafrost",
"ocean-colour": "Ocean Colour",
"water-vapour": "Water Vapour",
"clouds": "Clouds"
}
66 changes: 66 additions & 0 deletions i18n/fr.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
{
"layerSelector.main": "Main",
"layerSelector.compare": "Compare",
"language.en": "English",
"language.de": "German",
"language.fr": "French",
"language.es": "Spanish",
"language.nl": "Dutch",
"stories": "Stories",
"backToDataMode": "Back to Data Mode",
"backToStories": "Back to Stories",
"storyMode": "Stories",
"projection": "Projection",
"layers": "Data Layers",
"more": "More",
"2D": "2D",
"3D": "3D",
"presenter": "Presentation",
"presenterMode": "Presenter Mode",
"showcase": "Show Case",
"showcaseMode": "Showcase Mode",
"play": "Play",
"language": "Change language",
"modes": "Modes",
"offline": "Offline Mode",
"download": "Download App",
"share": "Share with the world",
"copyLink": "Copy Link",
"export": "Export Data",
"info": "More Information",
"about": "About this project",
"EsaWebsite": "ESA Website",
"CCIWebsite": "CCI Website",
"github": "Github",
"closeStory": "Close story",
"removeCompare": "Remove Compare",
"dataInfo": "Data Information",
"storiesSelected": "{numberSelected, number} {numberSelected, plural, one {Story} other {Stories}} selected",
"resetFilters": "Reset Filters",
"tags.nature": "Nature",
"tags.biomass": "Biomass",
"tags.university": "University",
"tags.school": "School",
"tags.ocean": "Ocean",
"tags.water": "Water",
"tags.weather": "Weather",
"tags.heating": "Heating",
"tags.satellite": "Satellite",
"tags.temperature": "Temperature",
"tags.seasurface": "Sea Surface",
"tags.earth": "Earth",
"tags.wind": "Wind",
"tags.planet": "Planet",
"tags.landcover": "Land cover",
"tags.aerosol": "Aerosol",
"tags.globalwarming": "Global Warming",
"tags.co2": "CO2",
"tags.ozone": "Ozone",
"tags.sea-ice": "Sea Ice",
"tags.sea-surface-temperature": "Sea Surface Temperature",
"tags.sea-surface-salinity": "Sea Surface Salinity",
"tags.permafrost": "Permafrost",
"ocean-colour": "Ocean Colour",
"water-vapour": "Water Vapour",
"clouds": "Clouds"
}
66 changes: 66 additions & 0 deletions i18n/nl.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
{
"layerSelector.main": "Main",
"layerSelector.compare": "Compare",
"language.en": "English",
"language.de": "German",
"language.fr": "French",
"language.es": "Spanish",
"language.nl": "Dutch",
"stories": "Stories",
"backToDataMode": "Back to Data Mode",
"backToStories": "Back to Stories",
"storyMode": "Stories",
"projection": "Projection",
"layers": "Data Layers",
"more": "More",
"2D": "2D",
"3D": "3D",
"presenter": "Presentation",
"presenterMode": "Presenter Mode",
"showcase": "Show Case",
"showcaseMode": "Showcase Mode",
"play": "Play",
"language": "Change language",
"modes": "Modes",
"offline": "Offline Mode",
"download": "Download App",
"share": "Share with the world",
"copyLink": "Copy Link",
"export": "Export Data",
"info": "More Information",
"about": "About this project",
"EsaWebsite": "ESA Website",
"CCIWebsite": "CCI Website",
"github": "Github",
"closeStory": "Close story",
"removeCompare": "Remove Compare",
"dataInfo": "Data Information",
"storiesSelected": "{numberSelected, number} {numberSelected, plural, one {Story} other {Stories}} selected",
"resetFilters": "Reset Filters",
"tags.nature": "Nature",
"tags.biomass": "Biomass",
"tags.university": "University",
"tags.school": "School",
"tags.ocean": "Ocean",
"tags.water": "Water",
"tags.weather": "Weather",
"tags.heating": "Heating",
"tags.satellite": "Satellite",
"tags.temperature": "Temperature",
"tags.seasurface": "Sea Surface",
"tags.earth": "Earth",
"tags.wind": "Wind",
"tags.planet": "Planet",
"tags.landcover": "Land cover",
"tags.aerosol": "Aerosol",
"tags.globalwarming": "Global Warming",
"tags.co2": "CO2",
"tags.ozone": "Ozone",
"tags.sea-ice": "Sea Ice",
"tags.sea-surface-temperature": "Sea Surface Temperature",
"tags.sea-surface-salinity": "Sea Surface Salinity",
"tags.permafrost": "Permafrost",
"ocean-colour": "Ocean Colour",
"water-vapour": "Water Vapour",
"clouds": "Clouds"
}
8 changes: 7 additions & 1 deletion src/scripts/i18n.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
import en from '../../i18n/en.json';
import de from '../../i18n/de.json';
import fr from '../../i18n/fr.json';
import es from '../../i18n/es.json';
import nl from '../../i18n/nl.json';

export default {
en,
de
de,
fr,
es,
nl
};
5 changes: 4 additions & 1 deletion src/scripts/types/language.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
export enum Language {
EN = 'en',
DE = 'de'
DE = 'de',
FR = 'fr',
ES = 'es',
NL = 'nl'
}

0 comments on commit 7041896

Please sign in to comment.