setLang
Selects which dictionary `t` resolves.
Table of contents
Category
Value
Import
jsimport { setLang } from "valyrian.js/translate";Public signature
ts(newLang: string): voidParameters
tsnewLang: stringResult
tsvoidObservable effects
Changes the active translation language through the configured storage strategy.
Errors
Throws when the requested language has no configured dictionary.