Returns the translation for the key or the default value if no translation exists.
The translation key.
The default value.
Returns the translation for the key. The translation is interpolated with the given arguments.
The translation key.
The interpolation arguments.
Returns the translation for the key or the default value if no translation exists. The translation is interpolated with the given arguments.
The translation key.
The default value.
The interpolation arguments.
Returns the translation for the key or the default value if no translation exists. The translation is interpolated with the given arguments.
The translation key.
OptionaldefaultValue: string | Record<string, unknown>The default value.
Optionalargs: Record<string, unknown>The interpolation arguments.
The valid translation keys. Defaults to
stringfor loose typing, but can be set to a specific union of strings (e.g., viaNestedKeys<Schema>) to enforce strict key validation and autocompletion.