Hyperlinkv0.8.0-beta.28

String

String.toLocaleLowerCaseconsteffect/String.ts:871
(locale?: string | Array<string>): (self: string) => string

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")
transforming
Source effect/String.ts:8712 lines
export const toLocaleLowerCase = (locale?: string | Array<string>) => (self: string): string =>
  self.toLocaleLowerCase(locale)