我添加了新的 Rosource 文件 UserNotification.resx。然后我添加了两个本地化文件,分别命名为 UserNotification.hr-HR.resx 和 UserNotification.sl-SI.resx。(关注线程:如何在 C# 中使用本地化)
然后我将 Windows 语言更改为“si”。如果我使用System.Globalization.CultureInfo.CurrentCulture.ToString()
输出 si sl-SI打印当前文化
但是,我总是从 UserNotification.resx 中得到一个字符串。Seams 无法识别本地化资源文件。