Skip to content

A platform for community discussion. Free, open, simple.

DEV: use translations for key & value in wrap modal (#39224)

Kris6b84905843a2
diff --git a/config/locales/client.en.yml b/config/locales/client.en.yml
index 112d3c184dc..fdc99785425 100644
--- a/config/locales/client.en.yml
+++ b/config/locales/client.en.yml
@@ -3253,6 +3253,8 @@ en:
name_label: "Wrap name"
attributes_label: "Attributes"
add_attribute: "Add attribute"
+ attribute_key: "Key"
+ attribute_value: "Value"
remove_attribute: "Remove attribute"
apply: "Apply"
unwrap: "Unwrap"
diff --git a/frontend/discourse/app/components/wrap-attributes-modal.gjs b/frontend/discourse/app/components/wrap-attributes-modal.gjs
index d13ada49221..c1d4d8a6418 100644
--- a/frontend/discourse/app/components/wrap-attributes-modal.gjs
+++ b/frontend/discourse/app/components/wrap-attributes-modal.gjs
@@ -109,7 +109,7 @@ export default class WrapAttributesModal extends Component {
<object.Field
@name="key"
@type="input"
- @title="Key"
+ @title={{i18n "composer.wrap_modal.attribute_key"}}
@validation="required"
as |field|
>
@@ -119,7 +119,7 @@ export default class WrapAttributesModal extends Component {
<object.Field
@name="value"
@type="input"
- @title="Value"
+ @title={{i18n "composer.wrap_modal.attribute_value"}}
@validation="required"
as |field|
>