effect-io-ai

Package: effect
Module: String

String.toLocaleLowerCase

Converts the string to lowercase according to the specified locale.

Example (Lowercasing strings by locale)

import { pipe, String } from "effect"
import * as assert from "node:assert"

const str = "\u0130"
assert.deepStrictEqual(pipe(str, String.toLocaleLowerCase("tr")), "i")

Signature

declare const toLocaleLowerCase: (locale?: string | Array<string>) => (self: string) => string

Source

Since v2.0.0