(locale?: string | Array<string>): (self: string) => stringConverts 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 const toLocaleLowerCase: (
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")
toLocaleLowerCase = (locale: string | string[] | undefinedlocale?: string | interface Array<T>Array<string>) => (self: stringself: string): string =>
self: stringself.String.toLocaleLowerCase(locales?: Intl.LocalesArgument): string (+1 overload)Converts all alphabetic characters to lowercase, taking into account the host environment's current locale.
toLocaleLowerCase(locale: string | string[] | undefinedlocale)