Skip to content

Produce message if locale isn't set when using direct access to MathJax modules.#1484

Open
dpvc wants to merge 2 commits into
fix/test-formatfrom
feature/locale-message
Open

Produce message if locale isn't set when using direct access to MathJax modules.#1484
dpvc wants to merge 2 commits into
fix/test-formatfrom
feature/locale-message

Conversation

@dpvc
Copy link
Copy Markdown
Member

@dpvc dpvc commented May 25, 2026

This PR introduces an error message about not having set up localization, if that is the case. This applies only to node applications that use direct access to the MathJax modules (since the component-based apps in node or the browser will have Locale.setLocale() performed automatically). In this PR, when a MathDocument is created, the Locale is checked and it setLocale() has never been called, the message is generated. When we have a URL to point to, it should be added to the message.

@dpvc dpvc requested a review from zorkow May 25, 2026 12:23
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