Chrome Release Bot (LUCI) 4762b62e7d Publish DEPS for 106.0.5249.13 | 1 年之前 | |
---|---|---|
.. | ||
BUILD.gn | 1 年之前 | |
README.md | 1 年之前 | |
language_pack_manager.cc | 1 年之前 | |
language_pack_manager.h | 1 年之前 | |
language_pack_manager_unittest.cc | 1 年之前 | |
language_packs_impl.cc | 1 年之前 | |
language_packs_impl.h | 1 年之前 | |
metrics_unittest.cc | 1 年之前 |
Language Packs are a ChromeOS layer that allows language-specific assets to be bundled together and downloaded at run time.
This directory contains the logic that powers Language Packs.
The main logic runs in the Browser Process (lacros-chrome) and it allows clients to query and retrieve language packs for a specific language.
The pack is verified, extracted and mounted to the user partition.
A Mojo API is also provided, in order for clients outside the browser process to communicate via IPC.
For the documentation see go/g3d-languagepacks.
In the Browser Process you can install a Language Pack via:
LanguagePackManager::GetInstance()->InstallPack(
"Feature ID", "en-US", std::move(callback));
The callback will be called when the operation ends, either with success or failure. In the case of success, the path to the extracted files is returned in the callback.