Prevent Calendar Content Translation in Multilingual Sites
Adds a CSS class to JetAppointment calendars to exclude their content from automatic translation by plugins like GTranslate.
Specifications
Prevent Calendar Content Translation in Multilingual Sites
7 January, 2026
-
Plugin
-
Category
-
Programming languages
Installing Instruction
- Copy the provided JavaScript code snippet to your clipboard.
- Add the code using one of the following methods:
-
Option A: Using a Custom Code Plugin (Recommended)
- Install and activate a plugin such as WPCode Lite, Code Snippets, or Simple Custom CSS and JS.
- Create a new JavaScript snippet.
- Paste only the JavaScript code, without <script> tags.
- Save and activate the snippet.
-
Option B: Using a Custom Code / HTML Area
- Add the code in a Custom HTML widget or directly into a theme file (for example, header.php or footer.php).
- Keep the <script> tags when using this method.
- Save your changes.
-
Option A: Using a Custom Code Plugin (Recommended)
Example Use Case
Use this snippet to protect appointment calendar UI text and dates from being translated incorrectly in multilingual setups. It ensures booking forms display consistent date formats and labels regardless of page language changes, enhancing user experience and preventing functional issues.
Applicable scenarios:
- Preventing calendar UI translation using multilingual plugins.
- Maintaining consistent date and booking label formats across languages.
- Avoiding translation conflicts on appointment forms.
Specifications
Prevent Calendar Content Translation in Multilingual Sites
7 January, 2026
-
Plugin
-
Category
-
Programming languages