Skip to main content
The Deno 2 Release Candidate is here
Learn more
method LocalisationService.prototype.getRandomTextThatMatchesPartialKey
import { LocalisationService } from "https://deno.land/x/sptaki@1.2.0/services/LocalisationService.d.ts";

From the provided partial key, find all keys that start with text and choose a random match

Parameters

partialKey: string

Key to match locale keys on

Returns

string

locale text