language_util.h 511 B

12345678910111213141516171819
  1. // Copyright (c) 2020 GitHub, Inc.
  2. // Use of this source code is governed by the MIT license that can be
  3. // found in the LICENSE file.
  4. #ifndef SHELL_COMMON_LANGUAGE_UTIL_H_
  5. #define SHELL_COMMON_LANGUAGE_UTIL_H_
  6. #include <string>
  7. #include <vector>
  8. namespace electron {
  9. // Return a list of user preferred languages from OS. The list doesn't include
  10. // overrides from command line arguments.
  11. std::vector<std::string> GetPreferredLanguages();
  12. } // namespace electron
  13. #endif // SHELL_COMMON_LANGUAGE_UTIL_H_