aboutsummaryrefslogtreecommitdiffstats
path: root/packages/website/ts/utils
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2018-10-01 20:11:27 +0800
committerFabio Berger <me@fabioberger.com>2018-10-01 20:11:27 +0800
commite7ab9938ce5bde17600130584fc75bc8a45f6dc5 (patch)
treed5b018d5c876f93e2a22dd2c991e79352583cee8 /packages/website/ts/utils
parentac14dd2b29b42ef4d2a46db9b70d4d30cf9bd40f (diff)
parentfe38adfa0869661ecd5f263222c92689cd1621a7 (diff)
downloaddexon-sol-tools-e7ab9938ce5bde17600130584fc75bc8a45f6dc5.tar
dexon-sol-tools-e7ab9938ce5bde17600130584fc75bc8a45f6dc5.tar.gz
dexon-sol-tools-e7ab9938ce5bde17600130584fc75bc8a45f6dc5.tar.bz2
dexon-sol-tools-e7ab9938ce5bde17600130584fc75bc8a45f6dc5.tar.lz
dexon-sol-tools-e7ab9938ce5bde17600130584fc75bc8a45f6dc5.tar.xz
dexon-sol-tools-e7ab9938ce5bde17600130584fc75bc8a45f6dc5.tar.zst
dexon-sol-tools-e7ab9938ce5bde17600130584fc75bc8a45f6dc5.zip
merge
Diffstat (limited to 'packages/website/ts/utils')
-rw-r--r--packages/website/ts/utils/constants.ts1
-rw-r--r--packages/website/ts/utils/translate.ts7
2 files changed, 7 insertions, 1 deletions
diff --git a/packages/website/ts/utils/constants.ts b/packages/website/ts/utils/constants.ts
index 18a4d8100..6e5d21f67 100644
--- a/packages/website/ts/utils/constants.ts
+++ b/packages/website/ts/utils/constants.ts
@@ -84,6 +84,7 @@ export const constants = {
URL_PARITY_CHROME_STORE:
'https://chrome.google.com/webstore/detail/parity-ethereum-integrati/himekenlppkgeaoeddcliojfddemadig',
URL_REDDIT: 'https://reddit.com/r/0xproject',
+ URL_SANDBOX: 'https://codesandbox.io/s/1qmjyp7p5j',
URL_STANDARD_RELAYER_API_GITHUB: 'https://github.com/0xProject/standard-relayer-api/blob/master/README.md',
URL_TWITTER: 'https://twitter.com/0xproject',
URL_WETH_IO: 'https://weth.io/',
diff --git a/packages/website/ts/utils/translate.ts b/packages/website/ts/utils/translate.ts
index 1ee1a59c5..5595e6e0f 100644
--- a/packages/website/ts/utils/translate.ts
+++ b/packages/website/ts/utils/translate.ts
@@ -80,7 +80,12 @@ export class Translate {
case Deco.CapWords:
const words = text.split(' ');
- const capitalizedWords = _.map(words, w => this._capitalize(w));
+ const capitalizedWords = _.map(words, (w: string, i: number) => {
+ if (w.length === 1) {
+ return w;
+ }
+ return this._capitalize(w);
+ });
text = capitalizedWords.join(' ');
break;