Browse documentation

setTranslations

Configures the application's translation dictionaries.

Table of contents

Category

Value

Import

js
import { setTranslations } from "valyrian.js/translate";

Public signature

ts
(defaultTranslation: Record<string, any>, newTranslations?: Record<string, Record<string, any>>): void

Parameters

ts
defaultTranslation: Record<string, any>, newTranslations?: Record<string, Record<string, any>>

Result

ts
void

Observable effects

Replaces the default dictionary and updates dictionaries for additional languages.