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

Dp/language translations & Copy #25

Merged
merged 6 commits into from
Nov 8, 2019
Merged

Conversation

DenhamPreen
Copy link
Member

  • muggle crypto translations
  • swapped video with simpler copy
  • tooltips on gorilla views

Copy link
Member

@moose-code moose-code left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Think there are some light copy changes and spelling mistake to correct

src/components/Dapp.re Outdated Show resolved Hide resolved
src/components/Dapp.re Outdated Show resolved Hide resolved
src/components/Layout.re Show resolved Hide resolved
src/components/StaticContent/YoutubeVideo.js Show resolved Hide resolved
src/helpers/translations/translations.js Outdated Show resolved Hide resolved
src/helpers/translations/translations.js Show resolved Hide resolved
src/helpers/translations/translations.js Outdated Show resolved Hide resolved
src/helpers/translations/translations.js Show resolved Hide resolved
Copy link
Member

@moose-code moose-code left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome!

@moose-code moose-code requested a review from JasoonS November 8, 2019 16:33
@moose-code moose-code merged commit 820062e into master Nov 8, 2019
@@ -367,4 +374,4 @@ let mergeStyles: list(string) => string =
styles => {
/* styles->Belt.List.reduce("", mapStylesFunction);*/
styles->Belt.List.reduce("", (prev, next) => prev ++ " " ++ next);
};
};
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@DenhamPreen We should get our editor settings more aligned. Mine adds a trailing newline on all files. I personally prefer this since it means that it is easier to add new things to this file when editing.

<React.Fragment>
<h1 className=Styles.heading>
<span className=Styles.colorBlue> <S> "Always for sale" </S> </span>
<br />
<S> "ethereum based" </S>
<S> {translation(. "ethereum") ++ " based"} </S>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can switch this to use reason string templates {j|@$variable1 some tex $variable2 .|j}

<small>
<strong>
<S> {"Monthly Pledge (at " ++ monthlyRate ++ "%):"} </S>
<S> {"Monthly Pledge (at " ++ monthlyRate ++ "%): "} </S>
<Rimble.Tooltip
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should look into why we couldn't add little info icons here: #26

import UbisoftLogo from '../../img/logos/Ubisoft.png'
import EthCapeTownLogo from '../../img/logos/EthCapeTown.png'
import WildTomorrowFundLogo from '../../img/logos/WildTomorrowFund.png'
import React from "react";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need to get a linter for all wildcards code, @DenhamPreen

value={{
translationModeCrypto,
settranslationModeCrypto,
translationMode: translationModeCrypto ? "crypto" : "muggle"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When we move this to Reason we can create a variant type for this, it will make the code nice and elegant, for sure :)
https://reasonml.github.io/docs/en/variant

Copy link
Member

@JasoonS JasoonS left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nothing to change, just a few small comments of things to look at in the future @DenhamPreen

</span>
<ReactTranslate.Switch
onChange={
usedtranslationModeContext->settranslationModeCrypto
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

settranslationModeCrypto -> setTranslationModeCrypto

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants