config: set default locale to English and update CREEM production URLs
- Change default locale from zh to en for international audience - Update .env.example with production CREEM API URL - Set SUCCESS_URL to meeyao.com/en/store
This commit is contained in:
@@ -11,8 +11,8 @@ export default defineConfig({
|
||||
}),
|
||||
integrations: [react()],
|
||||
i18n: {
|
||||
locales: ['zh', 'zh_Hant', 'en'],
|
||||
defaultLocale: 'zh',
|
||||
locales: ['en', 'zh', 'zh_Hant'],
|
||||
defaultLocale: 'en',
|
||||
routing: {
|
||||
prefixDefaultLocale: true,
|
||||
},
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
export type Locale = 'zh' | 'zh_Hant' | 'en';
|
||||
export const defaultLocale: Locale = 'zh';
|
||||
export const locales: Locale[] = ['zh', 'zh_Hant', 'en'];
|
||||
export type Locale = 'en' | 'zh' | 'zh_Hant';
|
||||
export const defaultLocale: Locale = 'en';
|
||||
export const locales: Locale[] = ['en', 'zh', 'zh_Hant'];
|
||||
|
||||
export function isValidLocale(locale: string): locale is Locale {
|
||||
return (locales as readonly string[]).includes(locale);
|
||||
|
||||
Reference in New Issue
Block a user