Skip to content

@serenity-is/corelib / turkishLocaleToLower

Function: turkishLocaleToLower()

turkishLocaleToLower(a): string

Defined in: src/compat/formatting-compat.ts:11

Lowercases a string with Turkish-specific handling (İi, Iı).

Parameters

a

string

Input string; if falsy, returned as-is.

Returns

string

Lowercased string with Turkish dotted/dotless-I mapping preserved.

Remarks

Compat shim retained because native String.prototype.toLocaleLowerCase('tr') behaves differently across engines; prefer locale-aware APIs for new code.

Deprecated

Retained for legacy turkishLocaleToLower call sites.

Example

turkishLocaleToLower("İSTANBUL"); // "istanbul" with ı handling