If you are using OpenRDX, there is the following function :
local spellid = RDXSS.GetSpellIdByLocalName(name);
name is the local client localization of the spell, "Regen" in french (renew us).
That also mean we are storing all spell in a local database.