Skip to content

Commit

Permalink
Move cliModal i18n keys into app.json
Browse files Browse the repository at this point in the history
  • Loading branch information
jessicaschilling committed Aug 21, 2020
1 parent 8cc6d85 commit 881bcbf
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 16 deletions.
4 changes: 4 additions & 0 deletions public/locales/en/app.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
{
"cliModal": {
"description": "Paste the following into your terminal to do this task in IPFS via the command line. Remember that you'll need to replace placeholders with your specific parameters.",
"extraNotes": "If you've made changes to the config in this page's code editor that you'd like to save, click the download icon next to the copy button to download it as a JSON file."
},
"tour": {
"back": "Back",
"close": "Close",
Expand Down
5 changes: 1 addition & 4 deletions public/locales/en/files.json
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,5 @@
"more": "More",
"files": "Files",
"cidNotFileNorDir": "The current link isn't a file, nor a directory. Try to <0>inspect</0> it instead.",
"sortBy": "Sort items by {name}",
"cliModal": {
"description": "Paste the following into your terminal to do this task in IPFS via the command line. Remember that you'll need to replace placeholders with your specific parameters."
}
"sortBy": "Sort items by {name}"
}
3 changes: 0 additions & 3 deletions public/locales/en/peers.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,5 @@
"edit": "Change",
"close": "Close",
"copyCommand": "Copy"
},
"cliModal": {
"description": "Paste the following into your terminal to do this task in IPFS via the command line. Remember that you'll need to replace placeholders with your specific parameters."
}
}
4 changes: 0 additions & 4 deletions public/locales/en/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,6 @@
"translationProjectIntro": "Add or improve translations and make IPFS better for everyone!",
"translationProjectLink": "Join the IPFS Translation Project"
},
"cliModal": {
"description": "Paste the following into your terminal to do this task in IPFS via the command line. Remember that you'll need to replace placeholders with your specific parameters.",
"extraNotes": "If you've made changes to the config in this page's code editor that you'd like to save, click the download icon next to the copy button to download it as a JSON file."
},
"actions": {
"edit": "Change",
"close": "Close",
Expand Down
3 changes: 0 additions & 3 deletions public/locales/en/welcome.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,5 @@
"actions": {
"close": "Close",
"copyCommand": "Copy"
},
"cliModal": {
"description": "Paste the following into your terminal to do this task in IPFS via the command line. Remember that you'll need to replace placeholders with your specific parameters."
}
}
4 changes: 2 additions & 2 deletions src/components/cli-tutor-mode/CliTutorMode.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ export const CliTutorialModal = ({ command, t, onLeave, className, downloadConfi
<Modal {...props} className={className} onCancel={onLeave} style={{ maxWidth: '40em' }}>
<ModalBody icon={StrokeCode}>
<p className='charcoal w-80 center' style={{ lineHeight: '1.3' }}>
{t('cliModal.description')}
{t('app:cliModal.description')}
</p>
<p className='charcoal-muted w-90 center'>
{ command && command === cliCommandList[cliCmdKeys.UPDATE_IPFS_CONFIG]() ? t('cliModal.extraNotes') : ''}
{ command && command === cliCommandList[cliCmdKeys.UPDATE_IPFS_CONFIG]() ? t('app:cliModal.extraNotes') : ''}
</p>
<div>
<Shell className='tl' title="Shell">
Expand Down

0 comments on commit 881bcbf

Please sign in to comment.