Skip to content

Language prefix routes not working properly #104

@mallria

Description

@mallria

I have installed the Winter Translate plugin (v2.0.0) and configured multiple languages (en, fr, es) in the backend. The plugin appears to be working partially - it detects the language from the URL prefix and sets the correct locale, but the routes are not resolving properly.

Current Behavior:
http://website/ works correctly (default language)
http://website/fr returns 404 "Page not found"
http://website/es returns 404 "Page not found"

Expected Behavior:
According to the documentation, visiting http://website/fr/ should display the site in French, and http://website/es/ should display the site in Spanish.

What I've tried:
Created language-specific page files (home.fr.htm, home.es.htm) with url = "/"
Verified that locales are properly configured in the backend
Ran php artisan translate:scan to scan for messages
Cleared application cache
Confirmed that prefixDefaultLocale is set to true and disableLocalePrefixRoutes is set to false

Technical Details:
The plugin correctly detects the locale from the URL (e.g., fr from /fr)
The HTML output shows lang="fr" indicating language switching works
However, the CMS controller cannot find the corresponding page

Configuration:
prefixDefaultLocale: true
disableLocalePrefixRoutes: false
Locales configured: en (default), fr, es

Question:
Is there a specific configuration or setup step I'm missing? The plugin seems to be working for language detection but not for route resolution.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions