import { LocalisationService } from "https://deno.land/x/sptaki@1.2.0/services/LocalisationService.d.ts";
Handles translating server text into different langauges
Constructors
Properties
protected
databaseServer: DatabaseServerprotected
i18n: I18nprotected
localeService: LocaleServiceprotected
logger: ILoggerprotected
randomUtil: RandomUtilMethods
getKeys(): string[]
Get all locale keys
getRandomTextThatMatchesPartialKey(partialKey: string): string
From the provided partial key, find all keys that start with text and choose a random match
getText(key: string, args?: any): string
Get a localised value using the passed in key