alt.getLocale

This will return the letter representation of the locale used by the client.

ie. en, de, fr

Returns a string;

Declaration

alt.getLocale(): string

Usage

const result = alt.getLocale();

Real World Example

const result = alt.getLocale();
console.log(result);

These examples assume you have imported alt from alt-client.

results matching ""

    No results matching ""