May 20, 2020 11:48 PM|PaulTheSmith|LINK
It looks like you are trying to re-invent the localization wheel. I'm not a razor person but https://www.mikesdotnetting.com/article/346/using-resource-files-in-razor-pages-localisation seems like a good introduction to the topic. For good measure the
author is a moderator on these forums https://forums.asp.net/members/Mikesdotnetting.aspx so help is not too far away.