CefI18nUtil
Header: cef_i18n_util.h
Category: System Utilities
Overview
Tasks, threads, parsers, streams, cookies, URL requests, scheme registration, and constant tables.
Free function: CefIsRTL
Source File: include/cef_i18n_util.h
Process / Thread Context: Any process / any thread (no constraint specified in header).
Purpose: Returns whether the application's text direction is right-to-left (e.g., Arabic/Hebrew locale). Use to mirror UI layouts or choose correct default text alignment.
Usage Example
cpp
bool CefIsRTL();cpp
if (CefIsRTL()) {
// Mirror layout direction for custom views:
layout->SetHorizontalAlignment(kAlignmentRight);
} else {
layout->SetHorizontalAlignment(kAlignmentLeft);
}