We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2dd3edc commit 54487adCopy full SHA for 54487ad
2 files changed
locales/en/translation.json
@@ -61,7 +61,10 @@
61
"css": "CSS",
62
"javascript": "JS"
63
},
64
- "output": "Output"
+ "output": "Output",
65
+ "instructions": {
66
+ "cancel": "Cancel"
67
+ }
68
}
69
70
"utility": {
src/components/InstructionsEditor.jsx
@@ -1,11 +1,14 @@
1
import React from 'react';
2
import PropTypes from 'prop-types';
3
+import {t} from 'i18next';
4
5
export default function InstructionsEditor({instructions, onCancelEditing}) {
6
return (
7
<div className="instructions-editor">
8
<div className="instructions-editor-menu">
- <button onClick={onCancelEditing}>Cancel</button>
9
+ <button onClick={onCancelEditing}>
10
+ {t('workspace.components.instructions.cancel')}
11
+ </button>
12
</div>
13
<pre contentEditable>
14
{instructions}
0 commit comments