Hyperlinkv0.8.0-beta.28

String

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

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