|
1 | 1 | import React from "react"
|
2 | 2 | import { useTheme } from "@emotion/react"
|
3 | 3 | import styled from "@emotion/styled"
|
| 4 | +import Translation from "./Translation" |
4 | 5 |
|
5 | 6 | const Container = styled.div`
|
6 | 7 | display: flex;
|
@@ -58,27 +59,57 @@ const AdoptionChart: React.FC<IProps> = () => {
|
58 | 59 | return (
|
59 | 60 | <Container>
|
60 | 61 | <Column>
|
61 |
| - <ColumnName>2010</ColumnName> |
62 |
| - <Cell color={isDark ? "#FBF9A5" : "#95935B"}>Investors</Cell> |
| 62 | + <ColumnName> |
| 63 | + <Translation id="adoption-chart-column-2010-label" /> |
| 64 | + </ColumnName> |
| 65 | + <Cell color={isDark ? "#FBF9A5" : "#95935B"}> |
| 66 | + <Translation id="adoption-chart-investors-label" /> |
| 67 | + </Cell> |
63 | 68 | </Column>
|
64 | 69 |
|
65 | 70 | <Column>
|
66 |
| - <ColumnName>2014</ColumnName> |
67 |
| - <Cell color={isDark ? "#FBF9A5" : "#95935B"}>Investors</Cell> |
68 |
| - <Cell color={isDark ? "#9EC885" : "#67954C"}>Developers</Cell> |
69 |
| - <Cell color={isDark ? "#E78F6E" : "#CB7C5E"}>Companies</Cell> |
| 71 | + <ColumnName> |
| 72 | + <Translation id="adoption-chart-column-2014-label" /> |
| 73 | + </ColumnName> |
| 74 | + <Cell color={isDark ? "#FBF9A5" : "#95935B"}> |
| 75 | + <Translation id="adoption-chart-investors-label" /> |
| 76 | + </Cell> |
| 77 | + <Cell color={isDark ? "#9EC885" : "#67954C"}> |
| 78 | + <Translation id="adoption-chart-developers-label" /> |
| 79 | + </Cell> |
| 80 | + <Cell color={isDark ? "#E78F6E" : "#CB7C5E"}> |
| 81 | + <Translation id="adoption-chart-companies-label" /> |
| 82 | + </Cell> |
70 | 83 | </Column>
|
71 | 84 |
|
72 | 85 | <Column>
|
73 |
| - <ColumnName>Now</ColumnName> |
74 |
| - <Cell color={isDark ? "#FBF9A5" : "#95935B"}>Investors</Cell> |
75 |
| - <Cell color={isDark ? "#9EC885" : "#67954C"}>Developers</Cell> |
76 |
| - <Cell color={isDark ? "#E78F6E" : "#CB7C5E"}>Companies</Cell> |
77 |
| - <Cell color={isDark ? "#8EA8CA" : "#5E7492"}>Artists</Cell> |
78 |
| - <Cell color={isDark ? "#AC85C2" : "#88669B"}>Musicians</Cell> |
79 |
| - <Cell color={isDark ? "#CA928E" : "#985955"}>Writers</Cell> |
80 |
| - <Cell color={isDark ? "#B9B9B9" : "#9E9E9E"}>Gamers</Cell> |
81 |
| - <Cell color={isDark ? "#E2B79E" : "#E78A54"}>Refugees</Cell> |
| 86 | + <ColumnName> |
| 87 | + <Translation id="adoption-chart-column-now-label" /> |
| 88 | + </ColumnName> |
| 89 | + <Cell color={isDark ? "#FBF9A5" : "#95935B"}> |
| 90 | + <Translation id="adoption-chart-investors-label" /> |
| 91 | + </Cell> |
| 92 | + <Cell color={isDark ? "#9EC885" : "#67954C"}> |
| 93 | + <Translation id="adoption-chart-developers-label" /> |
| 94 | + </Cell> |
| 95 | + <Cell color={isDark ? "#E78F6E" : "#CB7C5E"}> |
| 96 | + <Translation id="adoption-chart-companies-label" /> |
| 97 | + </Cell> |
| 98 | + <Cell color={isDark ? "#8EA8CA" : "#5E7492"}> |
| 99 | + <Translation id="adoption-chart-artists-label" /> |
| 100 | + </Cell> |
| 101 | + <Cell color={isDark ? "#AC85C2" : "#88669B"}> |
| 102 | + <Translation id="adoption-chart-musicians-label" /> |
| 103 | + </Cell> |
| 104 | + <Cell color={isDark ? "#CA928E" : "#985955"}> |
| 105 | + <Translation id="adoption-chart-writers-label" /> |
| 106 | + </Cell> |
| 107 | + <Cell color={isDark ? "#B9B9B9" : "#9E9E9E"}> |
| 108 | + <Translation id="adoption-chart-gamers-label" /> |
| 109 | + </Cell> |
| 110 | + <Cell color={isDark ? "#E2B79E" : "#E78A54"}> |
| 111 | + <Translation id="adoption-chart-refugees-label" /> |
| 112 | + </Cell> |
82 | 113 | </Column>
|
83 | 114 | </Container>
|
84 | 115 | )
|
|
0 commit comments