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

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

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

Returns the value for a specific language and key

Parameters

lang_code: string

The language code to use

key: string

The key to translate/use

Returns

string

The value of the translation/localisation key if it exists