Appearance
@swapped/connect-sdk / core / translate
Function: translate()
translate(
key,params?,fallback?):string
Defined in: src/locales/translate.ts:43
Resolve a catalog key against the custom translator, the active locale catalog, then bundled English.
When fallback is set and the active locale has no catalog entry, the fallback wins over English. That keeps server-supplied / more-specific English copy when the locale is en, and lets a loaded translation win once setLocale / preloadLocales finishes.
Parameters
key
string
params?
fallback?
string
Returns
string