From bce557cc2dc767628bed6aac87301a1be7c5431b Mon Sep 17 00:00:00 2001 From: rxliuli Date: Tue, 4 Nov 2025 05:03:50 +0800 Subject: init commit --- src/constants/storefront.ts | 60 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 src/constants/storefront.ts (limited to 'src/constants/storefront.ts') 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([ + '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[]); -- cgit v1.2.3