-
Notifications
You must be signed in to change notification settings - Fork 0
/
gridsome.config.js
34 lines (32 loc) · 1014 Bytes
/
gridsome.config.js
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
27
28
29
30
31
32
33
34
// This is where project configuration and plugin options are located.
// Learn more: https://gridsome.org/docs/config
// Changes here require a server restart.
// To restart press CTRL + C in terminal and run `gridsome develop`
module.exports = {
siteName: "BBC Air Quality",
plugins: [
{
use: "gridsome-plugin-i18n",
options: {
locales: [
// locales list
"en-gb",
"hi-in",
],
pathAliases: {
// path segment alias for each locales
"en-gb": "en",
"hi-in": "hi",
},
fallbackLocale: "en-gb", // fallback language
defaultLocale: "en-gb", // default language
enablePathRewrite: true, // rewrite path with locale prefix, default: true
rewriteDefaultLanguage: true, // rewrite default locale, default: true
messages: {
"en-gb": require("./src/locales/en-gb.json"),
"hi-in": require("./src/locales/hi-in.json"),
},
},
},
],
};