feat: add app.getSystemLocale() method (#35697)
* feat: add app.getSystemLocale() method * Update shell/browser/electron_browser_main_parts.cc Co-authored-by: Charles Kerr <charles@charleskerr.com> * Change methods to be const * Apply PR feedback * Fix mac compile * Add missing scope * Apply style changes * Change note * Add braces to get the comment indentation right * Change to static * Apply PR feedback * Fix the documentation * Remove extraneous file Co-authored-by: Charles Kerr <charles@charleskerr.com>
This commit is contained in:
parent
626e248dea
commit
8a0b4fa338
11 changed files with 69 additions and 6 deletions
|
@ -293,6 +293,14 @@ HidPolicyAllowedDevices* BrowserProcessImpl::hid_policy_allowed_devices() {
|
|||
return nullptr;
|
||||
}
|
||||
|
||||
void BrowserProcessImpl::SetSystemLocale(const std::string& locale) {
|
||||
system_locale_ = locale;
|
||||
}
|
||||
|
||||
const std::string& BrowserProcessImpl::GetSystemLocale() const {
|
||||
return system_locale_;
|
||||
}
|
||||
|
||||
void BrowserProcessImpl::SetApplicationLocale(const std::string& locale) {
|
||||
locale_ = locale;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue