diff --git a/.nvmrc b/.nvmrc index f10fc7d8f..dc49ba9bb 100644 --- a/.nvmrc +++ b/.nvmrc @@ -1 +1 @@ -v12.3.1 +v10.16.3 \ No newline at end of file diff --git a/src/components/Card.tsx b/src/components/Card.tsx index 79177e938..8a89252fc 100644 --- a/src/components/Card.tsx +++ b/src/components/Card.tsx @@ -6,6 +6,7 @@ import { colors, fontSizes, ns, radii, spaces } from 'src/lib/theme' import { H3 } from 'src/components/ContentTags' import { CardAction } from 'src/components/CardWrapper' import CardContent, { CardContentProps } from 'src/components/CardContent' +import locale from 'src/lib/locale' interface CardColorContextProps { color: CardProps['color'] @@ -42,6 +43,7 @@ export interface CardProps { content: React.ReactNode color?: CardProps['color'] } + t?: boolean } export interface CardState { @@ -86,7 +88,8 @@ const Card = ({ slideCount, isLast, footer, - header + header, + t }: CardProps) => (
{title && (

{title}

diff --git a/src/components/ContentTags/List.tsx b/src/components/ContentTags/List.tsx index f24708f5a..92f74bf0d 100644 --- a/src/components/ContentTags/List.tsx +++ b/src/components/ContentTags/List.tsx @@ -1,6 +1,7 @@ /** @jsx jsx */ import { css, jsx } from '@emotion/core' import { spaces } from 'src/lib/theme' +import locale from 'src/lib/locale' const commonListCss = css` padding: 0; @@ -26,9 +27,10 @@ const commonListItemCss = css` type DefaultUlProps = JSX.IntrinsicElements['ul'] interface UlProps extends DefaultUlProps { size?: 'md' | 'lg' + t?: boolean } -export const Ul = ({ size = 'md', ...props }: UlProps) => ( +export const Ul = ({ t, size = 'md', ...props }: UlProps) => (