Skip to content

Commit

Permalink
fix(I18nHead): meta locale urls (#38)
Browse files Browse the repository at this point in the history
* - avoid generating alternate for default locale
- use string concat instead of path
* fix: avoid printing default language alternate
* Update I18nHead.tsx
added missing trailing slash on root directory URL
* fix(I18nHead): meta locale urls
Co-authored-by: Alessandro Maruccia <alesmaru@gmail.com>
  • Loading branch information
openscript committed Jul 1, 2022
1 parent 9363996 commit c473237
Show file tree
Hide file tree
Showing 7 changed files with 1,440 additions and 11 deletions.
1 change: 0 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ All notable changes to this project will be documented in this file. See [standa

### [4.17.4](https://github.com/openscript-ch/gatsby-plugin-i18n-l10n/compare/v4.17.3...v4.17.4) (2022-06-30)


### 🐛 Bug Fixes

* slug translation ([355c0d7](https://github.com/openscript-ch/gatsby-plugin-i18n-l10n/commit/355c0d7c8e7cc68d8aa404011681edd230f71d3e))
Expand Down
6 changes: 5 additions & 1 deletion jest-preprocess.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
const babelOptions = {
presets: ["babel-preset-gatsby", "@babel/preset-typescript"],
presets: [
"babel-preset-gatsby",
"@babel/preset-typescript",
["@babel/preset-react", { "runtime": "automatic" }]
],
}
module.exports = require("babel-jest").default.createTransformer(babelOptions)
1 change: 1 addition & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ module.exports = {
globals: {
__PATH_PREFIX__: ``,
},
testEnvironment: 'jsdom',
testEnvironmentOptions: {
url: `http://localhost`
},
Expand Down
Loading

0 comments on commit c473237

Please sign in to comment.