Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export default [
"eqeqeq": "warn",
"no-throw-literal": "warn",
"@typescript-eslint/naming-convention": "warn",
"semi": "off",
"semi": ["warn", "always"],
}
}
];
27 changes: 26 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
"Other"
],
"activationEvents": [
"onLanguage:json"
"onLanguage:json",
"onLanguage:dart"
],
"icon": "media/logo.png",
"main": "./out/extension.js",
Expand Down Expand Up @@ -79,6 +80,30 @@
}
}
]
},
"arb-editor.enableAppLocalizationsCodeLens": {
"type": "boolean",
"default": true,
"markdownDescription": "Enable AppLocalizations CodeLens in Dart files."
},
"arb-editor.appLocalizationsCodeLensLanguageMode": {
"type": "string",
"enum": [
"definedByYaml",
"custom"
],
"default": "definedByYaml",
"markdownDescription": "Selects how the `lang` template variable is resolved for AppLocalizations CodeLens text.\n\n- `definedByYaml`: uses language defined in the `template-arb-file` value of `l10n.yaml` file.\n- `custom`: uses `#arb-editor.appLocalizationsCodeLensCustomLanguage#`."
},
"arb-editor.appLocalizationsCodeLensCustomLanguage": {
"type": "string",
"default": "en",
"markdownDescription": "Custom language code used for the `lang` template variable (for example: `en`, `fr`, `ru`).\n\nThis setting only applies when `#arb-editor.appLocalizationsCodeLensLanguageMode#` is `custom`."
},
"arb-editor.appLocalizationsCodeLensTemplate": {
"type": "string",
"default": "[${lang}]: \"${value}\"",
"markdownDescription": "Template used to render AppLocalizations CodeLens text.\n\nAvailable variables:\n- `${value}`: localized value from the resolved `.arb` file.\n- `${path}`: full path to the resolved `.arb` file.\n- `${filename}`: filename of the resolved `.arb` file.\n- `${lang}`: resolved language code (`en`, `fr`, `ru`)."
}
}
}
Expand Down
Loading