Skip to content

Commit

Permalink
fix(foxy-api-browser): fix translations for Submit and Undo buttons
Browse files Browse the repository at this point in the history
Closes #167
  • Loading branch information
pheekus committed Aug 4, 2024
1 parent c5b30e1 commit 245c2a7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,10 @@ export class InternalApiBrowserResourceForm extends TranslatableMixin(InternalFo
${this.in({ idle: { snapshot: 'dirty' } }) || this.in({ idle: 'template' })
? html`
<foxy-internal-submit-control infer="create" theme="tertiary-inline success">
<foxy-internal-submit-control
infer=${this.href ? 'submit' : 'create'}
theme="tertiary-inline success"
>
</foxy-internal-submit-control>
`
: ''}
Expand Down
7 changes: 2 additions & 5 deletions src/static/translations/api-browser/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"next": "Next",
"pagination": "{{from}}-{{to}} out of {{total}}",
"previous": "Previous",
"caption": "Undo",
"undo": "Undo",
"editor": {
"label": "Resource JSON",
"placeholder": "Enter resource JSON here and click Submit to save"
Expand All @@ -30,11 +30,8 @@
"cancel": "Cancel",
"delete_prompt": "Are you sure you'd like to remove this resource? You won't be able to bring it back."
},
"undo": {
"caption": "Undo"
},
"submit": {
"caption": "Save changes"
"caption": "Submit"
},
"create": {
"caption": "Submit"
Expand Down

0 comments on commit 245c2a7

Please sign in to comment.