Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add currency extention #163

Merged
merged 4 commits into from
Feb 7, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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