summaryrefslogtreecommitdiff
path: root/src/constants/storefront.ts
blob: e73f1116036ecefa71d0e0644d3436dfc7b757a7 (plain)
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
import type {
    NormalizedLanguage,
    NormalizedStorefront,
} from '@jet-app/app-store/api/locale';

export const DEFAULT_STOREFRONT_CODE = 'us' as NormalizedStorefront;
export const DEFAULT_LANGUAGE_BCP47 = 'en-US' as NormalizedLanguage;

export const EU_STOREFRONTS = [
    'at',
    'be',
    'bg',
    'cy',
    'cz',
    'dk',
    'ee',
    'fi',
    'fr',
    'de',
    'gr',
    'hr',
    'hu',
    'ie',
    'it',
    'lv',
    'lt',
    'lu',
    'mt',
    'nl',
    'pl',
    'pt',
    'ro',
    'sk',
    'si',
    'es',
    'se',
    'uk',
];

export const SUPPORTED_STOREFRONTS_FOR_VISION = new Set<NormalizedStorefront>([
    'us',
    'cn',
    'hk',
    'jp',
    'sg',
    'au',
    'ca',
    'fr',
    'de',
    'gb',
    'kr',
    'ae',
    'tw',
] as NormalizedStorefront[]);

export const UNSUPPORTED_STOREFRONTS_FOR_ARCADE = new Set([
    'cn',
    'hk',
    'mo',
] as NormalizedStorefront[]);