Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow locales changes to reload the page #67

Merged
merged 1 commit into from
Jan 25, 2025

Conversation

marcoroth
Copy link
Member

@marcoroth marcoroth commented Jan 10, 2025

I've noticed that many of the applications I work on use I18n translations and that Spark doesn't reload on these changes. Since a lot of the copy is stored in the locales YAML files, I thought it would be a good idea to add the config/locales directory as a default to the HTML paths.

This way, users can make changes to the YAML files more easily and see the changes reflected in the HTML right away. What do you think?

Copy link
Member

@jorgemanrubia jorgemanrubia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I love it @marcoroth. Thanks!

@jorgemanrubia jorgemanrubia merged commit 3f10fd5 into hotwired:main Jan 25, 2025
4 checks passed
@marcoroth marcoroth deleted the allow-locales-to-reload branch January 25, 2025 08:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants