Skip to content

Commit 7252dfe

Browse files
committed
showDefaults: true
1 parent 2fb735a commit 7252dfe

File tree

4 files changed

+16
-12
lines changed

4 files changed

+16
-12
lines changed

packages/pwa-kit-create-app/assets/bootstrap/js/config/default.js.hbs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,16 @@ module.exports = {
1515
site: 'path',
1616
// Determine where the localeRef is located. Valid values include 'path|query_param|none'. Defaults to: 'none'
1717
locale: 'path',
18+
// This boolean value dictates whether or not default site or locale values are shown in the url. Defaults to: false
19+
showDefaults: true,
1820
{{else}}
1921
// Determine where the siteRef is located. Valid values include 'path|query_param|none'. Defaults to: 'none'
2022
site: 'none',
2123
// Determine where the localeRef is located. Valid values include 'path|query_param|none'. Defaults to: 'none'
2224
locale: 'none',
23-
{{/if}}
2425
// This boolean value dictates whether or not default site or locale values are shown in the url. Defaults to: false
25-
// showDefaults: true
26+
showDefaults: false,
27+
{{/if}}
2628
// This boolean value dictates whether the plus sign (+) is interpreted as space for query param string. Defaults to: false
2729
interpretPlusSignAsSpace: false
2830
},

packages/pwa-kit-create-app/assets/bootstrap/js/config/sites.js.hbs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,14 @@ module.exports = [
2020
id: 'en-US',
2121
preferredCurrency: 'USD'
2222
},
23-
{
24-
id: 'de-DE',
25-
preferredCurrency: 'EUR'
26-
},
2723
{
2824
id: 'en-GB',
2925
preferredCurrency: 'GBP'
3026
},
27+
{
28+
id: 'de-DE',
29+
preferredCurrency: 'EUR'
30+
},
3131
{
3232
id: 'es-MX',
3333
preferredCurrency: 'MXN'

packages/pwa-kit-create-app/assets/templates/@salesforce/retail-react-app/config/default.js.hbs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,16 @@ module.exports = {
1515
site: 'path',
1616
// Determine where the localeRef is located. Valid values include 'path|query_param|none'. Defaults to: 'none'
1717
locale: 'path',
18+
// This boolean value dictates whether default site or locale values are shown in the url. Defaults to: false
19+
showDefaults: true,
1820
{{else}}
1921
// Determine where the siteRef is located. Valid values include 'path|query_param|none'. Defaults to: 'none'
2022
site: 'none',
2123
// Determine where the localeRef is located. Valid values include 'path|query_param|none'. Defaults to: 'none'
2224
locale: 'none',
25+
// This boolean value dictates whether or not default site or locale values are shown in the url. Defaults to: false
26+
showDefaults: false,
2327
{{/if}}
24-
// This boolean value dictates whether default site or locale values are shown in the url. Defaults to: false
25-
// showDefaults: true,
2628
// This boolean value dictates whether the plus sign (+) is interpreted as space for query param string. Defaults to: false
2729
interpretPlusSignAsSpace: false
2830
},

packages/pwa-kit-create-app/assets/templates/@salesforce/retail-react-app/config/sites.js.hbs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,14 @@ module.exports = [
2020
id: 'en-US',
2121
preferredCurrency: 'USD'
2222
},
23-
{
24-
id: 'de-DE',
25-
preferredCurrency: 'EUR'
26-
},
2723
{
2824
id: 'en-GB',
2925
preferredCurrency: 'GBP'
3026
},
27+
{
28+
id: 'de-DE',
29+
preferredCurrency: 'EUR'
30+
},
3131
{
3232
id: 'es-MX',
3333
preferredCurrency: 'MXN'

0 commit comments

Comments
 (0)