因为语言栏的,我们只打算保留中英日
所以对于参数--lang
我们也需要做处理
找到处理的位置
对其进行处理
C:feikuachromiumsrcasei18n tl.cc
void SetICUDefaultLocale(const std::string& locale_string) { #if defined(OS_IOS) static base::debug::CrashKeyString* crash_key_locale = base::debug::AllocateCrashKeyString("icu_locale_input", base::debug::CrashKeySize::Size256); base::debug::SetCrashKeyString(crash_key_locale, locale_string); #endif icu::Locale locale(ICULocaleName(locale_string).c_str()); UErrorCode error_code = U_ZERO_ERROR; const char* lang = locale.getLanguage(); if (lang != nullptr && *lang != '