dictionaries

类型 Object
必填
Manifest 版本 2 或更高
示例
json
"dictionaries": {
  "en-US": "dictionaries/en-US.dic"
}

dictionaries 键指定了您的扩展程序所提供的字典的 locale_code。虽然字典包含两个文件,一个扩展名为 .dic,另一个扩展名为 .aff,但在 manifest.json 中仅引用了扩展名为 .dic 的文件。

如果您使用 dictionaries 键,您还必须使用 browser_specific_settings manifest.json 键为您的扩展程序设置一个 ID。

示例

json
"dictionaries": {
  "en-US": "dictionaries/en-US.dic"
}

浏览器兼容性