Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/freshlate/freshlate/translation.ts>LanguageService#t

A translation plugin for Deno Fresh
Latest
method LanguageService.prototype.t
import { LanguageService } from "https://deno.land/x/freshlate@0.4.1/freshlate/translation.ts";

Translates a key to a specific language, replacing substrings with necessary values as needed

Parameters

key: string

The key to translate/use

optional
opts: Record<string, unknown> = [UNSUPPORTED]

Options for the translation (lang, data, etc.)