Replace docstring for signatures like AbstractMatrix{<:Real}

I would like to replace doc strings for i18n purpose. GitHub - Roger-luo/Localize.jl: Utils for localization of Julia documents

However, the replace! function I used works for most of the functions, but I cannot replace signatures like

sin(AbstractMatrix{<:Real})

I found that this is because the doc system use IdDict, and a new defined AbstractMatrix{<:Real} does not have the same objectid comparing to the original. This make me fail to find the original doctoring and replace it, any suggestions on how to make this work?