Skip to content
Discussion options

You must be logged in to vote

Demo 包括国际化示例

切换语言

btn_global.Loading = true;
if (lang.StartsWith("en")) AntdUI.Localization.Provider = new Localizer();
else AntdUI.Localization.Provider = null;
AntdUI.Localization.SetLanguage(lang);

public class Localizer : AntdUI.ILocalization
{
public string GetLocalizedString(string key)
{
switch (key)
{
case "ID":
return "en-US";
case "Cancel":
return "Cancel";
case "OK":
return "OK";
case "Now":
return "Now";
case "ToDay":
return "Today";

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Yonett
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants