Available since Version 1.25.
This function returns the current language of the game.
Syntax
GetGameLanguage()Arguments
No arguments.
Return Values
- (string): A letter indicating what language is in use.
- E: If the game is in English.
- F: If the game is in French.
- G: If the game is in German.
- S: If the game is in Spanish.
Examples
local Language = GetGameLanguage()
if Language == "E" then
-- Do stuff if the game is English
else
-- Do other stuff if not
endNotes
This is affected by the user's game executable as well as by the Mod Launcher's -language command line argument.