Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Restore MetaMask files #68

Merged
merged 1 commit into from Sep 5, 2019
Merged
Changes from all commits
Commits
File filter...
Filter file types
Jump to…
Jump to file
Failed to load files.

Always

Just for now

Restore MetaMask files

Future string changes should be made by gulp
  • Loading branch information
bbondy committed Sep 5, 2019
commit e79246c23231a66640c52be5c44b5d32aa878783
@@ -620,7 +620,7 @@
"message": "If you ever have questions or see something fishy, email support@metamask.io."
},
"endOfFlowMessage8": {
"message": "MetaMask cannot recover your seedphrase."
"message": "MetaMask cannot recover your seedphrase. Learn more."
},
"endOfFlowMessage9": {
"message": "Learn more."
@@ -16,6 +16,11 @@ const replaceMetaMask = (str) => {
.replace(/MetaMask/gi, 'Brave')
}

const removeLearnMore = (str) => {
return str
.replace(/ Learn more./gi, '')
}

const createBraveLocalesTask = () => {
const writeArgs = { overwrite: true }

@@ -28,6 +33,9 @@ const createBraveLocalesTask = () => {
if (stringName !== 'symbolBetweenZeroTwelve') {
json[stringName].message = replace12With24(json[stringName].message)
}
if (stringName === 'endOfFlowMessage8') {
json[stringName].message = removeLearnMore(json[stringName].message)
}
}
if (typeof json[stringName].description === 'string') {
json[stringName].description = replaceMetaMask(json[stringName].description)
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.