Skip to content
On this page

getTranslatedProperty ​

Definition ​

Get translated property from the given object.

Signature ​

ts
export function getTranslatedProperty<T>(
  element: T | undefined | null | never,
  property: keyof T,
): string 

Parameters ​

NameTypeDescription
element
T | undefined |  | never
object with translated property
property
keyof T

Return type ​

ts
string
getTranslatedProperty has loaded