SiLocaleId Service documentation¶
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.
Attributes and Methods¶
| Name | Type | Description |
|---|---|---|
| [Symbol.iterator]()inherited ¶ | () => StringIterator<string> | Iterator |
| anchor()inheriteddeprecated ¶ | Returns an Deprecated: A legacy feature for browser compatibility | |
| at()inherited ¶ | Returns a new String consisting of the single UTF-16 code unit located at the specified index. | |
| big()inheriteddeprecated ¶ | () => string | Returns a Deprecated: A legacy feature for browser compatibility |
| blink()inheriteddeprecated ¶ | () => string | Returns a Deprecated: A legacy feature for browser compatibility |
| bold()inheriteddeprecated ¶ | () => string | Returns a Deprecated: A legacy feature for browser compatibility |
| charAt()inherited ¶ | Returns the character at the specified index. Inherited from String | |
| charCodeAt()inherited ¶ | Returns the Unicode value of the character at the specified location. Inherited from String | |
| codePointAt()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. | |
| concat()inherited ¶ | Returns a string that contains the concatenation of two or more strings. Inherited from String | |
| endsWith()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. | |
| fixed()inheriteddeprecated ¶ | () => string | Returns a Deprecated: A legacy feature for browser compatibility |
| fontcolor()inheriteddeprecated ¶ | Returns a Deprecated: A legacy feature for browser compatibility | |
| fontsize()inheriteddeprecated ¶ | Returns a Deprecated: A legacy feature for browser compatibility | |
| fromCharCode()inherited ¶ | ||
| fromCharCode()staticinherited ¶ | ||
| fromCodePoint()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()staticinherited ¶ | Return the String value whose elements are, in order, the elements in the List elements. If length is 0, the empty string is returned. | |
| includes()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. | |
| indexOf()inherited ¶ | Returns the position of the first occurrence of a substring, or -1 if it is not present. Inherited from String | |
| isWellFormed()inherited ¶ | () => boolean | Returns true if all leading surrogates and trailing surrogates appear paired and in order. |
| italics()inheriteddeprecated ¶ | () => string | Returns an Deprecated: A legacy feature for browser compatibility |
| lastIndexOf()inherited ¶ | Returns the last occurrence of a substring in the string, or -1 if it is not present. Inherited from String | |
| (readonly) lengthinherited ¶ | number | Returns the length of a String object. Inherited from String |
| link()inheriteddeprecated ¶ | Returns an Deprecated: A legacy feature for browser compatibility | |
| localeCompare()inherited ¶ | Determines whether two strings are equivalent in the current locale. Inherited from String Determines whether two strings are equivalent in the current or specified locale. Parameters
Determines whether two strings are equivalent in the current or specified locale. Parameters
| |
| match()inherited ¶ | Matches a string with a regular expression, and returns an array containing the results of that search. Inherited from String 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. | |
| matchAll()inherited ¶ | (regexp: RegExp) => RegExpStringIterator<RegExpExecArray> | Matches a string with a regular expression, and returns an iterable of matches containing the results of that search. |
| normalize()inherited ¶ | (form: "NFC" | "NFD" | "NFKC" | "NFKD") => string | 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. Parameters
|
| padEnd()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. Parameters
| |
| padStart()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. Parameters
| |
| raw()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()staticinherited ¶ | 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. | |
| repeat()inherited ¶ | Returns a String value that is made from count copies appended together. If count is 0, the empty string is returned. | |
| replace()inherited ¶ | Replaces text in a string, using a regular expression or search string. Inherited from String Parameters
Passes a string and replaceValue to the Replaces text in a string, using an object that supports replacement within a string. | |
| replaceAll()inherited ¶ | Replace all instances of a substring in a string, using a regular expression or search string. | |
| search()inherited ¶ | Finds the first substring match in a regular expression search. Inherited from String | |
| slice()inherited ¶ | Returns a section of a string. Inherited from String Parameters
| |
| small()inheriteddeprecated ¶ | () => string | Returns a Deprecated: A legacy feature for browser compatibility |
| split()inherited ¶ | Split a string into substrings using the specified separator and return them as an array. Inherited from String | |
| startsWith()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. | |
| strike()inheriteddeprecated ¶ | () => string | Returns a Deprecated: A legacy feature for browser compatibility |
| sub()inheriteddeprecated ¶ | () => string | Returns a Deprecated: A legacy feature for browser compatibility |
| substr()inheriteddeprecated ¶ | Gets a substring beginning at the specified location and having the specified length. Deprecated: A legacy feature for browser compatibility Inherited from String | |
| substring()inherited ¶ | Returns the substring at the specified location within a String object. Inherited from String Parameters
| |
| sup()inheriteddeprecated ¶ | () => string | Returns a Deprecated: A legacy feature for browser compatibility |
| toLocaleLowerCase()inherited ¶ | (locales?: Intl.LocalesArgument) => string | Converts all alphabetic characters to lowercase, taking into account the host environment's current locale. Inherited from String Parameters
|
| toLocaleUpperCase()inherited ¶ | (locales?: Intl.LocalesArgument) => string | Returns a string where all alphabetic characters have been converted to uppercase, taking into account the host environment's current locale. Inherited from String Parameters
|
| toLowerCase() ¶ | () => string | Converts all the alphabetic characters in a string to lowercase. Inherited from String |
| toString() ¶ | () => string | Outputs the locale id as a string. Inherited from String |
| toUpperCase()inherited ¶ | () => string | Converts all the alphabetic characters in a string to uppercase. Inherited from String |
| toWellFormed()inherited ¶ | () => string | Returns a string where all lone or out-of-order surrogates have been replaced by the Unicode replacement character (U+FFFD). |
| trim()inherited ¶ | () => string | Removes the leading and trailing white space and line terminator characters from a string. Inherited from String |
| trimEnd()inherited ¶ | () => string | Removes the trailing white space and line terminator characters from a string. |
| trimLeft()inheriteddeprecated ¶ | () => string | Removes the leading white space and line terminator characters from a string. Deprecated: A legacy feature for browser compatibility. Use |
| trimRight()inheriteddeprecated ¶ | () => string | Removes the trailing white space and line terminator characters from a string. Deprecated: A legacy feature for browser compatibility. Use |
| trimStart()inherited ¶ | () => string | Removes the leading white space and line terminator characters from a string. |
| valueOf() ¶ | () => string | Returns the primitive value of the specified object. Inherited from String |
Except where otherwise noted, content on this site is licensed under MIT License.