function ChatLocalization.tryLocalize(V,g)if existingKey[g]then return V:Get(existingKey[g],g)end for j,O in pairs(existingKey)do if string.find(g,j)then local f=V:Get(O,j)return string.gsub(g,j,f,1)end end return g end return ChatLocalization
-- try localize whole/part of string
-- no more-than-1 replacement for current existing keys.
function ChatLocalization:tryLocalize(rawString)
	if existingKey[rawString] then
		return self:Get(existingKey[rawString], rawString)
	end
	for enString, localizationKey in pairs(existingKey) do
		if string.find(rawString, enString) then
			local localizedPart = self:Get(localizationKey, enString)
			return string.gsub(rawString, enString, localizedPart, 1)
		end
	end
	return rawString
end

return ChatLocalization
