MASA.Blazor icon indicating copy to clipboard operation
MASA.Blazor copied to clipboard

InvariantGlobalization模式下屏蔽I18n设置CultureInfo功能

Open cqgis opened this issue 2 years ago • 2 comments

因为某种原因,需要在 <InvariantGlobalization>true</InvariantGlobalization> 模式下发布程序,这要求不能使用设置当前语言的功能。 目前版本下,在I18n构造函数中调用了相关方法,导致不能正确初始化,能否考虑将I18n构造函数中的代码移到单独的方法中,并将其标注为virtual,这样在不需要的时候,可以通过继续子类,对相关功能进行屏蔽。

受影响的方法还有 AddLocale()、 SetCulture() 希望都能标注为virtual

cqgis avatar Feb 03 '23 08:02 cqgis

Hello @cqgis. We like your proposal/feedback and would appreciate a contribution via a Pull Request by you or another community member. We thank you in advance for your contribution and are looking forward to reviewing it!

你好 @cqgis。我们喜欢您的建议/反馈,并希望通过您或其他社区成员的Pull Request做出贡献。我们预先感谢您的贡献,并期待着对其进行审查!

thanks

github-actions[bot] avatar Feb 03 '23 08:02 github-actions[bot]

@cqgis 感谢你的反馈。我们目前没有计划这样做,但长期规划里有将依赖逐渐拆分出去的打算。所以我们创建了个新的repo:https://github.com/BlazorComponent/MASA.Blazor.Extensions 如果等待我们重构,这可能需要一些时间,如果你对此感兴趣,你也可以给我们pr。

doddgu avatar Feb 03 '23 08:02 doddgu

多谢关注,没计划

capdiem avatar Jun 05 '24 02:06 capdiem