CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
sagemathinc

Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place. Commercial Alternative to JupyterHub.

GitHub Repository: sagemathinc/cocalc
Path: blob/master/src/packages/next/pages/features/i18n.tsx
Views: 791
1
/*
2
* This file is part of CoCalc: Copyright © 2020 Sagemath, Inc.
3
* License: MS-RSL – see LICENSE.md for details
4
*/
5
6
import { Button, Space } from "antd";
7
import { useState } from "react";
8
9
// NOTE: do not import components as a whole, just pick the exact file
10
import { TestI18N } from "@cocalc/frontend/components/test-i18n";
11
12
import Head from "components/landing/head";
13
14
export default function I18N() {
15
const [num, setNum] = useState<number>(0);
16
17
return (
18
<div style={{ margin: "20px" }}>
19
<Head title={"CoCalc I18N"} />
20
<h1>CoCalc I18N</h1>
21
<div>This is a test:</div>
22
<TestI18N num={num} />
23
<Space.Compact>
24
<Button onClick={() => setNum(num + 1)}>Up</Button>
25
<Button onClick={() => setNum(num - 1)}>Down</Button>
26
</Space.Compact>
27
</div>
28
);
29
}
30
31