-
Notifications
You must be signed in to change notification settings - Fork 214
Expand file tree
/
Copy pathsites.js.hbs
More file actions
80 lines (79 loc) · 2.38 KB
/
sites.js.hbs
File metadata and controls
80 lines (79 loc) · 2.38 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
/*
* Copyright (c) 2023, Salesforce, Inc.
* All rights reserved.
* SPDX-License-Identifier: BSD-3-Clause
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/BSD-3-Clause
*/
// Provide the sites for your app. Each site includes site id, and its localization configuration.
// You can also provide aliases for your locale. They will be used in place of your locale id when generating paths across the app
module.exports = [
{
id: '{{answers.project.commerce.siteId}}',
{{#if answers.project.demo.enableDemoSettings}}
l10n: {
supportedCurrencies: ['USD', 'GBP', 'EUR', 'CNY', 'JPY'],
defaultCurrency: 'USD',
defaultLocale: 'en-US',
supportedLocales: [
{
id: 'en-US',
preferredCurrency: 'USD'
},
{
id: 'en-GB',
preferredCurrency: 'GBP'
},
{
id: 'de-DE',
preferredCurrency: 'EUR'
},
{
id: 'es-MX',
preferredCurrency: 'MXN'
},
{
id: 'fr-FR',
preferredCurrency: 'EUR'
},
{
id: 'it-IT',
preferredCurrency: 'EUR'
},
{
id: 'ja-JP',
preferredCurrency: 'JPY'
},
{
id: 'ko-KR',
preferredCurrency: 'KRW'
},
{
id: 'pt-BR',
preferredCurrency: 'BRL'
},
{
id: 'zh-CN',
preferredCurrency: 'CNY'
},
{
id: 'zh-TW',
preferredCurrency: 'TWD'
}
]
}
{{else}}
l10n: {
supportedCurrencies: ['USD'],
defaultCurrency: 'USD',
defaultLocale: 'en-US',
supportedLocales: [
{
id: 'en-US',
// alias: 'us',
preferredCurrency: 'USD'
}
]
}
{{/if}}
}
]