Skip to content

Commit 6dbcc05

Browse files
author
hugur
committed
improve readme plugin installation instruction
1 parent 80b13fa commit 6dbcc05

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

gatsby-theme-w3f/README.md

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,21 @@ This document outlines how the theme is setup, its plugin and configuration.
1212

1313
To use this theme, install it in a project, as a npm module: `npm i --save @w3f/gatsby-theme-w3f`.
1414

15-
## Customization of existing theme files
15+
In the project's `gatsby-config.js`, the plugin section can then define our theme, and i18n locales like so:
16+
``` javascript
17+
plugins: [
18+
{
19+
resolve: `@w3f/gatsby-theme-w3f`,
20+
options: {
21+
i18nLanguages: ['en', 'fr']
22+
}
23+
},
24+
]
25+
```
26+
27+
> The first language listed will be the default language.
28+
29+
## Customization of existing theme files (shadowing)
1630

1731
You can overide existing theme files in your project directory
1832
structure. For this, we use the [Gatsby shadowing

0 commit comments

Comments
 (0)