feat: Add defineRouting
for easier i18n routing setup
#1863
main.yml
on: pull_request
Build, lint, and test
42s
Annotations
10 errors
Build, lint, and test
Type '{ localePrefix: "as-needed"; defaultLocale: "en"; locales: string[]; domains: ({ defaultLocale: "en"; domain: string; locales: ("en" | "fr")[]; } | { defaultLocale: "fr"; domain: string; locales: "fr"[]; })[]; pathnames: { ...; }; } & { ...; }' is not assignable to type 'ResolvedRoutingConfig<string[], never>'.
|
Build, lint, and test
Type '{ localePrefix: "as-needed"; defaultLocale: "en"; locales: string[]; domains: ({ defaultLocale: "en"; domain: string; locales: ("en" | "fr")[]; } | { defaultLocale: "fr"; domain: string; locales: "fr"[]; })[]; pathnames: { ...; }; } & { ...; }' is not assignable to type 'ResolvedRoutingConfig<string[], never>'.
|
Build, lint, and test
Type '{ localePrefix: "as-needed"; defaultLocale: "en"; locales: string[]; domains: ({ defaultLocale: "en"; domain: string; locales: ("en" | "fr")[]; } | { defaultLocale: "fr"; domain: string; locales: "fr"[]; })[]; pathnames: { ...; }; } & { ...; }' is not assignable to type 'ResolvedRoutingConfig<string[], never>'.
|
Build, lint, and test
Type '{ localePrefix: "as-needed"; defaultLocale: "en"; locales: string[]; domains: ({ defaultLocale: "en"; domain: string; locales: ("en" | "fr")[]; } | { defaultLocale: "fr"; domain: string; locales: "fr"[]; })[]; pathnames: { ...; }; } & { ...; }' is not assignable to type 'ResolvedRoutingConfig<string[], never>'.
|
Build, lint, and test
Type '{ localePrefix: "as-needed"; defaultLocale: "en"; locales: string[]; domains: ({ defaultLocale: "en"; domain: string; locales: ("en" | "fr")[]; } | { defaultLocale: "fr"; domain: string; locales: "fr"[]; })[]; pathnames: { ...; }; } & { ...; }' is not assignable to type 'ResolvedRoutingConfig<string[], never>'.
|
Build, lint, and test
Type '{ localePrefix: "as-needed"; defaultLocale: "en"; locales: string[]; domains: ({ defaultLocale: "en"; domain: string; locales: ("en" | "fr")[]; } | { defaultLocale: "fr"; domain: string; locales: "fr"[]; })[]; pathnames: { ...; }; } & { ...; }' is not assignable to type 'ResolvedRoutingConfig<string[], never>'.
|
Build, lint, and test
Type '{ localePrefix: "as-needed"; defaultLocale: "en"; locales: string[]; domains: ({ defaultLocale: "en"; domain: string; locales: ("en" | "fr")[]; } | { defaultLocale: "fr"; domain: string; locales: "fr"[]; })[]; pathnames: { ...; }; } & { ...; }' is not assignable to type 'ResolvedRoutingConfig<string[], never>'.
|
Build, lint, and test
Type '{ localePrefix: "as-needed"; defaultLocale: "en"; locales: string[]; domains: ({ defaultLocale: "en"; domain: string; locales: ("en" | "fr")[]; } | { defaultLocale: "fr"; domain: string; locales: "fr"[]; })[]; pathnames: { ...; }; } & { ...; }' is not assignable to type 'ResolvedRoutingConfig<string[], never>'.
|
Build, lint, and test
Type '{ localePrefix: "as-needed"; defaultLocale: "en"; locales: string[]; domains: ({ defaultLocale: "en"; domain: string; locales: ("en" | "fr")[]; } | { defaultLocale: "fr"; domain: string; locales: "fr"[]; })[]; pathnames: { ...; }; } & { ...; }' is not assignable to type 'ResolvedRoutingConfig<string[], never>'.
|
Build, lint, and test
Type '{ localePrefix: "as-needed"; defaultLocale: "en"; locales: string[]; domains: ({ defaultLocale: "en"; domain: string; locales: ("en" | "fr")[]; } | { defaultLocale: "fr"; domain: string; locales: "fr"[]; })[]; pathnames: { ...; }; } & { ...; }' is not assignable to type 'ResolvedRoutingConfig<string[], never>'.
|