MCPcopy Create free account
hub / github.com/MicrosoftEdge/WebView2Samples / ChangeLanguage

Method ChangeLanguage

SampleApps/WebView2APISample/AppWindow.cpp:1131–1141  ·  view source on GitHub ↗

Prompt the user for a new language string

Source from the content-addressed store, hash-verified

1129
1130// Prompt the user for a new language string
1131void AppWindow::ChangeLanguage()
1132{
1133 TextInputDialog dialog(
1134 GetMainWindow(), L"Language", L"Language:",
1135 L"Enter a language to use for WebView, or leave blank to restore default.",
1136 m_language.empty() ? L"zh-cn" : m_language.c_str());
1137 if (dialog.confirmed)
1138 {
1139 m_language = (dialog.input);
1140 }
1141}
1142
1143// Toggle AAD SSO enabled
1144void AppWindow::ToggleAADSSO()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected