Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 569fdb2

Browse files
authored
Add const to for in loop
1 parent a1f01c9 commit 569fdb2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

www/plugins/gatsby-plugin-i18n/gatsby-node.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ exports.onCreatePage = ({ page, actions }, pluginOptions) => {
44

55
// NOTE: Right now, the default language (English) isn't counted among the list of languages.
66
// If we were to add it, we'd need to run `deletePage` on the original page and create a new one.
7-
for (lang of languages) {
7+
for (const lang of languages) {
88
createPage({
99
...page,
1010
path: `/${lang}${page.path}`,

0 commit comments

Comments
 (0)