import { LocaleService } from "https://deno.land/x/sptaki@1.2.0/services/mod.ts";
Handles getting locales from config or users machine
Constructors
Properties
protected
configServer: ConfigServerprotected
databaseServer: DatabaseServerprotected
localeConfig: ILocaleConfigprotected
logger: ILoggerMethods
protected
getPlatformForClientLocale(): stringGet the locale of the computer running the server
protected
getPlatformForServerLocale(): stringGet the full locale of the computer running the server lowercased e.g. en-gb / pt-pt
getDesiredGameLocale(): string
Gets the game locale key from the locale.json file, if value is 'system' get system locale
getDesiredServerLocale(): string
Gets the game locale key from the locale.json file, if value is 'system' get system locale
getLocaleDb(): Record<string, string>
Get the eft globals db file based on the configured locale in config/locale.json, if not found, fall back to 'en'
getLocaleFallbacks(): { [locale: string]: string; }
Get array of languages supported for localisation
getServerSupportedLocales(): string[]
Get array of languages supported for localisation