File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
cypress/integration/static-root Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -22,8 +22,8 @@ describe('Localization', () => {
22
22
'Accept-Language' : 'fr;q=0.9' ,
23
23
} ,
24
24
} )
25
- cy . findByText ( 'The current locale is fr' )
26
25
cy . url ( ) . should ( 'eq' , `${ Cypress . config ( ) . baseUrl } /fr/` )
26
+ cy . findByText ( 'The current locale is fr' )
27
27
} )
28
28
29
29
it ( 'should use the NEXT_LOCALE cookie over Accept-Language header to determine the default locale' , ( ) => {
Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ export const generateRedirects = async ({
63
63
} ) ) ,
64
64
)
65
65
66
- if ( i18n . localeDetection !== false ) {
66
+ if ( i18n && i18n . localeDetection !== false ) {
67
67
netlifyConfig . redirects . push ( ...generateLocaleRedirects ( { i18n, basePath, trailingSlash } ) )
68
68
}
69
69
You can’t perform that action at this time.
0 commit comments