Skip to content

Commit

Permalink
misc: revert selectedLanguage change
Browse files Browse the repository at this point in the history
  • Loading branch information
jjyao88 committed Jul 18, 2024
1 parent 7aede3b commit ffd6c9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gamemode/modules/language/sh_language.lua
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
local rp_languages = {}
local selectedLanguage = "en" -- Switch language by setting gmod_language to another language
local selectedLanguage = GetConVar("gmod_language"):GetString() -- Switch language by setting gmod_language to another language

cvars.AddChangeCallback("gmod_language", function(cv, old, new)
selectedLanguage = new
Expand Down

0 comments on commit ffd6c9a

Please sign in to comment.