Skip to content

Commit

Permalink
Merge pull request #163 from vuestorefront-community/feat/multicurren…
Browse files Browse the repository at this point in the history
…cy-support

feat: add currency extention
  • Loading branch information
Baroshem committed Feb 7, 2022
2 parents 829ae08 + 6f5c758 commit bddfa50
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
1 change: 1 addition & 0 deletions docs/changelog/1.0.1.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@
* [Bug]: Filter display as numeric index in mobile mode [#153](https://github.com/vuestorefront-community/vendure/issues/153)
* [Bug]: Static pages doesn't handle properly multiple space occurrence inside title [#154](https://github.com/vuestorefront-community/vendure/issues/154)
* [Bug]: Customer name not displayed in account form on first load [#125](https://github.com/vuestorefront-community/vendure/issues/125)
* [Feature]: Add currency extention [#163](https://github.com/vuestorefront-community/vendure/pull/163)
3 changes: 1 addition & 2 deletions packages/api-client/src/extensions/localiseConfig.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@

import { ApiClientExtension } from '@vue-storefront/core';

function getLocalisedUri(request, configuration) {
const originalUri = configuration.api.uri;
const api = {uri: originalUri + '?languageCode=' + request.cookies.i18n_redirected};
const api = { uri: originalUri + '?languageCode=' + request.cookies.i18n_redirected + '&currencyCode=' + request.cookies['vsf-currency']};
return { api };
}

Expand Down
2 changes: 1 addition & 1 deletion packages/theme/lang/de.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export default {
'About us': 'Über uns',
'Who we are': 'Wer wir sind',
'Quality in the details': 'Qualität im Detail',
'Customer Reviews': 'Kundenbewertungen',
'Customer reviews': 'Kundenbewertungen',
'Departments': 'Abteilungen',
'Women fashion': 'Damenmode',
'Men fashion': 'Herrenmode',
Expand Down
2 changes: 1 addition & 1 deletion packages/theme/lang/en.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export default {
'About us': 'About us',
'Who we are': 'Who we are',
'Quality in the details': 'Quality in the details',
'Customer Reviews': 'Customer Reviews',
'Customer reviews': 'Customer Reviews',
'Departments': 'Departments',
'Women fashion': 'Women fashion',
'Men fashion': 'Men fashion',
Expand Down

0 comments on commit bddfa50

Please sign in to comment.