Move more copy to translation files

This commit is contained in:
Fabio Berger 2018-10-02 09:07:53 +01:00
parent 3a9791e794
commit c42b340042
7 changed files with 36 additions and 8 deletions

View File

@ -92,5 +92,10 @@
"GITHUB": "github",
"LIVE_CHAT": "live chat",
"LIBRARIES_AND_TOOLS": "Libraries & Tools",
"MORE": "more"
"LIBRARIES_AND_TOOLS_DESCRIPTION":
"A list of available tools maintained by the 0x core developers and wider community for building on top of 0x Protocol and Ethereum",
"MORE": "more",
"START_BUILDING_ON_0X": "Start building on 0x",
"START_BUILDING_ON_0X_DESCRIPTION":
"Follow one of our \"Getting started\" guides to learn more about building ontop of 0x."
}

View File

@ -95,6 +95,8 @@
"GITHUB": "github",
"LIVE_CHAT": "live chat",
"LIBRARIES_AND_TOOLS": "Libraries & Tools",
"LIBRARIES_AND_TOOLS_DESCRIPTION":
"A list of available tools maintained by the 0x core developers and wider community for building on top of 0x Protocol and Ethereum",
"MORE": "more",
"OUR_MISSION_AND_VALUES": "our mission & values",
"GAMING_AND_COLLECTABLES": "gaming & collectables",
@ -102,5 +104,8 @@
"artists and game makers are tokenizing digital art and in-game items known as non-fungible tokens (NFTs). 0x enables these creators to add exchange functionality to give access and the ability to build marketplaces for NFT trading.",
"ORDER_BOOKS": "order books",
"ORDER_BOOKS_DESCRIPTION":
"there are thousands of decentralized apps that have native utility tokens. 0x provides market makers and professional exchanges an ability to host order books to facilitate the exchange of these assets."
"there are thousands of decentralized apps that have native utility tokens. 0x provides market makers and professional exchanges an ability to host order books to facilitate the exchange of these assets.",
"START_BUILDING_ON_0X": "Start building on 0x",
"START_BUILDING_ON_0X_DESCRIPTION":
"Follow one of our \"Getting started\" guides to learn more about building ontop of 0x."
}

View File

@ -92,5 +92,10 @@
"GITHUB": "github",
"LIVE_CHAT": "live chat",
"LIBRARIES_AND_TOOLS": "Libraries & Tools",
"MORE": "more"
"LIBRARIES_AND_TOOLS_DESCRIPTION":
"A list of available tools maintained by the 0x core developers and wider community for building on top of 0x Protocol and Ethereum",
"MORE": "more",
"START_BUILDING_ON_0X": "Start building on 0x",
"START_BUILDING_ON_0X_DESCRIPTION":
"Follow one of our \"Getting started\" guides to learn more about building ontop of 0x."
}

View File

@ -92,5 +92,10 @@
"GITHUB": "github",
"LIVE_CHAT": "live chat",
"LIBRARIES_AND_TOOLS": "Libraries & Tools",
"MORE": "more"
"LIBRARIES_AND_TOOLS_DESCRIPTION":
"A list of available tools maintained by the 0x core developers and wider community for building on top of 0x Protocol and Ethereum",
"MORE": "more",
"START_BUILDING_ON_0X": "Start building on 0x",
"START_BUILDING_ON_0X_DESCRIPTION":
"Follow one of our \"Getting started\" guides to learn more about building ontop of 0x."
}

View File

@ -93,5 +93,10 @@
"GITHUB": "github",
"LIVE_CHAT": "live chat",
"LIBRARIES_AND_TOOLS": "Libraries & Tools",
"MORE": "more"
"LIBRARIES_AND_TOOLS_DESCRIPTION":
"A list of available tools maintained by the 0x core developers and wider community for building on top of 0x Protocol and Ethereum",
"MORE": "more",
"START_BUILDING_ON_0X": "Start building on 0x",
"START_BUILDING_ON_0X_DESCRIPTION":
"Follow one of our \"Getting started\" guides to learn more about building ontop of 0x."
}

View File

@ -395,10 +395,10 @@ export class Home extends React.Component<HomeProps, HomeState> {
onMouseLeave={this._onMainContentHoverOff.bind(this)}
>
<div>
{this._renderSectionTitle('Start building on 0x')}
{this._renderSectionTitle(this.props.translate.get(Key.StartBuildOn0x, Deco.Cap))}
<Container paddingTop="12px">
{this._renderSectionDescription(
'Follow one of our "Getting started" guides to learn more about building ontop of 0x.',
this.props.translate.get(Key.StartBuildOn0xDescription, Deco.Cap),
)}
<Container marginTop="36px">
{_.map(TUTORIALS, tutorialInfo => (
@ -423,7 +423,7 @@ export class Home extends React.Component<HomeProps, HomeState> {
)}
<Container paddingTop="12px">
{this._renderSectionDescription(
'A list of available tools maintained by the 0x core developers and wider community for building on top of 0x Protocol and Ethereum',
this.props.translate.get(Key.LibrariesAndToolsDescription, Deco.Cap),
)}
<Container marginTop="36px">
{_.map(CATEGORY_TO_PACKAGES, (pkgs, category) =>

View File

@ -471,7 +471,10 @@ export enum Key {
Github = 'GITHUB',
LiveChat = 'LIVE_CHAT',
LibrariesAndTools = 'LIBRARIES_AND_TOOLS',
LibrariesAndToolsDescription = 'LIBRARIES_AND_TOOLS_DESCRIPTION',
More = 'MORE',
StartBuildOn0x = 'START_BUILDING_ON_0X',
StartBuildOn0xDescription = 'START_BUILDING_ON_0X_DESCRIPTION',
}
export enum SmartContractDocSections {