I've been looking for ways of an addon to detect wether it is on the US, European or Chinese regions. One method I found was using the cvar "portal":
Code:
local region = GetCVar('portal')
if region == 'eu' then
-- do european stuff
end
Does anyone knows if this is a reliable solution or if there is some alternative?