Skip to content

Commit

Permalink
feat: use underscore for locales directory (#192)
Browse files Browse the repository at this point in the history
  • Loading branch information
greatislander committed Aug 2, 2023
1 parent d0d6c8c commit 79181c1
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
coverage
_site
fixtures/locales/*.js
fixtures/_locales/*.js
node_modules
.DS_Store
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ The `defaultLanguage` can be overridden by passing a new value to the `defaultLa
`eleventy-plugin-fluid`.

By default, `eleventy-plugin-fluid` also configures a [`localesDirectory`](https://github.com/sgissinger/eleventy-plugin-i18n-gettext#localesdirectory)
for `eleventy-plugin-i18n-getttext` as `./src/locales`. This can be overridden by passing a new value to the
for `eleventy-plugin-i18n-getttext` as `./src/_locales`. This can be overridden by passing a new value to the
`localesDirectory` options key when registering `eleventy-plugin-fluid`.

`eleventy-plugin-fluid` also provides two localization-related helpers:
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ module.exports = {
},
supportedLanguages: languages,
defaultLanguage: "en",
localesDirectory: `./${eleventyConfig.dir.input || "src"}/locales`,
localesDirectory: `./${eleventyConfig.dir.input || "src"}/_locales`,
templateFormats: [
"html",
"md",
Expand Down

0 comments on commit 79181c1

Please sign in to comment.