# SiLocaleId Service documentation

**Kind:** class

```
import { SiLocaleId } from '@siemens/element-ng/localization';
```

The SiLocaleId is used to provide a locale id from the translate service to the angular localization. The Angular services call toString or valueOf so that the current locale of the translation service is provided. The Intl. library does not invoke toString() and using the value directly in Intl formatting results always having the `en` locale. Thus, when using the SiLocaleId in other services, make sure to use the `toString()` method before.

```
undecorated_class SiLocaleId extends String
```

#### Attributes and Methods

##### \[Symbol.iterator\]

**Modifiers:** inherited

Iterator

```
[Symbol.iterator](): StringIterator<string>
```

**Returns:** `StringIterator``<`[string](<https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String>)`>`

##### anchor

**Modifiers:** inherited, deprecated

Returns an `<a>` HTML anchor element and sets the name attribute to the text value

Deprecated: A legacy feature for browser compatibility

```
anchor(name: string): string
```

#### Parameters

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| name | `string` |  |  |

**Returns:** [string](<https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String>)

##### at

**Modifiers:** inherited

Returns a new String consisting of the single UTF-16 code unit located at the specified index.

```
at(index: number): string | undefined
```

#### Parameters

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| index | `number` |  | The zero-based index of the desired code unit. A negative index will count back from the last item. |

**Returns:** [string](<https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String>)`  |  `[undefined](<https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/undefined>)

##### big

**Modifiers:** inherited, deprecated

Returns a `<big>` HTML element

Deprecated: A legacy feature for browser compatibility

```
big(): string
```

**Returns:** [string](<https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String>)

##### blink

**Modifiers:** inherited, deprecated

Returns a `<blink>` HTML element

Deprecated: A legacy feature for browser compatibility

```
blink(): string
```

**Returns:** [string](<https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String>)

##### bold

**Modifiers:** inherited, deprecated

Returns a `<b>` HTML element

Deprecated: A legacy feature for browser compatibility

```
bold(): string
```

**Returns:** [string](<https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String>)

##### charAt

**Modifiers:** inherited

Returns the character at the specified index.

Inherited from [String](<https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String>)

```
charAt(pos: number): string
```

#### Parameters

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| pos | `number` |  | The zero-based index of the desired character. |

**Returns:** [string](<https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String>)

##### charCodeAt

**Modifiers:** inherited

Returns the Unicode value of the character at the specified location.

Inherited from [String](<https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String>)

```
charCodeAt(index: number): number
```

#### Parameters

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| index | `number` |  | The zero-based index of the desired character. If there is no character at the specified index, NaN is returned. |

**Returns:** [number](<https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number>)

##### codePointAt

**Modifiers:** inherited

Returns a nonnegative integer Number less than 1114112 (0x110000) that is the code point value of the UTF-16 encoded code point starting at the string element at position pos in the String resulting from converting this object to a String. If there is no element at that position, the result is undefined. If a valid UTF-16 surrogate pair does not begin at pos, the result is the code unit at pos.

```
codePointAt(pos: number): number | undefined
```

#### Parameters

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| pos | `number` |  |  |

**Returns:** [number](<https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number>)`  |  `[undefined](<https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/undefined>)

##### concat

**Modifiers:** inherited

Returns a string that contains the concatenation of two or more strings.

Inherited from [String](<https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String>)

```
concat(...strings: string[]): string
```

#### Parameters

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| strings (rest) | `string[]` |  | The strings to append to the end of the string. |

**Returns:** [string](<https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String>)

##### endsWith

**Modifiers:** inherited

Returns true if the sequence of elements of searchString converted to a String is the same as the corresponding elements of this object (converted to a String) starting at endPosition – length(this). Otherwise returns false.

```
endsWith(searchString: string, endPosition?: number): boolean
```

#### Parameters

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| searchString | `string` |  |  |
| endPosition (optional) | `number` |  |  |

**Returns:** [boolean](<https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean>)

##### fixed

**Modifiers:** inherited, deprecated

Returns a `<tt>` HTML element

Deprecated: A legacy feature for browser compatibility

```
fixed(): string
```

**Returns:** [string](<https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String>)

##### fontcolor

**Modifiers:** inherited, deprecated

Returns a `<font>` HTML element and sets the color attribute value

Deprecated: A legacy feature for browser compatibility

```
fontcolor(color: string): string
```

#### Parameters

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| color | `string` |  |  |

**Returns:** [string](<https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String>)

##### fontsize

**Modifiers:** inherited, deprecated

Returns a `<font>` HTML element and sets the size attribute value

Deprecated: A legacy feature for browser compatibility

```
fontsize(size: number): string
```

#### Parameters

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| size | `number` |  |  |

**Returns:** [string](<https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String>)

```
fontsize(size: string): string
```

#### Parameters

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| size | `string` |  |  |

**Returns:** [string](<https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String>)

##### fromCharCode

**Modifiers:** inherited

```
fromCharCode(...codes: number[]): string
```

#### Parameters

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| codes (rest) | `number[]` |  |  |

**Returns:** [string](<https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String>)

##### fromCharCode

**Modifiers:** static, inherited

```
fromCharCode(...codes: number[]): string
```

#### Parameters

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| codes (rest) | `number[]` |  |  |

**Returns:** [string](<https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String>)

##### fromCodePoint

**Modifiers:** inherited

Return the String value whose elements are, in order, the elements in the List elements. If length is 0, the empty string is returned.

```
fromCodePoint(...codePoints: number[]): string
```

#### Parameters

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| codePoints (rest) | `number[]` |  |  |

**Returns:** [string](<https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String>)

##### fromCodePoint

**Modifiers:** static, inherited

Return the String value whose elements are, in order, the elements in the List elements. If length is 0, the empty string is returned.

```
fromCodePoint(...codePoints: number[]): string
```

#### Parameters

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| codePoints (rest) | `number[]` |  |  |

**Returns:** [string](<https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String>)

##### includes

**Modifiers:** inherited

Returns true if searchString appears as a substring of the result of converting this object to a String, at one or more positions that are greater than or equal to position; otherwise, returns false.

```
includes(searchString: string, position?: number): boolean
```

#### Parameters

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| searchString | `string` |  | search string |
| position (optional) | `number` |  | If position is undefined, 0 is assumed, so as to search all of the String. |

**Returns:** [boolean](<https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean>)

##### indexOf

**Modifiers:** inherited

Returns the position of the first occurrence of a substring, or -1 if it is not present.

Inherited from [String](<https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String>)

```
indexOf(searchString: string, position?: number): number
```

#### Parameters

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| searchString | `string` |  | The substring to search for in the string |
| position (optional) | `number` |  | The index at which to begin searching the String object. If omitted, search starts at the beginning of the string. |

**Returns:** [number](<https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number>)

##### isWellFormed

**Modifiers:** inherited

Returns true if all leading surrogates and trailing surrogates appear paired and in order.

```
isWellFormed(): boolean
```

**Returns:** [boolean](<https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean>)

##### italics

**Modifiers:** inherited, deprecated

Returns an `<i>` HTML element

Deprecated: A legacy feature for browser compatibility

```
italics(): string
```

**Returns:** [string](<https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String>)

##### lastIndexOf

**Modifiers:** inherited

Returns the last occurrence of a substring in the string, or -1 if it is not present.

Inherited from [String](<https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String>)

```
lastIndexOf(searchString: string, position?: number): number
```

#### Parameters

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| searchString | `string` |  | The substring to search for. |
| position (optional) | `number` |  | The index at which to begin searching. If omitted, the search begins at the end of the string. |

**Returns:** [number](<https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number>)

##### length

**Modifiers:** readonly, inherited

**Type:** `number`

Returns the length of a String object.

Inherited from [String](<https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String>)

##### link

**Modifiers:** inherited, deprecated

Returns an `<a>` HTML element and sets the href attribute value

Deprecated: A legacy feature for browser compatibility

```
link(url: string): string
```

#### Parameters

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| url | `string` |  |  |

**Returns:** [string](<https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String>)

##### localeCompare

**Modifiers:** inherited

Determines whether two strings are equivalent in the current locale.

Inherited from [String](<https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String>)

```
localeCompare(that: string): number
```

#### Parameters

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| that | `string` |  | String to compare to target string |

**Returns:** [number](<https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number>)

```
localeCompare(that: string, locales?: string | string[], options?: Intl.CollatorOptions): number
```

Determines whether two strings are equivalent in the current or specified locale.

#### Parameters

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| that | `string` |  | String to compare to target string |
| locales (optional) | `string \| string[]` |  | A locale string or array of locale strings that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used. This parameter must conform to BCP 47 standards; see the Intl.Collator object for details. |
| options (optional) | `Intl.CollatorOptions` |  | An object that contains one or more properties that specify comparison options. see the Intl.Collator object for details. |

**Returns:** [number](<https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number>)

```
localeCompare(that: string, locales?: Intl.LocalesArgument, options?: Intl.CollatorOptions): number
```

Determines whether two strings are equivalent in the current or specified locale.

#### Parameters

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| that | `string` |  | String to compare to target string |
| locales (optional) | `Intl.LocalesArgument` |  | A locale string or array of locale strings that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used. This parameter must conform to BCP 47 standards; see the Intl.Collator object for details. |
| options (optional) | `Intl.CollatorOptions` |  | An object that contains one or more properties that specify comparison options. see the Intl.Collator object for details. |

**Returns:** [number](<https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number>)

##### match

**Modifiers:** inherited

Matches a string with a regular expression, and returns an array containing the results of that search.

Inherited from [String](<https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String>)

```
match(regexp: string | RegExp): RegExpMatchArray | null
```

#### Parameters

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| regexp | `string \| RegExp` |  | A variable name or string literal containing the regular expression pattern and flags. |

**Returns:** `RegExpMatchArray``  |  `[null](<https://developer.mozilla.org/docs/Web/JavaScript/Reference/Operators/null>)

```
match(matcher: { [Symbol.match](string: string): RegExpMatchArray | null; }): RegExpMatchArray | null
```

Matches a string or an object that supports being matched against, and returns an array containing the results of that search, or null if no matches are found.

#### Parameters

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| matcher | `{ [Symbol.match](string: string): RegExpMatchArray \| null; }` |  | An object that supports being matched against. |

**Returns:** `RegExpMatchArray``  |  `[null](<https://developer.mozilla.org/docs/Web/JavaScript/Reference/Operators/null>)

##### matchAll

**Modifiers:** inherited

Matches a string with a regular expression, and returns an iterable of matches containing the results of that search.

```
matchAll(regexp: RegExp): RegExpStringIterator<RegExpExecArray>
```

#### Parameters

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| regexp | `RegExp` |  | A regular expression |

**Returns:** `RegExpStringIterator``<``RegExpExecArray``>`

##### normalize

**Modifiers:** inherited

Returns the String value result of normalizing the string into the normalization form named by form as specified in Unicode Standard Annex \#15, Unicode Normalization Forms.

```
normalize(form: "NFC" | "NFD" | "NFKC" | "NFKD"): string
```

#### Parameters

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| form | `"NFC" \| "NFD" \| "NFKC" \| "NFKD"` |  | Applicable values: "NFC", "NFD", "NFKC", or "NFKD", If not specified default is "NFC" |

**Returns:** [string](<https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String>)

```
normalize(form?: string): string
```

#### Parameters

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| form (optional) | `string` |  | Applicable values: "NFC", "NFD", "NFKC", or "NFKD", If not specified default is "NFC" |

**Returns:** [string](<https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String>)

##### padEnd

**Modifiers:** inherited

Pads the current string with a given string (possibly repeated) so that the resulting string reaches a given length. The padding is applied from the end (right) of the current string.

```
padEnd(maxLength: number, fillString?: string): string
```

#### Parameters

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| maxLength | `number` |  | The length of the resulting string once the current string has been padded. If this parameter is smaller than the current string's length, the current string will be returned as it is. |
| fillString (optional) | `string` |  | The string to pad the current string with. If this string is too long, it will be truncated and the left-most part will be applied. The default value for this parameter is " " (U+0020). |

**Returns:** [string](<https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String>)

##### padStart

**Modifiers:** inherited

Pads the current string with a given string (possibly repeated) so that the resulting string reaches a given length. The padding is applied from the start (left) of the current string.

```
padStart(maxLength: number, fillString?: string): string
```

#### Parameters

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| maxLength | `number` |  | The length of the resulting string once the current string has been padded. If this parameter is smaller than the current string's length, the current string will be returned as it is. |
| fillString (optional) | `string` |  | The string to pad the current string with. If this string is too long, it will be truncated and the left-most part will be applied. The default value for this parameter is " " (U+0020). |

**Returns:** [string](<https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String>)

##### raw

**Modifiers:** inherited

String.raw is usually used as a tag function of a Tagged Template String. When called as such, the first argument will be a well formed template call site object and the rest parameter will contain the substitution values. It can also be called directly, for example, to interleave strings and values from your own tag function, and in this case the only thing it needs from the first argument is the raw property.

```
raw(template: { raw: readonly string[] | ArrayLike<string>; }, ...substitutions: any[]): string
```

#### Parameters

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| template | `{ raw: readonly string[] \| ArrayLike<string>; }` |  | A well-formed template string call site representation. |
| substitutions (rest) | `any[]` |  | A set of substitution values. |

**Returns:** [string](<https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String>)

##### raw

**Modifiers:** static, inherited

String.raw is usually used as a tag function of a Tagged Template String. When called as such, the first argument will be a well formed template call site object and the rest parameter will contain the substitution values. It can also be called directly, for example, to interleave strings and values from your own tag function, and in this case the only thing it needs from the first argument is the raw property.

```
raw(template: { raw: readonly string[] | ArrayLike<string>; }, ...substitutions: any[]): string
```

#### Parameters

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| template | `{ raw: readonly string[] \| ArrayLike<string>; }` |  | A well-formed template string call site representation. |
| substitutions (rest) | `any[]` |  | A set of substitution values. |

**Returns:** [string](<https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String>)

##### repeat

**Modifiers:** inherited

Returns a String value that is made from count copies appended together. If count is 0, the empty string is returned.

```
repeat(count: number): string
```

#### Parameters

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| count | `number` |  | number of copies to append |

**Returns:** [string](<https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String>)

##### replace

**Modifiers:** inherited

Replaces text in a string, using a regular expression or search string.

Inherited from [String](<https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String>)

```
replace(searchValue: string | RegExp, replaceValue: string): string
```

#### Parameters

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| searchValue | `string \| RegExp` |  | A string or regular expression to search for. |
| replaceValue | `string` |  | A string containing the text to replace. When the [searchValue](<index.html#SiLocaleId.replace.signature-1.searchValue>) is a `RegExp`, all matches are replaced if the `g` flag is set (or only those matches at the beginning, if the `y` flag is also present). Otherwise, only the first match of [searchValue](<index.html#SiLocaleId.replace.signature-1.searchValue>) is replaced. |

**Returns:** [string](<https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String>)

```
replace(searchValue: string | RegExp, replacer: (substring: string, ...args: any[]) => string): string
```

#### Parameters

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| searchValue | `string \| RegExp` |  | A string to search for. |
| replacer | `(substring: string, ...args: any[]) => string` |  | A function that returns the replacement text. |

**Returns:** [string](<https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String>)

```
replace(searchValue: { [Symbol.replace](string: string, replaceValue: string): string; }, replaceValue: string): string
```

Passes a string and [replaceValue](<index.html#SiLocaleId.replace.signature-3.replaceValue>) to the `[Symbol.replace]` method on [searchValue](<index.html#SiLocaleId.replace.signature-3.searchValue>). This method is expected to implement its own replacement algorithm.

#### Parameters

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| searchValue | `{ [Symbol.replace](string: string, replaceValue: string): string; }` |  | An object that supports searching for and replacing matches within a string. |
| replaceValue | `string` |  | The replacement text. |

**Returns:** [string](<https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String>)

```
replace(searchValue: { [Symbol.replace](string: string, replacer: (substring: string, ...args: any[]) => string): string; }, replacer: (substring: string, ...args: any[]) => string): string
```

Replaces text in a string, using an object that supports replacement within a string.

#### Parameters

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| searchValue | `{ [Symbol.replace](string: string, replacer: (substring: string, ...args: any[]) => string): string; }` |  | A object can search for and replace matches within a string. |
| replacer | `(substring: string, ...args: any[]) => string` |  | A function that returns the replacement text. |

**Returns:** [string](<https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String>)

##### replaceAll

**Modifiers:** inherited

Replace all instances of a substring in a string, using a regular expression or search string.

```
replaceAll(searchValue: string | RegExp, replaceValue: string): string
```

#### Parameters

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| searchValue | `string \| RegExp` |  | A string to search for. |
| replaceValue | `string` |  | A string containing the text to replace for every successful match of searchValue in this string. |

**Returns:** [string](<https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String>)

```
replaceAll(searchValue: string | RegExp, replacer: (substring: string, ...args: any[]) => string): string
```

#### Parameters

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| searchValue | `string \| RegExp` |  | A string to search for. |
| replacer | `(substring: string, ...args: any[]) => string` |  | A function that returns the replacement text. |

**Returns:** [string](<https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String>)

##### search

**Modifiers:** inherited

Finds the first substring match in a regular expression search.

Inherited from [String](<https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String>)

```
search(regexp: string | RegExp): number
```

#### Parameters

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| regexp | `string \| RegExp` |  | The regular expression pattern and applicable flags. |

**Returns:** [number](<https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number>)

```
search(searcher: { [Symbol.search](string: string): number; }): number
```

#### Parameters

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| searcher | `{ [Symbol.search](string: string): number; }` |  | An object which supports searching within a string. |

**Returns:** [number](<https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number>)

##### slice

**Modifiers:** inherited

Returns a section of a string.

Inherited from [String](<https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String>)

```
slice(start?: number, end?: number): string
```

#### Parameters

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| start (optional) | `number` |  | The index to the beginning of the specified portion of stringObj. |
| end (optional) | `number` |  | The index to the end of the specified portion of stringObj. The substring includes the characters up to, but not including, the character indicated by end. If this value is not specified, the substring continues to the end of stringObj. |

**Returns:** [string](<https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String>)

##### small

**Modifiers:** inherited, deprecated

Returns a `<small>` HTML element

Deprecated: A legacy feature for browser compatibility

```
small(): string
```

**Returns:** [string](<https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String>)

##### split

**Modifiers:** inherited

Split a string into substrings using the specified separator and return them as an array.

Inherited from [String](<https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String>)

```
split(separator: string | RegExp, limit?: number): string[]
```

#### Parameters

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| separator | `string \| RegExp` |  | A string that identifies character or characters to use in separating the string. If omitted, a single-element array containing the entire string is returned. |
| limit (optional) | `number` |  | A value used to limit the number of elements returned in the array. |

**Returns:** [string](<https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String>)`[]`

```
split(splitter: { [Symbol.split](string: string, limit?: number): string[]; }, limit?: number): string[]
```

#### Parameters

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| splitter | `{ [Symbol.split](string: string, limit?: number): string[]; }` |  | An object that can split a string. |
| limit (optional) | `number` |  | A value used to limit the number of elements returned in the array. |

**Returns:** [string](<https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String>)`[]`

##### startsWith

**Modifiers:** inherited

Returns true if the sequence of elements of searchString converted to a String is the same as the corresponding elements of this object (converted to a String) starting at position. Otherwise returns false.

```
startsWith(searchString: string, position?: number): boolean
```

#### Parameters

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| searchString | `string` |  |  |
| position (optional) | `number` |  |  |

**Returns:** [boolean](<https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean>)

##### strike

**Modifiers:** inherited, deprecated

Returns a `<strike>` HTML element

Deprecated: A legacy feature for browser compatibility

```
strike(): string
```

**Returns:** [string](<https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String>)

##### sub

**Modifiers:** inherited, deprecated

Returns a `<sub>` HTML element

Deprecated: A legacy feature for browser compatibility

```
sub(): string
```

**Returns:** [string](<https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String>)

##### substr

**Modifiers:** inherited, deprecated

Gets a substring beginning at the specified location and having the specified length.

Deprecated: A legacy feature for browser compatibility

Inherited from [String](<https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String>)

```
substr(from: number, length?: number): string
```

#### Parameters

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| from | `number` |  | The starting position of the desired substring. The index of the first character in the string is zero. |
| length (optional) | `number` |  | The number of characters to include in the returned substring. |

**Returns:** [string](<https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String>)

##### substring

**Modifiers:** inherited

Returns the substring at the specified location within a String object.

Inherited from [String](<https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String>)

```
substring(start: number, end?: number): string
```

#### Parameters

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| start | `number` |  | The zero-based index number indicating the beginning of the substring. |
| end (optional) | `number` |  | Zero-based index number indicating the end of the substring. The substring includes the characters up to, but not including, the character indicated by end. If end is omitted, the characters from start through the end of the original string are returned. |

**Returns:** [string](<https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String>)

##### sup

**Modifiers:** inherited, deprecated

Returns a `<sup>` HTML element

Deprecated: A legacy feature for browser compatibility

```
sup(): string
```

**Returns:** [string](<https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String>)

##### toLocaleLowerCase

**Modifiers:** inherited

Converts all alphabetic characters to lowercase, taking into account the host environment's current locale.

Inherited from [String](<https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String>)

```
toLocaleLowerCase(locales?: string | string[]): string
```

#### Parameters

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| locales (optional) | `string \| string[]` |  |  |

**Returns:** [string](<https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String>)

```
toLocaleLowerCase(locales?: Intl.LocalesArgument): string
```

#### Parameters

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| locales (optional) | `Intl.LocalesArgument` |  |  |

**Returns:** [string](<https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String>)

##### toLocaleUpperCase

**Modifiers:** inherited

Returns a string where all alphabetic characters have been converted to uppercase, taking into account the host environment's current locale.

Inherited from [String](<https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String>)

```
toLocaleUpperCase(locales?: string | string[]): string
```

#### Parameters

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| locales (optional) | `string \| string[]` |  |  |

**Returns:** [string](<https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String>)

```
toLocaleUpperCase(locales?: Intl.LocalesArgument): string
```

#### Parameters

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| locales (optional) | `Intl.LocalesArgument` |  |  |

**Returns:** [string](<https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String>)

##### toLowerCase

[Source for toLowerCase](<https://github.com/siemens/element/blob/main/projects/element-ng/localization/si-locale-id.ts#L38-L40>)

Converts all the alphabetic characters in a string to lowercase.

Inherited from [String](<https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String>)

```
toLowerCase(): string
```

**Returns:** [string](<https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String>)

##### toString

[Source for toString](<https://github.com/siemens/element/blob/main/projects/element-ng/localization/si-locale-id.ts#L30-L32>)

Outputs the locale id as a string.

Inherited from [String](<https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String>)

```
toString(): string
```

**Returns:** [string](<https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String>)

##### toUpperCase

**Modifiers:** inherited

Converts all the alphabetic characters in a string to uppercase.

Inherited from [String](<https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String>)

```
toUpperCase(): string
```

**Returns:** [string](<https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String>)

##### toWellFormed

**Modifiers:** inherited

Returns a string where all lone or out-of-order surrogates have been replaced by the Unicode replacement character (U+FFFD).

```
toWellFormed(): string
```

**Returns:** [string](<https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String>)

##### trim

**Modifiers:** inherited

Removes the leading and trailing white space and line terminator characters from a string.

Inherited from [String](<https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String>)

```
trim(): string
```

**Returns:** [string](<https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String>)

##### trimEnd

**Modifiers:** inherited

Removes the trailing white space and line terminator characters from a string.

```
trimEnd(): string
```

**Returns:** [string](<https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String>)

##### trimLeft

**Modifiers:** inherited, deprecated

Removes the leading white space and line terminator characters from a string.

Deprecated: A legacy feature for browser compatibility. Use `trimStart` instead

```
trimLeft(): string
```

**Returns:** [string](<https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String>)

##### trimRight

**Modifiers:** inherited, deprecated

Removes the trailing white space and line terminator characters from a string.

Deprecated: A legacy feature for browser compatibility. Use `trimEnd` instead

```
trimRight(): string
```

**Returns:** [string](<https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String>)

##### trimStart

**Modifiers:** inherited

Removes the leading white space and line terminator characters from a string.

```
trimStart(): string
```

**Returns:** [string](<https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String>)

##### valueOf

[Source for valueOf](<https://github.com/siemens/element/blob/main/projects/element-ng/localization/si-locale-id.ts#L34-L36>)

Returns the primitive value of the specified object.

Inherited from [String](<https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String>)

```
valueOf(): string
```

**Returns:** [string](<https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String>)
