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

Get the locale of the computer running the server

Returns

string

langage part of locale e.g. 'en' part of 'en-US'