Skip to content

Commit

Permalink
Updated URLs (woudc#143)
Browse files Browse the repository at this point in the history
  • Loading branch information
emadahmad2001 authored Dec 6, 2022
1 parent 2391917 commit 6fe86b1
Showing 1 changed file with 14 additions and 7 deletions.
21 changes: 14 additions & 7 deletions pages/data/products/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -58,13 +58,6 @@
export default {
data() {
return {
mapsLinks: {
global: 'http://exp-studies.tor.ec.gc.ca/e/ozone/Curr_allmap_g.htm',
north: 'http://exp-studies.tor.ec.gc.ca/e/ozone/Curr_allmap.htm',
south: 'http://exp-studies.tor.ec.gc.ca/e/ozone/Curr_allmap_s.htm',
archive: 'http://exp-studies.tor.ec.gc.ca/cgi-bin/selectMap',
individual: 'http://exp-studies.tor.ec.gc.ca/cgi-bin/dailyMaps',
},
relatedLinks: {
'totalozone-daily-monthly':
this.$config.WOUDC_UI_WAF_URL + '/Summaries/TotalOzone',
Expand Down Expand Up @@ -112,6 +105,20 @@ export default {
],
}
},
computed: {
mapsLinks() {
const lang = this.$i18n.locale[0] // get "e" or "f"
return {
// similar key:values as the original mapsLinks from data() placed here,
// with the lang var that switches the e/f lang
global: `https://exp-studies.tor.ec.gc.ca/clf2/${lang}/Curr_allmap_g.html`,
north: `https://exp-studies.tor.ec.gc.ca/clf2/${lang}/Curr_allmap.html`,
south: `https://exp-studies.tor.ec.gc.ca/clf2/${lang}/Curr_allmap_s.html`,
archive: `https://exp-studies.tor.ec.gc.ca/cgi-bin/clf2/selectMap?lang=${lang}`,
individual: `https://exp-studies.tor.ec.gc.ca/cgi-bin/clf2/dailyMaps?lang=${lang}`,
}
},
},
nuxtI18n: {
paths: {
en: '/data/products',
Expand Down

0 comments on commit 6fe86b1

Please sign in to comment.