Skip to content

Commit

Permalink
v2.0.7
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenwf committed May 18, 2022
1 parent 216a151 commit a6d1e5a
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 15 deletions.
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased](https://github.com/digirati-co-uk/madoc-platform/compare/v2.0.6...main)
## [Unreleased](https://github.com/digirati-co-uk/madoc-platform/compare/v2.0.7...main)

<!--
### Fixed
Expand All @@ -14,6 +14,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Security
-->

## [2.0.7](https://github.com/digirati-co-uk/madoc-platform/releases/tag/v2.0.7) - 2022-05-18
This is a hot fix release.

## [2.0.6](https://github.com/digirati-co-uk/madoc-platform/releases/tag/v2.0.6) - 2022-05-16
This is a hot fix release.

Expand Down
26 changes: 12 additions & 14 deletions services/madoc-ts/src/middleware/i18n/i18next.client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,20 +38,18 @@ export async function createBackend(slug: string, jwt?: string, languages?: stri
].filter(Boolean),
backendOptions: [
process.env.NODE_ENV === 'production' ? {} : null, // primary
process.env.NODE_ENV !== 'production'
? {
loadPath: `/s/${slug}/madoc/api/locales/{{lng}}/{{ns}}`, // xhr load path for my own fallback
addPath: `/s/${slug}/madoc/api/locales/{{lng}}/{{ns}}`, // xhr load path for my own fallback
customHeaders: jwt
? {
Accept: 'application/json',
Authorization: `Bearer ${jwt}`,
}
: {
Accept: 'application/json',
},
}
: null,
{
loadPath: `/s/${slug}/madoc/api/locales/{{lng}}/{{ns}}`, // xhr load path for my own fallback
addPath: `/s/${slug}/madoc/api/locales/{{lng}}/{{ns}}`, // xhr load path for my own fallback
customHeaders: jwt
? {
Accept: 'application/json',
Authorization: `Bearer ${jwt}`,
}
: {
Accept: 'application/json',
},
},
].filter(Boolean),
},
});
Expand Down

0 comments on commit a6d1e5a

Please sign in to comment.