Implementation:SeleniumHQ Selenium Closure Bidi
| Knowledge Sources | |
|---|---|
| Domains | JavaScript_Atoms, Vendored_Library |
| Last Updated | 2026-02-12 00:00 GMT |
Overview
Vendored Google Closure Library module providing bidirectional (Bidi) text utility functions used by Selenium JavaScript atoms.
Description
goog.i18n.bidi is a vendored copy of the Google Closure Library module. It provides utility functions for supporting bidirectional text issues, including RTL (right-to-left) locale detection, directionality constants, and formatting helpers for languages such as Arabic, Hebrew, Farsi, and Urdu. Selenium uses this as part of its JavaScript atom infrastructure.
Usage
This module is consumed internally by Selenium's JavaScript atoms build system. Not imported directly by end users.
Code Reference
Source Location
- Repository: SeleniumHQ_Selenium
- File: third_party/closure/goog/i18n/bidi.js
- Lines: 1-943
Key Exports
goog.provide('goog.i18n.bidi');
goog.provide('goog.i18n.bidi.Dir');
goog.provide('goog.i18n.bidi.DirectionalString');
goog.provide('goog.i18n.bidi.Format');
goog.i18n.bidi.FORCE_RTL = goog.define('goog.i18n.bidi.FORCE_RTL', false);
goog.i18n.bidi.IS_RTL = /* compile-time constant based on locale */;