2020-05-04 17:49:29 +00:00
|
|
|
// Copyright (c) 2020 GitHub, Inc.
|
|
|
|
// Use of this source code is governed by the MIT license that can be
|
|
|
|
// found in the LICENSE file.
|
|
|
|
|
|
|
|
#ifndef SHELL_COMMON_LANGUAGE_UTIL_H_
|
|
|
|
#define SHELL_COMMON_LANGUAGE_UTIL_H_
|
|
|
|
|
|
|
|
#include <string>
|
|
|
|
#include <vector>
|
|
|
|
|
|
|
|
#include "base/strings/string16.h"
|
|
|
|
|
|
|
|
namespace electron {
|
|
|
|
|
|
|
|
// Return a list of user preferred languages from OS. The list doesn't include
|
|
|
|
// overrides from command line arguments.
|
|
|
|
std::vector<std::string> GetPreferredLanguages();
|
|
|
|
|
|
|
|
#if defined(OS_WIN)
|
|
|
|
bool GetPreferredLanguagesUsingGlobalization(
|
2021-03-16 16:18:45 +00:00
|
|
|
std::vector<std::u16string>* languages);
|
2020-05-04 17:49:29 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
} // namespace electron
|
|
|
|
|
|
|
|
#endif // SHELL_COMMON_LANGUAGE_UTIL_H_
|