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