Add button to duplicate script#7511
Conversation
|
I added the new translation strings to en.json. Is that all I have to do for i18n or are there more steps I missed? |
| showScriptEditor(this, { | ||
| ...this._config, | ||
| alias: `${this._config?.alias} (${this.hass.localize( | ||
| "ui.panel.config.script.picker.duplicate" |
There was a problem hiding this comment.
We should share this variable with the automation editor
There was a problem hiding this comment.
You mean share the alias?
There was a problem hiding this comment.
use: [%key:ui::panel::config::automation::picker::duplicate%] in en.json
Co-authored-by: Bram Kragten <mail@bramkragten.nl>
| showScriptEditor(this, { | ||
| ...this._config, | ||
| alias: `${this._config?.alias} (${this.hass.localize( | ||
| "ui.panel.config.automation.picker.duplicate" |
There was a problem hiding this comment.
This should still be script, but in the en.json you can reference the translation of the automation section.
| "ui.panel.config.automation.picker.duplicate" | |
| "ui.panel.config.script.picker.duplicate" |
There was a problem hiding this comment.
Oh, that's cool! Let me try again.
There was a problem hiding this comment.
Does that look right?
3371c20 to
0e7ccf6
Compare
|
Just wanted to follow up with this PR. Is there anything else I need to do to get this one merged? @bramkragten |
|
Nope! |
Breaking change
Proposed change
Now you can duplicate scripts just like you do for automations.

Type of change
Example configuration
Additional information
Checklist
If user exposed functionality or configuration variables are added/changed: