Localization keys in Digital IDE follow a hierarchical dot-notation structure to define the severity level, the functional module, the specific feature name, and optionally the UI component. This allows for fine-grained control over translations for different parts of the same feature.
Standard Format
<level>.<module>.<name>
- level: The notification or logging level (e.g.,
info). - module: The functional module (e.g.,
monitor, vcd-view). - name: A description of the feature, which can include nested hierarchies (e.g.,
update-pl or load.subname).
Component-Specific Format
To specify translations for different UI elements within the same feature, use the extended format:
<level>.<module>.<name>.<component>
- component: The specific UI entity where the text will be rendered (e.g.,
button, title, text). The valid values for this field are determined by product requirements.
{
"info.vcd-view.load.button": "加载",
"info.vcd-view.load.title": "加载",
"info.vcd-view.load.text": "正在加载 ..."
}