summaryrefslogtreecommitdiff
path: root/src/constants/storefront.ts
diff options
context:
space:
mode:
authorrxliuli <rxliuli@gmail.com>2025-11-04 05:03:50 +0800
committerrxliuli <rxliuli@gmail.com>2025-11-04 05:03:50 +0800
commitbce557cc2dc767628bed6aac87301a1be7c5431b (patch)
treeb51a051228d01fe3306cd7626d4a96768aadb944 /src/constants/storefront.ts
init commit
Diffstat (limited to 'src/constants/storefront.ts')
-rw-r--r--src/constants/storefront.ts60
1 files changed, 60 insertions, 0 deletions
diff --git a/src/constants/storefront.ts b/src/constants/storefront.ts
new file mode 100644
index 0000000..e73f111
--- /dev/null
+++ b/src/constants/storefront.ts
@@ -0,0 +1,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[]);