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

Validate custom locale and javascript strings #4893

Merged
merged 2 commits into from
Jun 11, 2024

Conversation

WithoutPants
Copy link
Collaborator

Resolves #4841 (in terms of improving UX when invalid code is input)

Validates the custom localisation string and displays an error if it is invalid:
image

It will not be possible to save the string if it has errors.

Validates the custom javascript string for syntax errors, and displays an error if it is invalid:
image

No validation is performed for custom css as I could find no simple way to do it.

@WithoutPants WithoutPants added the improvement Something needed tweaking. label May 28, 2024
@WithoutPants WithoutPants added this to the Version 0.27.0 milestone Jun 3, 2024
@WithoutPants WithoutPants merged commit bf25759 into stashapp:develop Jun 11, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
improvement Something needed tweaking.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug Report] Custom Locales not working
1 participant