-
-
Notifications
You must be signed in to change notification settings - Fork 19
Description
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.