- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
asyncData ({ payload }) {
// Fake data for dev work
if (!payload) {
let language = {
name: 'Spanish',
region: 'Latin America',
id: 'esp',
catalog: 'buy-spanish'
}
let meta = {
en: {
title: `Buy ${language.name} - Start Learning ${language.name} Today | Rosetta StoneĀ®`,
description: `Learn ${language.name} on any device, anywhere, the best way to learn a language online. Buy Rosetta Stone ${language.name}.`
},
es: {
title: `Compra ${language.name}`
}
}
return { meta, language }
}
// Real data passed via generate function in nuxt.config.js
return { language: payload.language }
},