diff --git a/cypress/e2e/clientOptions.cy.ts b/cypress/e2e/clientOptions.cy.ts index e858a4c..9ab9fd8 100644 --- a/cypress/e2e/clientOptions.cy.ts +++ b/cypress/e2e/clientOptions.cy.ts @@ -3,6 +3,12 @@ describe('The clientOptions', () => { cy.visit('/de') cy.get('#nuxt-language').first().should('have.text', 'de') cy.get('#response-language').first().should('have.text', 'de') + cy.get('#server-route-language').first().should('have.text', 'de') + + cy.visit('/fr') + cy.get('#nuxt-language').first().should('have.text', 'fr') + cy.get('#response-language').first().should('have.text', 'fr') + cy.get('#server-route-language').first().should('have.text', 'fr') }) it('are working correctly with SPA', () => { @@ -10,10 +16,12 @@ describe('The clientOptions', () => { cy.get('#link-client-options').click() cy.get('#nuxt-language').first().should('have.text', 'de') cy.get('#response-language').first().should('have.text', 'de') + cy.get('#server-route-language').first().should('have.text', 'de') cy.get('#lang-switch-fr').click() cy.get('#nuxt-language').first().should('have.text', 'fr') cy.get('#response-language').first().should('have.text', 'fr') + cy.get('#server-route-language').first().should('have.text', 'fr') }) }) diff --git a/playground/app/pages/[lang]/index.vue b/playground/app/pages/[lang]/index.vue index cad20f9..6f22a35 100644 --- a/playground/app/pages/[lang]/index.vue +++ b/playground/app/pages/[lang]/index.vue @@ -9,6 +9,11 @@ {{ responseLanguage }}

+

+ Current language via server route: + {{ serverRouteLanguage }} +

+