effect-io-ai

Package: effect
Module: String

String.toLocaleUpperCase

Converts the string to uppercase according to the specified locale.

Example (Uppercasing strings by locale)

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

const str = "i\u0307"
assert.deepStrictEqual(pipe(str, String.toLocaleUpperCase("lt-LT")), "I")

Signature

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

Source

Since v2.0.0