Skip to content

Fix nested translations on Windows not recognized - #684

Open
LaurinStapf wants to merge 1 commit into
laravel:mainfrom
LaurinStapf:main
Open

Fix nested translations on Windows not recognized#684
LaurinStapf wants to merge 1 commit into
laravel:mainfrom
LaurinStapf:main

Conversation

@LaurinStapf

Copy link
Copy Markdown

Problem

Nested translation keys e.g. __('app/test.label') are displayed as "not found" on Windows, even though the translation exists. This is caused by the translation resolution logic not normalizing Windows (\) and Unix (/) path separators when handling nested keys.

Fix

Normalize file paths to use forward slashes consistently across all platforms during translation key resolution.

@LaurinStapf
LaurinStapf marked this pull request as ready for review July 27, 2026 19:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant